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
- enablestd
serde
- enableserde
Serialize and Deserialize derivesdefmt-03
- enable thedefmt@0.3
Format derives
Modules§
- sentences
- All the supported sentence type data and parsers.
Structs§
- Nmea
- NMEA parser
- Nmea
Sentence - A known and parsable Nmea sentence type.
- Satellite
- Satellite information
- Sentence
Mask
Enums§
- Error
- Parse
Result - The result of parsing a single NMEA message.
- Sentence
Type - 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.