48uint32_t
getbitu(
const uint8_t* buff,
int pos,
int len);
57int32_t
getbits(
const uint8_t* buff,
int pos,
int len);
66void setbitu(uint8_t* buff,
int pos,
int len, uint32_t data);
75void setbits(uint8_t* buff,
int pos,
int len, int32_t data);
88uint32_t
rtk_crc32(
const uint8_t* buff,
int len);
96uint32_t
rtk_crc24q(
const uint8_t* buff,
int len);
104uint16_t
rtk_crc16(
const uint8_t* buff,
int len);
uint32_t rtk_crc24q(const uint8_t *buff, int len)
Compute CRC-24Q parity for SBAS and RTCM3.
uint16_t rtk_crc16(const uint8_t *buff, int len)
Compute CRC-16 parity for BINEX and NVS.
void setbitu(uint8_t *buff, int pos, int len, uint32_t data)
Set unsigned bits in byte data.
uint32_t getbitu(const uint8_t *buff, int pos, int len)
Extract unsigned bits from byte data.
int32_t getbits(const uint8_t *buff, int pos, int len)
Extract signed bits from byte data.
void setbits(uint8_t *buff, int pos, int len, int32_t data)
Set signed bits in byte data.
uint32_t rtk_crc32(const uint8_t *buff, int len)
Compute CRC-32 parity for NovAtel raw data.
int decode_word(uint32_t word, uint8_t *data)
Check parity and decode GPS navigation data word.