SELKIELogger  1.0.0
nmea_msg_t Struct Reference

Generic NMEA message structure. More...

#include <NMEATypes.h>

Collaboration diagram for nmea_msg_t:

Public Attributes

bool encapsulated
 Encapsulated message (all data in raw)
 
char talker [4]
 Talker ID (2-4 characters)
 
char message [3]
 Message ID.
 
uint8_t rawlen
 Length of data stored in raw.
 
uint8_t raw [80]
 
strarray fields
 If parsed, array of fields.
 
uint8_t checksum
 Message Checksum.
 

Detailed Description

Generic NMEA message structure.

Messages start with either START byte, up to 79 bytes of ASCII data, and are terminated by a CR-LF pair.

Standard messages start with a talker ID (2 chars for official, 4 chars beginning with P for proprietary) and a message ID (3 chars), followed by comma separated fields with message specific meanings.

A checksum may/should be present after an asterisk (NMEA_CSUM_MARK), which is represented as two hex digits.

Initially all fields should be 0/NULL.

If numfields is > 0 and fields is allocated, then the contents of this array should take precedence over the raw array.

Definition at line 78 of file NMEATypes.h.

Member Data Documentation

◆ raw

uint8_t nmea_msg_t::raw[80]

Raw data. Up to 79 chars if encapsulated, otherwise will be shorter

Definition at line 83 of file NMEATypes.h.


The documentation for this struct was generated from the following file: