Public Member Functions | Public Attributes | List of all members
gnsstk::BinUtils::CRCParam Class Reference

Detailed Description

Encapsulate parameters for CRC computation.

Definition at line 280 of file BinUtils.hpp.

#include <BinUtils.hpp>

Public Member Functions

 CRCParam (int o, unsigned long p, unsigned long i, unsigned long f, bool d, bool ri, bool ro)
 

Public Attributes

bool direct
 kind of algorithm, true = no augmented zero bits. More...
 
unsigned long final
 final final XOR value. More...
 
unsigned long initial
 initial CRC initial value. More...
 
int order
 CRC polynomial order w/o leading '1' bit. More...
 
unsigned long polynom
 CRC polynomial w/o the leading '1' bit. More...
 
bool refin
 reflect the data bytes before processing. More...
 
bool refout
 reflect the CRC result before final XOR. More...
 

Constructor & Destructor Documentation

◆ CRCParam()

gnsstk::BinUtils::CRCParam::CRCParam ( int  o,
unsigned long  p,
unsigned long  i,
unsigned long  f,
bool  d,
bool  ri,
bool  ro 
)

Constructor.

Parameters
[in]opolynomial order w/o leading '1' bit.
[in]pCRC polynomial without the leading '1' bit.
[in]iinitial CRC initial value.
[in]ffinal final XOR value.
[in]dkind of algorithm, true = no augmented zero bits.
[in]rireflect the data bytes before processing.
[in]roreflect the CRC result before final XOR.

Definition at line 50 of file BinUtils.cpp.

Member Data Documentation

◆ direct

bool gnsstk::BinUtils::CRCParam::direct

kind of algorithm, true = no augmented zero bits.

Definition at line 299 of file BinUtils.hpp.

◆ final

unsigned long gnsstk::BinUtils::CRCParam::final

final final XOR value.

Definition at line 298 of file BinUtils.hpp.

◆ initial

unsigned long gnsstk::BinUtils::CRCParam::initial

initial CRC initial value.

Definition at line 297 of file BinUtils.hpp.

◆ order

int gnsstk::BinUtils::CRCParam::order

CRC polynomial order w/o leading '1' bit.

Definition at line 295 of file BinUtils.hpp.

◆ polynom

unsigned long gnsstk::BinUtils::CRCParam::polynom

CRC polynomial w/o the leading '1' bit.

Definition at line 296 of file BinUtils.hpp.

◆ refin

bool gnsstk::BinUtils::CRCParam::refin

reflect the data bytes before processing.

Definition at line 300 of file BinUtils.hpp.

◆ refout

bool gnsstk::BinUtils::CRCParam::refout

reflect the CRC result before final XOR.

Definition at line 301 of file BinUtils.hpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46