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... | |
| gnsstk::BinUtils::CRCParam::CRCParam | ( | int | o, |
| unsigned long | p, | ||
| unsigned long | i, | ||
| unsigned long | f, | ||
| bool | d, | ||
| bool | ri, | ||
| bool | ro | ||
| ) |
Constructor.
| [in] | o | polynomial order w/o leading '1' bit. |
| [in] | p | CRC polynomial without the leading '1' bit. |
| [in] | i | initial CRC initial value. |
| [in] | f | final final XOR value. |
| [in] | d | kind of algorithm, true = no augmented zero bits. |
| [in] | ri | reflect the data bytes before processing. |
| [in] | ro | reflect the CRC result before final XOR. |
Definition at line 50 of file BinUtils.cpp.
| bool gnsstk::BinUtils::CRCParam::direct |
kind of algorithm, true = no augmented zero bits.
Definition at line 299 of file BinUtils.hpp.
| unsigned long gnsstk::BinUtils::CRCParam::final |
final final XOR value.
Definition at line 298 of file BinUtils.hpp.
| unsigned long gnsstk::BinUtils::CRCParam::initial |
initial CRC initial value.
Definition at line 297 of file BinUtils.hpp.
| int gnsstk::BinUtils::CRCParam::order |
CRC polynomial order w/o leading '1' bit.
Definition at line 295 of file BinUtils.hpp.
| unsigned long gnsstk::BinUtils::CRCParam::polynom |
CRC polynomial w/o the leading '1' bit.
Definition at line 296 of file BinUtils.hpp.
| bool gnsstk::BinUtils::CRCParam::refin |
reflect the data bytes before processing.
Definition at line 300 of file BinUtils.hpp.
| bool gnsstk::BinUtils::CRCParam::refout |
reflect the CRC result before final XOR.
Definition at line 301 of file BinUtils.hpp.