Crate nmea

Source
Expand description

NMEA 0183 parser

Use Nmea::parse() and Nmea::parse_for_fix() to preserve state between receiving new NMEA sentence, and parse_str() or parse_bytes() to parse sentences without state.

Units used: celsius, degrees, knots, meters for altitude

§Supported sentences:

NMEA Standard Sentences

  • AAM
  • ALM
  • APA
  • BOD
  • BWC
  • BWW
  • DBK
  • DPT
  • GBS
  • GGA *
  • GLL *
  • GNS *
  • GSA *
  • GST
  • GSV *
  • HDT
  • MDA
  • MTW
  • MWV
  • RMC *
  • TTM
  • VHW
  • VTG *
  • WNC
  • ZDA
  • ZFO
  • ZTG

Other Sentences

  • TXT *

Vendor Extension

  • PGRMZ

* Nmea::parse() supported sentences

§Crate features

  • default features - std
  • std - enable std
  • serde - enable serde Serialize and Deserialize derives
  • defmt-03 - enable the defmt@0.3 Format derives

Modules§

sentences
All the supported sentence type data and parsers.

Structs§

Nmea
NMEA parser
NmeaSentence
A known and parsable Nmea sentence type.
Satellite
Satellite information
SentenceMask

Enums§

Error
ParseResult
The result of parsing a single NMEA message.
SentenceType
NMEA sentence type

Constants§

SENTENCE_MAX_LEN
The maximum message length parsable by the crate.
TEXT_PARAMETER_MAX_LEN
Maximum length of a single waypoint id data in sentence

Functions§

parse_bytes
Parse a NMEA 0183 sentence from bytes and extract data from it.
parse_nmea_sentence
parse_str
Parse a NMEA 0183 sentence from a string slice and extract data from it.