Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::parser::crc Namespace Reference

Parser NOV_B routines and types. More...

Functions

uint32_t Crc32fpb (const uint8_t *data, const std::size_t size)
 Calculate 32-bit CRC as used by FP_B.
 
uint32_t Crc24rtcm3 (const uint8_t *data, const std::size_t size)
 Calculate 24-bit CRC as used by RTCM3 and SPARTN.
 
uint32_t Crc32novb (const uint8_t *data, const std::size_t size)
 Calculate 32-bit CRC as used by NOV_B (and UNI_B)
 
uint8_t Crc4spartn (const uint8_t *data, const std::size_t size)
 Calculate 4-bit CRC as used by SPARTN.
 
uint8_t Crc8spartn (const uint8_t *data, const std::size_t size)
 Calculate 8-bit CRC as used by SPARTN.
 
uint16_t Crc16spartn (const uint8_t *data, const std::size_t size)
 Calculate 16-bit CRC as used by SPARTN.
 
uint32_t Crc32spartn (const uint8_t *data, const std::size_t size)
 Calculate 32-bit CRC as used by SPARTN.
 
uint16_t ChecksumUbx (const uint8_t *data, const std::size_t size)
 Calculate 16-bit checksum as used by UBX.
 

Detailed Description

Parser NOV_B routines and types.

Function Documentation

◆ Crc32fpb()

uint32_t fpsdk::common::parser::crc::Crc32fpb ( const uint8_t * data,
const std::size_t size )

Calculate 32-bit CRC as used by FP_B.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC

◆ Crc24rtcm3()

uint32_t fpsdk::common::parser::crc::Crc24rtcm3 ( const uint8_t * data,
const std::size_t size )

Calculate 24-bit CRC as used by RTCM3 and SPARTN.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC (32-bit value masked with 0x00ffffff)

◆ Crc32novb()

uint32_t fpsdk::common::parser::crc::Crc32novb ( const uint8_t * data,
const std::size_t size )

Calculate 32-bit CRC as used by NOV_B (and UNI_B)

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC

◆ Crc4spartn()

uint8_t fpsdk::common::parser::crc::Crc4spartn ( const uint8_t * data,
const std::size_t size )

Calculate 4-bit CRC as used by SPARTN.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
CRC (8-bit value masked with 0x0f)

◆ Crc8spartn()

uint8_t fpsdk::common::parser::crc::Crc8spartn ( const uint8_t * data,
const std::size_t size )

Calculate 8-bit CRC as used by SPARTN.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC

◆ Crc16spartn()

uint16_t fpsdk::common::parser::crc::Crc16spartn ( const uint8_t * data,
const std::size_t size )

Calculate 16-bit CRC as used by SPARTN.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC (result undefined if size <= 0 or data == NULL)

◆ Crc32spartn()

uint32_t fpsdk::common::parser::crc::Crc32spartn ( const uint8_t * data,
const std::size_t size )

Calculate 32-bit CRC as used by SPARTN.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the CRC

◆ ChecksumUbx()

uint16_t fpsdk::common::parser::crc::ChecksumUbx ( const uint8_t * data,
const std::size_t size )

Calculate 16-bit checksum as used by UBX.

Parameters
[in]dataPointer to the data to calculate the CRC for
[in]sizeSize of data
Returns
the checksum