libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
libopencm3 Defined Constants and Types for the STM32L1xx CRC Generator More...
Modules | |
CRC Registers | |
CRC_CR values | |
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... | |
libopencm3 Defined Constants and Types for the STM32L1xx CRC Generator
LGPL License Terms libopencm3 License
uint32_t crc_calculate | ( | uint32_t | data | ) |
Writes a data word to the register, the write operation stalling until the computation is complete.
[in] | data | new word to add to the CRC calculator |
Definition at line 36 of file crc_common_all.c.
References CRC_DR.
uint32_t crc_calculate_block | ( | uint32_t * | datap, |
int | size | ||
) |
Add a block of data to the CRC calculator and return the final result.
Writes data words consecutively to the register, the write operation stalling until the computation of each word is complete, then returns the final result
[in] | datap | pointer to an array of 32 bit data words. |
[in] | size | length of data, in 32bit increments |
Definition at line 43 of file crc_common_all.c.
References CRC_DR.
void crc_reset | ( | void | ) |
Reset the CRC calculator to initial values.
Definition at line 31 of file crc_common_all.c.
References CRC_CR, and CRC_CR_RESET.