19#ifndef MBED_CRC_HAL_API_H
20#define MBED_CRC_HAL_API_H
225uint32_t hal_crc_get_result(
void);
void hal_crc_compute_partial(const uint8_t *data, const size_t size)
Writes data to the current CRC module.
void hal_crc_compute_partial_start(const crc_mbed_config_t *config)
Initialize the hardware CRC module with the given polynomial.
enum crc_polynomial crc_polynomial_t
CRC Polynomial value.
crc_polynomial
CRC Polynomial value.
@ POLY_8BIT_CCITT
x8+x2+x+1
@ POLY_16BIT_IBM
x16+x15+x2+1
@ POLY_16BIT_CCITT
x16+x12+x5+1
@ POLY_32BIT_ANSI
x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1
uint32_t initial_xor
Initial seed value for the computation.
uint32_t width
CRC Bit Width.
bool reflect_in
Reflect bits on input.
uint32_t polynomial
CRC Polynomial.
bool reflect_out
Reflect bits in final result before returning.
uint32_t final_xor
Final xor value for the computation.