60 typedef struct _mxc_crc_req_t {
uint32_t dataLen
Length of the data.
Definition: crc.h:62
Structure used to set up CRC request.
Definition: crc.h:60
uint32_t MXC_CRC_GetPoly(void)
Get the polynomial for CRC calculation.
uint32_t MXC_CRC_GetResult(void)
Get the result of a CRC calculation.
uint32_t resultCRC
Calculated CRC value.
Definition: crc.h:63
void MXC_CRC_SetDirection(mxc_crc_bitorder_t bitOrder)
Set the bit-order of CRC calculation.
void MXC_CRC_SwapDataIn(mxc_crc_bitorder_t bitOrder)
Byte Swap CRC Data Input.
int MXC_CRC_Shutdown(void)
Disable and reset portions of the CRC.
mxc_crc_bitorder_t MXC_CRC_GetDirection(void)
Set the bit-order of CRC calculation.
int MXC_CRC_Compute(mxc_crc_req_t *req)
Perform a CRC computation.
int MXC_CRC_Init(void)
Enable portions of the CRC.
void MXC_CRC_SwapDataOut(mxc_crc_bitorder_t bitOrder)
Byte Swap CRC Data output.
int MXC_CRC_Handler(int ch, int error)
This function should be called from the CRC ISR Handler when using Async functions.
uint32_t * dataBuffer
Pointer to the data.
Definition: crc.h:61
mxc_crc_bitorder_t
CRC data bit order.
Definition: crc.h:70
int MXC_CRC_ComputeAsync(mxc_crc_req_t *req)
Perform a CRC computation using DMA.
void MXC_CRC_SetPoly(uint32_t poly)
Set the Polynomial for CRC calculation.