Expand description
§nmea-kit
Bidirectional NMEA 0183 parser/encoder with AIS message decoding.
§Architecture
raw line ──→ parse_frame() ──→ NmeaFrame { prefix, talker, sentence_type, fields }
│
┌──────────────┼──────────────┐
▼ ▼ ▼
$ + known $ + unknown ! (AIVDM/AIVDO)
│ │ │
▼ ▼ ▼
Typed struct Raw fields AisMessage enum§Public API
parse_frame/encode_frame— frame layer (always available)NmeaSentence— dispatch enum for all typed NMEA sentencesNmeaEncodable— trait for encoding NMEA sentences to wire formatais— AIS decoder (behindaisfeature)
§Features
nmea(default) — all 27 NMEA sentence typesais(default) — AIS message decodingdbs,dbt,dpt, … — individual sentence types
Re-exports§
pub use nmea::NmeaSentence;pub use nmea::NmeaEncodable;
Modules§
- ais
- AIS (Automatic Identification System) message decoding.
- nmea
- NMEA 0183 sentence parsing and encoding.
Structs§
- Nmea
Frame - A parsed NMEA 0183 frame with references into the original input.
Enums§
- Frame
Error - Errors from frame-level parsing (checksum, delimiters, tag blocks).
Functions§
- encode_
frame - Encode fields into a valid NMEA 0183 sentence string.
- parse_
frame - Parse a raw NMEA 0183 line into a validated frame.