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