Functions | |
void | CRC32_setSeed (uint32_t seed, uint8_t crcMode) |
Sets the seed for the CRC32. More... | |
void | CRC32_set8BitData (uint8_t dataIn, uint8_t crcMode) |
Sets the 8 bit data to add into the CRC32 module to generate a new signature. More... | |
void | CRC32_set16BitData (uint16_t dataIn, uint8_t crcMode) |
Sets the 16 bit data to add into the CRC32 module to generate a new signature. More... | |
void | CRC32_set32BitData (uint32_t dataIn) |
Sets the 32 bit data to add into the CRC32 module to generate a new signature. More... | |
void | CRC32_set8BitDataReversed (uint8_t dataIn, uint8_t crcMode) |
Translates the data by reversing the bits in each 8 bit data and then sets this data to add into the CRC32 module to generate a new signature. More... | |
void | CRC32_set16BitDataReversed (uint16_t dataIn, uint8_t crcMode) |
Translates the data by reversing the bits in each 16 bit data and then sets this data to add into the CRC32 module to generate a new signature. More... | |
void | CRC32_set32BitDataReversed (uint32_t dataIn) |
Translates the data by reversing the bits in each 32 bit data and then sets this data to add into the CRC32 module to generate a new signature. More... | |
uint32_t | CRC32_getResult (uint8_t crcMode) |
Returns the value of the signature result. More... | |
uint32_t | CRC32_getResultReversed (uint8_t crcMode) |
Returns the bit-wise reversed format of the 32 bit signature result. More... | |
uint32_t CRC32_getResult | ( | uint8_t | crcMode | ) |
Returns the value of the signature result.
This function returns the value of the signature result generated by the CRC32. Bit 0 is treated as LSB.
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
uint32_t CRC32_getResultReversed | ( | uint8_t | crcMode | ) |
Returns the bit-wise reversed format of the 32 bit signature result.
This function returns the bit-wise reversed format of the signature result. Bit 0 is treated as MSB.
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
void CRC32_set16BitData | ( | uint16_t | dataIn, |
uint8_t | crcMode | ||
) |
Sets the 16 bit data to add into the CRC32 module to generate a new signature.
This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
void CRC32_set16BitDataReversed | ( | uint16_t | dataIn, |
uint8_t | crcMode | ||
) |
Translates the data by reversing the bits in each 16 bit data and then sets this data to add into the CRC32 module to generate a new signature.
This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
void CRC32_set32BitData | ( | uint32_t | dataIn | ) |
Sets the 32 bit data to add into the CRC32 module to generate a new signature.
This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
void CRC32_set32BitDataReversed | ( | uint32_t | dataIn | ) |
Translates the data by reversing the bits in each 32 bit data and then sets this data to add into the CRC32 module to generate a new signature.
This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
void CRC32_set8BitData | ( | uint8_t | dataIn, |
uint8_t | crcMode | ||
) |
Sets the 8 bit data to add into the CRC32 module to generate a new signature.
This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
void CRC32_set8BitDataReversed | ( | uint8_t | dataIn, |
uint8_t | crcMode | ||
) |
Translates the data by reversing the bits in each 8 bit data and then sets this data to add into the CRC32 module to generate a new signature.
This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.
dataIn | is the data to be added, through the CRC32 module, to the signature. |
crcMode | selects the mode of operation for the CRC32 Valid values are:
|
void CRC32_setSeed | ( | uint32_t | seed, |
uint8_t | crcMode | ||
) |
Sets the seed for the CRC32.
This function sets the seed for the CRC32 to begin generating a signature with the given seed and all passed data. Using this function resets the CRC32 signature.
seed | is the seed for the CRC32 to start generating a signature from. Modified bits are CRC32INIRESL0 of CRC32INIRESL0 register. |
crcMode | selects the mode of operation for the CRC32 Valid values are:
|