Librasta & Libsci
A C implementation of the RaSTA protocol stack
Data Fields
crc_options Struct Reference

#include <config.h>

Collaboration diagram for crc_options:
Collaboration graph
[legend]

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]
 

Detailed Description

representation of the options the the crc algorithm will use

Field Documentation

◆ crc_high_bit

unsigned long crc_options::crc_high_bit

mask for internal crc computation, do not set

◆ crc_mask

unsigned long crc_options::crc_mask

mask for internal crc computation, do not set

◆ final_xor

unsigned long crc_options::final_xor

value for the final xor operation, hast to be the same length as width

◆ initial

unsigned long crc_options::initial

the initial value (currently unused)

◆ initial_optimized

unsigned long crc_options::initial_optimized

the initial value for the table lookup algorithm

◆ is_table_generated

int crc_options::is_table_generated

◆ polynom

unsigned long crc_options::polynom

◆ refin

int crc_options::refin

0 if reflected input is disabled, 1 otherwise

◆ refout

int crc_options::refout

0 if reflected output is disabled, 1 otherwise

◆ table

unsigned long crc_options::table[256]

the precomputed crc lookup table, generate by calling 'crc_generate_table'

◆ width

unsigned short crc_options::width

length of crc in bit


The documentation for this struct was generated from the following file: