libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Go to the source code of this file.
Macros | |
#define | CRC_DR MMIO32(CRC_BASE + 0x00) |
CRC_DR Data register. More... | |
#define | CRC_IDR MMIO32(CRC_BASE + 0x04) |
CRC_IDR Independent data register. More... | |
#define | CRC_CR MMIO32(CRC_BASE + 0x08) |
CRC_CR Control register. More... | |
#define | CRC_CR_RESET (1 << 0) |
CRC_CR_RESET reset the CRC peripheral. More... | |
Functions | |
void | crc_reset (void) |
Reset the CRC calculator to initial values. More... | |
uint32_t | crc_calculate (uint32_t data) |
Writes a data word to the register, the write operation stalling until the computation is complete. More... | |
uint32_t | crc_calculate_block (uint32_t *datap, int size) |
Add a block of data to the CRC calculator and return the final result. More... | |