ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
pc_crc_params Struct Reference

One CRC's full definition (Rocksoft model). See the file comment. More...

#include <crc.h>

Public Attributes

uint8_t width
 register width in bits, 8..32.
 
uint32_t poly
 generator polynomial, normal form (implicit top bit dropped).
 
uint32_t init
 initial register value.
 
bool refin
 reflect each input octet before feeding it in.
 
bool refout
 reflect the final register before the XOR.
 
uint32_t xorout
 XORed into the final register.
 

Detailed Description

One CRC's full definition (Rocksoft model). See the file comment.

Definition at line 48 of file crc.h.

Member Data Documentation

◆ width

uint8_t pc_crc_params::width

register width in bits, 8..32.

Definition at line 50 of file crc.h.

Referenced by pc_crc_begin(), pc_crc_final(), and pc_crc_update().

◆ poly

uint32_t pc_crc_params::poly

generator polynomial, normal form (implicit top bit dropped).

Definition at line 51 of file crc.h.

Referenced by pc_crc_update().

◆ init

uint32_t pc_crc_params::init

initial register value.

Definition at line 52 of file crc.h.

Referenced by pc_crc_begin().

◆ refin

bool pc_crc_params::refin

reflect each input octet before feeding it in.

Definition at line 53 of file crc.h.

Referenced by pc_crc_update().

◆ refout

bool pc_crc_params::refout

reflect the final register before the XOR.

Definition at line 54 of file crc.h.

Referenced by pc_crc_final().

◆ xorout

uint32_t pc_crc_params::xorout

XORed into the final register.

Definition at line 55 of file crc.h.

Referenced by pc_crc_final().


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