MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Data Structures | |
struct | hal_crc_config_t |
CRC configuration structure. More... | |
Enumerations | |
enum | hal_crc_cfg_refin_t { KHAL_CrcInputNoRef = 0U, KHAL_CrcRefInput = 1U } |
crcRefIn definitions. More... | |
enum | hal_crc_cfg_refout_t { KHAL_CrcOutputNoRef = 0U, KHAL_CrcRefOutput = 1U } |
crcRefOut definitions. More... | |
enum | hal_crc_cfg_byteord_t { KHAL_CrcLSByteFirst = 0U, KHAL_CrcMSByteFirst = 1U } |
crcByteOrder definitions. More... | |
enum | hal_crc_polynomial_t { KHAL_CrcPolynomial_CRC_8_CCITT = 0x103, KHAL_CrcPolynomial_CRC_16 = 0x1021, KHAL_CrcPolynomial_CRC_32 = 0x4C11DB7U } |
CRC polynomials to use. More... | |
CRC | |
uint32_t | HAL_CrcCompute (hal_crc_config_t *crcConfig, uint8_t *dataIn, uint32_t length) |
Compute CRC function. More... | |
struct hal_crc_config_t |
Data Fields | |
hal_crc_cfg_refin_t | crcRefIn |
CRC reflect input. More... | |
hal_crc_cfg_refout_t | crcRefOut |
CRC reflect output. More... | |
hal_crc_cfg_byteord_t | crcByteOrder |
CRC byte order. More... | |
uint32_t | crcSeed |
CRC Seed value. More... | |
uint32_t | crcPoly |
CRC Polynomial value. More... | |
uint32_t | crcXorOut |
XOR mask for CRC result (for no mask, should be 0). More... | |
uint8_t | complementChecksum |
wether output the complement checksum. More... | |
uint8_t | crcSize |
Number of CRC octets, 2 mean use CRC16, 4 mean use CRC32. More... | |
uint8_t | crcStartByte |
Start CRC with this byte position. More... | |
hal_crc_cfg_refin_t hal_crc_config_t::crcRefIn |
See "hal_crc_cfg_refin_t".
hal_crc_cfg_refout_t hal_crc_config_t::crcRefOut |
See "hal_crc_cfg_refout_t".
hal_crc_cfg_byteord_t hal_crc_config_t::crcByteOrder |
See "hal_crc_cfg_byteord_t".
uint32_t hal_crc_config_t::crcSeed |
Initial value for CRC LFSR.
uint32_t hal_crc_config_t::crcPoly |
uint32_t hal_crc_config_t::crcXorOut |
uint8_t hal_crc_config_t::complementChecksum |
uint8_t hal_crc_config_t::crcSize |
uint8_t hal_crc_config_t::crcStartByte |
Byte #0 is the first byte of Sync Address.
enum hal_crc_cfg_refin_t |
enum hal_crc_cfg_refout_t |
enum hal_crc_polynomial_t |
uint32_t HAL_CrcCompute | ( | hal_crc_config_t * | crcConfig, |
uint8_t * | dataIn, | ||
uint32_t | length | ||
) |
The function computes the CRC.
crcConfig | configuration structure. |
dataIn | input data buffer. |
length | input data buffer size. |
Computed | CRC value. |