Defines all functions of mcuxClCrc.
More...
Defines all functions of mcuxClCrc.
◆ mcuxClCrc_computeCRC16()
| uint16_t mcuxClCrc_computeCRC16 |
( |
const uint8_t * | pBytes, |
|
|
uint32_t | length ) |
Compute a 16-bit CRC checksum.
Compute the 16-bit CRC checksum of a given byte string with the platform-specified 16-bit CRC algorithm.
- Parameters
-
| [in] | pBytes | pointer to the byte string |
| [in] | length | length (in bytes) of the string |
- Returns
- A code-flow protected error code (see Flow Protection API)
- Return values
-
| #crcResult | 16-bit CRC checksum |
- Examples
- mcuxClCrc_Crc16_example.c.
◆ mcuxClCrc_computeCRC32()
| uint32_t mcuxClCrc_computeCRC32 |
( |
const uint8_t * | pBytes, |
|
|
uint32_t | length ) |
Compute a 32-bit CRC checksum.
Compute the 32-bit CRC checksum of a given byte string with the platform-specified 32-bit CRC algorithm.
- Parameters
-
| [in] | pBytes | pointer to the byte string |
| [in] | length | length (in bytes) of the string |
- Returns
- A code-flow protected error code (see Flow Protection API)
- Return values
-
| #crcResult | 32-bit CRC checksum |
- Examples
- mcuxClCrc_Crc32_example.c.