yanp

所属分类:GPS编程
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2020-03-11 07:17:31
上 传 者sh-1993
说明:  另一个NMEA解析器
(Yet Another NMEA Parser)

文件列表:
Cargo.toml (473, 2020-03-11)
LICENSE (1071, 2020-03-11)
examples/ (0, 2020-03-11)
examples/test.rs (243, 2020-03-11)
src/ (0, 2020-03-11)
src/errors.rs (1498, 2020-03-11)
src/lib.rs (561, 2020-03-11)
src/parse.rs (15792, 2020-03-11)
src/parsers/ (0, 2020-03-11)
src/parsers/bod.rs (925, 2020-03-11)
src/parsers/bwc.rs (1270, 2020-03-11)
src/parsers/gbs.rs (1735, 2020-03-11)
src/parsers/gga.rs (1860, 2020-03-11)
src/parsers/gll.rs (762, 2020-03-11)
src/parsers/gns.rs (2591, 2020-03-11)
src/parsers/gsa.rs (2563, 2020-03-11)
src/parsers/gsv.rs (2258, 2020-03-11)
src/parsers/hdt.rs (473, 2020-03-11)
src/parsers/mod.rs (344, 2020-03-11)
src/parsers/rma.rs (1670, 2020-03-11)
src/parsers/rmb.rs (2011, 2020-03-11)
src/parsers/rmc.rs (1595, 2020-03-11)
src/parsers/stn.rs (444, 2020-03-11)
src/parsers/utils.rs (2897, 2020-03-11)
src/parsers/vbw.rs (1403, 2020-03-11)
src/parsers/vtg.rs (1001, 2020-03-11)
src/parsers/wpl.rs (616, 2020-03-11)
src/sentences.rs (4050, 2020-03-11)

# YANP - Yet Another NMEA Parser ![Crates.io](https://img.shields.io/crates/v/yanp?style=flat-square) A no_std Rust NMEA 0183 sentence parser. **[API Docs](https://docs.rs/yanp/0.1.1/yanp/)** ## 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: ```toml #[dependencies] yanp = "0.1.1" ``` And in your code: ```rs 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.

近期下载者

相关文件


收藏者