Home
last modified time | relevance | path

Searched refs:crcConfig (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/components/crc/
Dfsl_adapter_software_crc.c15 uint32_t HAL_CrcCompute(hal_crc_config_t *crcConfig, uint8_t *dataIn, uint32_t length) in HAL_CrcCompute() argument
17 uint32_t shiftReg = crcConfig->crcSeed << ((4U - crcConfig->crcSize) << 3U); in HAL_CrcCompute()
18 uint32_t crcPoly = crcConfig->crcPoly << ((4U - crcConfig->crcSize) << 3U); in HAL_CrcCompute()
19 uint32_t crcXorOut = crcConfig->crcXorOut << ((4U - crcConfig->crcSize) << 3U); in HAL_CrcCompute()
20 uint16_t startOffset = crcConfig->crcStartByte; in HAL_CrcCompute()
21 uint8_t crcBits = 8U * crcConfig->crcSize; in HAL_CrcCompute()
28 if (crcConfig->crcSize != 0U) in HAL_CrcCompute()
34 if (crcConfig->crcRefIn == KHAL_CrcRefInput) in HAL_CrcCompute()
76 if (crcConfig->crcByteOrder == KHAL_CrcMSByteFirst) in HAL_CrcCompute()
Dfsl_adapter_crc.c16 uint32_t HAL_CrcCompute(hal_crc_config_t *crcConfig, uint8_t *dataIn, uint32_t length) in HAL_CrcCompute() argument
21 config.polynomial = crcConfig->crcPoly; in HAL_CrcCompute()
22 config.seed = crcConfig->crcSeed; in HAL_CrcCompute()
23 config.reflectIn = (bool)crcConfig->crcRefIn; in HAL_CrcCompute()
24 config.reflectOut = (bool)crcConfig->crcRefOut; in HAL_CrcCompute()
25 config.complementChecksum = (bool)crcConfig->complementChecksum; in HAL_CrcCompute()
27 assert((crcConfig->crcSize == 2U) || (crcConfig->crcSize == 4U)); in HAL_CrcCompute()
29 if (crcConfig->crcSize == 2U) in HAL_CrcCompute()
43 if (crcConfig->crcSize == 2U) in HAL_CrcCompute()
Dfsl_adapter_lpc_crc.c16 uint32_t HAL_CrcCompute(hal_crc_config_t *crcConfig, uint8_t *dataIn, uint32_t length) in HAL_CrcCompute() argument
22 config.seed = crcConfig->crcSeed; in HAL_CrcCompute()
23 config.reverseIn = (bool)crcConfig->crcRefIn; in HAL_CrcCompute()
25 config.complementOut = (bool)crcConfig->complementChecksum; in HAL_CrcCompute()
26 config.reverseOut = (bool)crcConfig->crcRefOut; in HAL_CrcCompute()
28 assert((crcConfig->crcSize == 2U) || (crcConfig->crcSize == 4U)); in HAL_CrcCompute()
30 if (crcConfig->crcSize == 2U) in HAL_CrcCompute()
42 if (crcConfig->crcSize == 2U) in HAL_CrcCompute()
Dfsl_adapter_crc.h117 uint32_t HAL_CrcCompute(hal_crc_config_t *crcConfig, uint8_t *dataIn, uint32_t length);