yanp 0.1.1

A no_std nmea sentence parser
Documentation
  • Coverage
  • 4.24%
    16 out of 377 items documented0 out of 93 items with examples
  • Size
  • Source code size: 54.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 15.86 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hargoniX

YANP - Yet Another NMEA Parser

A no_std Rust NMEA 0183 sentence parser.

Currently supported Sentences:

  • BOD
  • BWC
  • GBS
  • GGA
  • GLL
  • GSA
  • GNS
  • GSV
  • HDT
  • RMA
  • RMB
  • RMC
  • STN
  • VBW
  • VTG
  • WPL

Usage

Put this in your Cargo.toml:

#[dependencies]
yanp = "0.1.1"

And in your code:

use yanp::parse_nmea_sentence;

fn main(){
    match parse_nmea_sentence(b"$GPGLL,4916.45,N,12311.12,W,225444,A,*1D\r\n") {
        Ok(val) => println!("{:#?}", val),
        Err(e) => println!("{:#?}", e),
    };
}

It is very important that the \r\n is included in the sentence as the library depends on this for a few slice operations as of now.

As of now the GNS sentence requires the alloc feature to be selected.