typedef struct Crc_Config_S
{
uint8_t crcmode;
/*
This field indicates the CRC operation polynomial mode
0 = CRC-CCITT Polynomial mode.
1 = CRC-8 Polynomial mode.
2 = CRC-16 Polynomial mode.
3 = CRC-32 Polynomial mode.*/
uint8_t datlen;
/*
This field indicates the write data length.
0 = Data length is 8-bit mode.
1 = Data length is 16-bit mode.
2 = Data length is 32-bit mode.*/
uint8_t chksfmt;
/*This bit is used to enable the 1’s complement function for checksum result in CRC_CHECKSUM register
0 = 1’s complement for CRC checksum Disabled.
1 = 1’s complement for CRC checksum Enabled.
*/
uint8_t datfmt;
/*This bit is used to enable the 1’s complement function for write data value in CRC_DAT register.
0 = 1’s complement for CRC writes data in Disabled.
1 = 1’s complement for CRC writes data in Enabled.*/
uint8_t chksrev;
/*
This bit is used to enable the bit order reverse function for write data value in CRC_CHECKSUM register.
0 = Bit order reverse for CRC checksum Disabled.
1 = Bit order reverse for CRC checksum Enabled.
*/
uint8_t datrev;
/*
This bit is used to enable the bit order reverse function for write data value in CRC_DAT register.
0 = Bit order reversed for CRC write data in Disabled.
1 = Bit order reversed for CRC write data in Enabled (per byte).*/
uint32_t seed;