47#define CRC_DR8 MMIO8(CRC_BASE + 0x00)
49#define CRC_DR16 MMIO16(CRC_BASE + 0x00)
52#define CRC_INIT MMIO32(CRC_BASE + 0x10)
55#define CRC_POL MMIO32(CRC_BASE + 0x14)
63#define CRC_CR_REV_OUT (1 << 7)
65#define CRC_CR_REV_IN_SHIFT 5
66#define CRC_CR_REV_IN (3 << CRC_CR_REV_IN_SHIFT)
69#define CRC_CR_REV_IN_NONE (0 << CRC_CR_REV_IN_SHIFT)
70#define CRC_CR_REV_IN_BYTE (1 << CRC_CR_REV_IN_SHIFT)
71#define CRC_CR_REV_IN_HALF (2 << CRC_CR_REV_IN_SHIFT)
72#define CRC_CR_REV_IN_WORD (3 << CRC_CR_REV_IN_SHIFT)
75#define CRC_CR_POLYSIZE_SHIFT 3
76#define CRC_CR_POLYSIZE (3 << CRC_CR_POLYSIZE_SHIFT)
81#define CRC_CR_POLYSIZE_32 (0 << CRC_CR_POLYSIZE_SHIFT)
82#define CRC_CR_POLYSIZE_16 (1 << CRC_CR_POLYSIZE_SHIFT)
83#define CRC_CR_POLYSIZE_8 (2 << CRC_CR_POLYSIZE_SHIFT)
84#define CRC_CR_POLYSIZE_7 (3 << CRC_CR_POLYSIZE_SHIFT)
90#define CRC_POL_DEFAULT 0x04C11DB7
void crc_reverse_output_enable(void)
Enable reverse output data.
void crc_set_polynomial(uint32_t polynomial)
Polynomial coefficient.
void crc_reverse_output_disable(void)
Disable reverse output data.
void crc_set_initial(uint32_t initial)
CRC Initial value.
void crc_set_polysize(uint32_t polysize)
Polynomial size.
void crc_set_reverse_input(uint32_t reverse_in)
Reverse input data.