Mbed OS Reference
Loading...
Searching...
No Matches
crc_mbed_config Struct Reference

Data Fields

uint32_t polynomial
 CRC Polynomial. More...
 
uint32_t width
 CRC Bit Width. More...
 
uint32_t initial_xor
 Initial seed value for the computation. More...
 
uint32_t final_xor
 Final xor value for the computation. More...
 
bool reflect_in
 Reflect bits on input. More...
 
bool reflect_out
 Reflect bits in final result before returning. More...
 

Detailed Description

Definition at line 38 of file crc_api.h.

Field Documentation

◆ polynomial

uint32_t polynomial

CRC Polynomial.

Example polynomial: x^8+x^5+x+1 -> width = 8, polynomial = 0010_0011 = 0x21

Definition at line 40 of file crc_api.h.

◆ width

uint32_t width

CRC Bit Width.

Definition at line 42 of file crc_api.h.

◆ initial_xor

uint32_t initial_xor

Initial seed value for the computation.

Definition at line 44 of file crc_api.h.

◆ final_xor

uint32_t final_xor

Final xor value for the computation.

Definition at line 46 of file crc_api.h.

◆ reflect_in

bool reflect_in

Reflect bits on input.

Definition at line 48 of file crc_api.h.

◆ reflect_out

bool reflect_out

Reflect bits in final result before returning.

Definition at line 50 of file crc_api.h.