Hi, I am Using TM4C129DNCPDT
I want to calculate the CRC-16-CCITT (initial value all 0, polynomial: 0x8408, reversed) of an array of 8 bytes of data.
The resulting sum should be 2 bytes.
Can I use the hardware CCM0 module to do this?
Which of the following flags should i enable when i do CRCConfigSet(CCM0_BASE, ...)
Initialize with seed: CRC_CFG_INIT_SEED
Initialize to all '0s': CRC_CFG_INIT_0
Initialize to all '1s': CRC_CFG_INIT_1
Input Data Size: CRC_CFG_SIZE_8BIT
Input Data Size: CRC_CFG_SIZE_32BIT
Result Inverse Enable: CRC_CFG_RESINV
Output Reverse Enable: CRC_CFG_OBR
Bit reverse enable: CRC_CFG_IBR
Swap byte in half-word: CRC_CFG_ENDIAN_SBHW
Swap half-word: CRC_CFG_ENDIAN_SHW
Polynomial 0x8005: CRC_CFG_TYPE_P8005
Polynomial 0x1021: CRC_CFG_TYPE_P1021
Polynomial 0x4C11DB7: CRC_CFG_TYPE_P4C11DB7
Polynomial 0x1EDC6F41: CRC_CFG_TYPE_P1EDC6F41
TCP checksum: CRC_CFG_TYPE_TCPCHKSUM
Anurag