CRC_Private_Functions
[CRC]

Functions

uint32_t CRC_CalcBlockCRC (uint32_t pBuffer[], uint32_t BufferLength)
 Computes the 32-bit CRC of a given buffer of data word(32-bit).
uint32_t CRC_CalcCRC (uint32_t Data)
 Computes the 32-bit CRC of a given data word(32-bit).
uint32_t CRC_GetCRC (void)
 Returns the current CRC value.
uint8_t CRC_GetIDRegister (void)
 Returns the 8-bit data stored in the Independent Data(ID) register.
void CRC_ResetDR (void)
 Resets the CRC Data register (DR).
void CRC_SetIDRegister (uint8_t IDValue)
 Stores a 8-bit data in the Independent Data(ID) register.

Function Documentation

uint32_t CRC_CalcBlockCRC ( uint32_t  pBuffer[],
uint32_t  BufferLength 
)

Computes the 32-bit CRC of a given buffer of data word(32-bit).

Parameters:
pBuffer,: pointer to the buffer containing the data to be computed
BufferLength,: length of the buffer to be computed
Return values:
32-bit CRC

Definition at line 106 of file stm32f10x_crc.c.

References CRC, and index.

Referenced by main().

uint32_t CRC_CalcCRC ( uint32_t  Data  ) 

Computes the 32-bit CRC of a given data word(32-bit).

Parameters:
Data,: data word(32-bit) to compute its CRC
Return values:
32-bit CRC

Definition at line 93 of file stm32f10x_crc.c.

References CRC.

uint32_t CRC_GetCRC ( void   ) 

Returns the current CRC value.

Parameters:
None 
Return values:
32-bit CRC

Definition at line 122 of file stm32f10x_crc.c.

References CRC.

uint8_t CRC_GetIDRegister ( void   ) 

Returns the 8-bit data stored in the Independent Data(ID) register.

Parameters:
None 
Return values:
8-bit value of the ID register

Definition at line 142 of file stm32f10x_crc.c.

References CRC.

void CRC_ResetDR ( void   ) 

Resets the CRC Data register (DR).

Parameters:
None 
Return values:
None 

Definition at line 82 of file stm32f10x_crc.c.

References CRC, and CRC_CR_RESET.

void CRC_SetIDRegister ( uint8_t  IDValue  ) 

Stores a 8-bit data in the Independent Data(ID) register.

Parameters:
IDValue,: 8-bit value to be stored in the ID register
Return values:
None 

Definition at line 132 of file stm32f10x_crc.c.

References CRC.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32