PER Firmware
Loading...
Searching...
No Matches
ubx_common.h File Reference

UBX common definitions and utility functions. More...

#include <stdint.h>
#include <stddef.h>
Include dependency graph for ubx_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ubx_header_t
 

Functions

static bool UBX_is_matching_header (const ubx_header_t *header, const ubx_header_t *expected)
 
static bool UBX_is_valid_checksum (const uint8_t *rx_buffer, const size_t payload_length)
 

Variables

static constexpr size_t UBX_HEADER_LENGTH = 6
 
static constexpr uint8_t UBX_SYNC_B0 = 0xB5
 
static constexpr uint8_t UBX_SYNC_B1 = 0x62
 
static constexpr size_t UBX_CHECKSUM_LENGTH = 2
 
static constexpr size_t UBX_OVERHEAD = UBX_HEADER_LENGTH + UBX_CHECKSUM_LENGTH
 

Detailed Description

UBX common definitions and utility functions.

! ZED-F9P-Protocols-1.32.pdf @ 3.2

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ UBX_is_matching_header()

static bool UBX_is_matching_header ( const ubx_header_t * header,
const ubx_header_t * expected )
inlinestatic
Here is the caller graph for this function:

◆ UBX_is_valid_checksum()

static bool UBX_is_valid_checksum ( const uint8_t * rx_buffer,
const size_t payload_length )
inlinestatic
Here is the caller graph for this function:

Variable Documentation

◆ UBX_CHECKSUM_LENGTH

size_t UBX_CHECKSUM_LENGTH = 2
staticconstexpr

◆ UBX_HEADER_LENGTH

size_t UBX_HEADER_LENGTH = 6
staticconstexpr

◆ UBX_OVERHEAD

size_t UBX_OVERHEAD = UBX_HEADER_LENGTH + UBX_CHECKSUM_LENGTH
staticconstexpr

◆ UBX_SYNC_B0

uint8_t UBX_SYNC_B0 = 0xB5
staticconstexpr

◆ UBX_SYNC_B1

uint8_t UBX_SYNC_B1 = 0x62
staticconstexpr