Expand description
§neo-gps
A no_std, zero-allocation driver for the u-blox NEO-xM GPS family
(NEO-6M, NEO-7M, NEO-8M, NEO-M9N, NEO-M10) over UART. It works in both
async (async feature, the default) and blocking (sync feature) code.
§Example
ⓘ
use neo_gps::NeoGps;
let uart = BufferedUart::new(/* ... */); // 9600 8N1, any embedded-io-async Read + Write
let mut gps = NeoGps::new(uart);
loop {
let pos = gps.next_coordinate().await?; // only returns once there is a real fix
defmt::info!("lat={} lon={}", pos.lat_1e7, pos.lon_1e7); // degrees × 1e7
}See NeoGps for configuration, and the
README for the full feature list.
Modules§
- codec
- Hand the driver’s frames to external decoding crates.
- nmea
- NMEA 0183 sentences, versions 2.3 and 4.x, from any talker.
- ubx
- UBX binary protocol: build frames, name the message IDs the driver uses,
and decode the
NAVmessages it understands.
Structs§
- Capabilities
- What the connected module can do. Filled by
NeoGps::probe, or constructed manually if the module type is known at compile time. - Coordinate
- A position from
NeoGps::next_coordinate, in degrees * 1e7. Never the pre-fix0, 0. - NeoGps
- Driver for the NEO-xM family.
Enums§
- Error
- Errors produced by the driver.
- Event
- A parsed item from the module’s output stream.
- Generation
- Module generation, derived from the
PROTVERreported byUBX-MON-VER.