STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
gnss_frame.c File Reference
#include "gnss_frame.h"
#include <string.h>
Include dependency graph for gnss_frame.c:

Go to the source code of this file.

Enumerations

enum  {
  IDLE = 0 , NMEA_BODY , NMEA_HEX_HI , NMEA_HEX_LO ,
  UBX_SYNC2 , UBX_CLASS , UBX_ID , UBX_LEN_LO ,
  UBX_LEN_HI , UBX_PAYLOAD , UBX_CK_A , UBX_CK_B
}

Functions

static int hex_value (uint8_t c)
static void fletcher (gnss_frame_parser_t *p, uint8_t byte)
void gnss_frame_init (gnss_frame_parser_t *parser)
static void reject (gnss_frame_parser_t *p)
static void start (gnss_frame_parser_t *p, uint8_t byte)
gnss_frame_kind_t gnss_frame_feed (gnss_frame_parser_t *p, uint8_t byte)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDLE 
NMEA_BODY 
NMEA_HEX_HI 
NMEA_HEX_LO 
UBX_SYNC2 
UBX_CLASS 
UBX_ID 
UBX_LEN_LO 
UBX_LEN_HI 
UBX_PAYLOAD 
UBX_CK_A 
UBX_CK_B 

Definition at line 5 of file gnss_frame.c.

Function Documentation

◆ fletcher()

void fletcher ( gnss_frame_parser_t * p,
uint8_t byte )
static

Definition at line 30 of file gnss_frame.c.

References p.

Referenced by gnss_frame_feed().

◆ gnss_frame_feed()

◆ gnss_frame_init()

◆ hex_value()

int hex_value ( uint8_t c)
static

Definition at line 20 of file gnss_frame.c.

Referenced by gnss_frame_feed().

◆ reject()

void reject ( gnss_frame_parser_t * p)
static

Definition at line 39 of file gnss_frame.c.

References IDLE, and p.

Referenced by gnss_frame_feed().

◆ start()