GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
telemetry_decoder_libswiftcnav

Classes

struct  cnav_msg_t
struct  cnav_v27_part_t
struct  cnav_msg_decoder_t

Macros

#define GPS_L2_V27_HISTORY_LENGTH_BITS   64
#define GPS_L2C_V27_INIT_BITS   (32)
#define GPS_L2C_V27_DECODE_BITS   (32)
#define GPS_L2C_V27_DELAY_BITS   (32)
#define ABS(x)
#define MIN(x, y)
#define MAX(x, y)
#define CLAMP_DIFF(a, b)

Functions

uint8_t parity (uint32_t x)
uint32_t getbitu (const uint8_t *buff, uint32_t pos, uint8_t len)
int32_t getbits (const uint8_t *buff, uint32_t pos, uint8_t len)
void setbitu (uint8_t *buff, uint32_t pos, uint32_t len, uint32_t data)
void setbits (uint8_t *buff, uint32_t pos, uint32_t len, int32_t data)
void bitcopy (void *dst, uint32_t dst_index, const void *src, uint32_t src_index, uint32_t count)
void bitshl (void *buf, uint32_t size, uint32_t shift)
uint8_t count_bits_u64 (uint64_t v, uint8_t bv)
uint8_t count_bits_u32 (uint32_t v, uint8_t bv)
uint8_t count_bits_u16 (uint16_t v, uint8_t bv)
uint8_t count_bits_u8 (uint8_t v, uint8_t bv)
const v27_poly_tcnav_msg_decoder_get_poly (void)
void cnav_msg_decoder_init (cnav_msg_decoder_t *dec)
bool cnav_msg_decoder_add_symbol (cnav_msg_decoder_t *dec, unsigned char symbol, cnav_msg_t *msg, uint32_t *delay)
uint32_t crc24q (const uint8_t *buf, uint32_t len, uint32_t crc)
uint32_t crc24q_bits (uint32_t crc, const uint8_t *buf, uint32_t n_bits, bool invert)

Detailed Description

Utilities for CNAV message decoding by Swift Navigation Inc.

Macro Definition Documentation

◆ ABS

#define ABS ( x)
Value:
((x) < 0 ? -(x) : (x))

Definition at line 34 of file swift_common.h.

◆ CLAMP_DIFF

#define CLAMP_DIFF ( a,
b )
Value:
(MAX((a), (b)) - (b))

Definition at line 37 of file swift_common.h.

◆ GPS_L2_V27_HISTORY_LENGTH_BITS

#define GPS_L2_V27_HISTORY_LENGTH_BITS   64

Size of the Viterbi decoder history.

Definition at line 40 of file cnav_msg.h.

◆ GPS_L2C_V27_DECODE_BITS

#define GPS_L2C_V27_DECODE_BITS   (32)

Bits to decode at a time.

Definition at line 44 of file cnav_msg.h.

◆ GPS_L2C_V27_DELAY_BITS

#define GPS_L2C_V27_DELAY_BITS   (32)

Bits in decoder tail. We ignore them.

Definition at line 46 of file cnav_msg.h.

◆ GPS_L2C_V27_INIT_BITS

#define GPS_L2C_V27_INIT_BITS   (32)

Bits to accumulate before decoding starts.

Definition at line 42 of file cnav_msg.h.

◆ MAX

#define MAX ( x,
y )
Value:
(((x) > (y)) ? (x) : (y))

Definition at line 36 of file swift_common.h.

◆ MIN

#define MIN ( x,
y )
Value:
(((x) < (y)) ? (x) : (y))

Definition at line 35 of file swift_common.h.