|
GNU Radio's SATNOGS Package
|
Static class for computing CRCs. More...
#include <CRC.h>
Classes | |
| struct | Parameters |
| CRC parameters. More... | |
| struct | Table |
| CRC lookup table. After construction, the CRC parameters are fixed. More... | |
Static Public Member Functions | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | Calculate (const void *data, crcpp_size size, const Parameters< CRCType, CRCWidth > ¶meters) |
| Computes a CRC. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | Calculate (const void *data, crcpp_size size, const Parameters< CRCType, CRCWidth > ¶meters, CRCType crc) |
| Appends additional data to a previous CRC calculation. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | Calculate (const void *data, crcpp_size size, const Table< CRCType, CRCWidth > &lookupTable) |
| Computes a CRC via a lookup table. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | Calculate (const void *data, crcpp_size size, const Table< CRCType, CRCWidth > &lookupTable, CRCType crc) |
| Appends additional data to a previous CRC calculation using a lookup table. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | CalculateBits (const void *data, crcpp_size size, const Parameters< CRCType, CRCWidth > ¶meters) |
| Computes a CRC. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | CalculateBits (const void *data, crcpp_size size, const Parameters< CRCType, CRCWidth > ¶meters, CRCType crc) |
| Appends additional data to a previous CRC calculation. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | CalculateBits (const void *data, crcpp_size size, const Table< CRCType, CRCWidth > &lookupTable) |
| Computes a CRC via a lookup table. | |
| template<typename CRCType , crcpp_uint16 CRCWidth> | |
| static CRCType | CalculateBits (const void *data, crcpp_size size, const Table< CRCType, CRCWidth > &lookupTable, CRCType crc) |
| Appends additional data to a previous CRC calculation using a lookup table. | |
| static const Parameters< crcpp_uint8, 8 > & | CRC_8 () |
| Returns a set of parameters for CRC-8 SMBus. | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_ARC () |
| Returns a set of parameters for CRC-16 ARC (aka CRC-16 IBM, CRC-16 LHA). | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_BUYPASS () |
| Returns a set of parameters for CRC-16 BUYPASS (aka CRC-16 VERIFONE, CRC-16 UMTS). | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_CCITTFALSE () |
| Returns a set of parameters for CRC-16 CCITT FALSE. | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_MCRF4XX () |
| Returns a set of parameters for CRC-16 MCRF4XX. | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_GENIBUS () |
| Returns a set of parameters for CRC-16 GENIBUS (aka CRC-16 EPC, CRC-16 I-CODE, CRC-16 DARC). | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_KERMIT () |
| Returns a set of parameters for CRC-16 KERMIT (aka CRC-16 CCITT, CRC-16 CCITT-TRUE). | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_X25 () |
| Returns a set of parameters for CRC-16 X-25 (aka CRC-16 IBM-SDLC, CRC-16 ISO-HDLC, CRC-16 B). | |
| static const Parameters< crcpp_uint16, 16 > & | CRC_16_XMODEM () |
| Returns a set of parameters for CRC-16 XMODEM (aka CRC-16 ZMODEM, CRC-16 ACORN, CRC-16 LTE). | |
| static const Parameters< crcpp_uint32, 32 > & | CRC_32 () |
| Returns a set of parameters for CRC-32 (aka CRC-32 ADCCP, CRC-32 PKZip). | |
| static const Parameters< crcpp_uint32, 32 > & | CRC_32_BZIP2 () |
| Returns a set of parameters for CRC-32 BZIP2 (aka CRC-32 AAL5, CRC-32 DECT-B, CRC-32 B-CRC). | |
| static const Parameters< crcpp_uint32, 32 > & | CRC_32_MPEG2 () |
| Returns a set of parameters for CRC-32 MPEG-2. | |
| static const Parameters< crcpp_uint32, 32 > & | CRC_32_POSIX () |
| Returns a set of parameters for CRC-32 POSIX. | |
Static class for computing CRCs.
|
inlinestatic |
Computes a CRC.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bytes |
| [in] | parameters | CRC parameters |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
Referenced by gr::satnogs::crc::append(), gr::satnogs::crc::check(), gr::satnogs::ax25::crc(), and gr::satnogs::ax25::crc_valid().
|
inlinestatic |
Appends additional data to a previous CRC calculation.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bytes |
| [in] | parameters | CRC parameters |
| [in] | crc | CRC from a previous calculation |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
|
inlinestatic |
Computes a CRC via a lookup table.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bytes |
| [in] | lookupTable | CRC lookup table |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
References CRC::Table< CRCType, CRCWidth >::GetParameters().
|
inlinestatic |
Appends additional data to a previous CRC calculation using a lookup table.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bytes |
| [in] | lookupTable | CRC lookup table |
| [in] | crc | CRC from a previous calculation |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
References CRC::Table< CRCType, CRCWidth >::GetParameters().
|
inlinestatic |
|
inlinestatic |
Appends additional data to a previous CRC calculation.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bits |
| [in] | parameters | CRC parameters |
| [in] | crc | CRC from a previous calculation |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
References crcpp_size.
|
inlinestatic |
Computes a CRC via a lookup table.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bits |
| [in] | lookupTable | CRC lookup table |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
References crcpp_size, and CRC::Table< CRCType, CRCWidth >::GetParameters().
|
inlinestatic |
Appends additional data to a previous CRC calculation using a lookup table.
| [in] | data | Data over which CRC will be computed |
| [in] | size | Size of the data, in bits |
| [in] | lookupTable | CRC lookup table |
| [in] | crc | CRC from a previous calculation |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
References crcpp_size, and CRC::Table< CRCType, CRCWidth >::GetParameters().
|
inlinestatic |
Returns a set of parameters for CRC-16 ARC (aka CRC-16 IBM, CRC-16 LHA).
|
inlinestatic |
Returns a set of parameters for CRC-16 BUYPASS (aka CRC-16 VERIFONE, CRC-16 UMTS).
|
inlinestatic |
Returns a set of parameters for CRC-16 CCITT FALSE.
|
inlinestatic |
Returns a set of parameters for CRC-16 GENIBUS (aka CRC-16 EPC, CRC-16 I-CODE, CRC-16 DARC).
|
inlinestatic |
Returns a set of parameters for CRC-16 KERMIT (aka CRC-16 CCITT, CRC-16 CCITT-TRUE).
|
inlinestatic |
Returns a set of parameters for CRC-16 MCRF4XX.
|
inlinestatic |
Returns a set of parameters for CRC-16 X-25 (aka CRC-16 IBM-SDLC, CRC-16 ISO-HDLC, CRC-16 B).
Referenced by gr::satnogs::ax25::crc(), and gr::satnogs::ax25::crc_valid().
|
inlinestatic |
Returns a set of parameters for CRC-16 XMODEM (aka CRC-16 ZMODEM, CRC-16 ACORN, CRC-16 LTE).
|
inlinestatic |
Returns a set of parameters for CRC-32 (aka CRC-32 ADCCP, CRC-32 PKZip).
|
inlinestatic |
Returns a set of parameters for CRC-32 BZIP2 (aka CRC-32 AAL5, CRC-32 DECT-B, CRC-32 B-CRC).
|
inlinestatic |
Returns a set of parameters for CRC-32 MPEG-2.
|
inlinestatic |
Returns a set of parameters for CRC-32 POSIX.
|
inlinestatic |
Returns a set of parameters for CRC-8 SMBus.