Librasta & Libsci
A C implementation of the RaSTA protocol stack
|
#include <config.h>
Data Fields | |
unsigned short | width |
unsigned long | polynom |
unsigned long | initial |
unsigned long | initial_optimized |
int | refin |
int | refout |
unsigned long | final_xor |
unsigned long | crc_mask |
unsigned long | crc_high_bit |
int | is_table_generated |
unsigned long | table [256] |
representation of the options the the crc algorithm will use
unsigned long crc_options::crc_high_bit |
mask for internal crc computation, do not set
unsigned long crc_options::crc_mask |
mask for internal crc computation, do not set
unsigned long crc_options::final_xor |
value for the final xor operation, hast to be the same length as width
unsigned long crc_options::initial |
the initial value (currently unused)
unsigned long crc_options::initial_optimized |
the initial value for the table lookup algorithm
int crc_options::is_table_generated |
unsigned long crc_options::polynom |
int crc_options::refin |
0 if reflected input is disabled, 1 otherwise
int crc_options::refout |
0 if reflected output is disabled, 1 otherwise
unsigned long crc_options::table[256] |
the precomputed crc lookup table, generate by calling 'crc_generate_table'
unsigned short crc_options::width |
length of crc in bit