CRC driver modules.
More...
CRC driver modules.
◆ CRC_CalcBlockCRC()
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. |
- Returns
- 32-bit CRC
◆ CRC_CalcCRC()
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. |
- Returns
- 32-bit CRC
◆ CRC_GetCRC()
uint32_t CRC_GetCRC |
( |
void |
| ) |
|
Returns the current CRC value.
- Parameters
-
- Returns
- 32-bit CRC
◆ CRC_GetIDRegister()
uint8_t CRC_GetIDRegister |
( |
void |
| ) |
|
Returns the 8-bit data stored in the Independent Data(ID) register.
- Parameters
-
- Returns
- 8-bit value of the ID register.
◆ CRC_ResetDR()
void CRC_ResetDR |
( |
void |
| ) |
|
Resets the CRC Data register (DR).
- Parameters
-
- Returns
- None
◆ CRC_SetIDRegister()
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. |
- Returns
- None