Skip to content

Commit 305bef4

Browse files
committed
add docs
1 parent c33c12d commit 305bef4

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

swiftnav/src/nmea/checksum.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright (c) 2025 Swift Navigation Inc.
2+
// Contact: Swift Navigation <[email protected]>
3+
//
4+
// This source is subject to the license found in the file 'LICENSE' which must
5+
// be be distributed together with this source. All other rights reserved.
6+
//
7+
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111
fn u8_to_nibbles(byte: u8) -> (u8, u8) {
212
// The high nibble is obtained by shifting the byte 4 bits to the right.
313
// This discards the lower 4 bits and moves the upper 4 bits into the lower 4 bit positions.

swiftnav/src/nmea/gga.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright (c) 2025 Swift Navigation Inc.
2+
// Contact: Swift Navigation <[email protected]>
3+
//
4+
// This source is subject to the license found in the file 'LICENSE' which must
5+
// be be distributed together with this source. All other rights reserved.
6+
//
7+
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111
use std::{
212
fmt::{self},
313
time::Duration,
@@ -51,7 +61,8 @@ impl fmt::Display for GPSQuality {
5161
}
5262
}
5363

54-
/// Geographic coordinates including altitude, GPS solution quality, DGPS usage information.
64+
/// Global Positioning System Fix Data including time, position and fix related data for a GNSS
65+
/// receiver
5566
#[derive(Debug, PartialEq, Clone, Builder)]
5667
pub struct GGA {
5768
/// Time of fix in UTC.

swiftnav/src/nmea/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright (c) 2025 Swift Navigation Inc.
2+
// Contact: Swift Navigation <[email protected]>
3+
//
4+
// This source is subject to the license found in the file 'LICENSE' which must
5+
// be be distributed together with this source. All other rights reserved.
6+
//
7+
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
//! This module contains National Marine Electronics Association (NMEA) related structures and
12+
//! formatting utilities. Notably, it contains (or eventually will contain) structures related to
13+
//! NMEA sentences and parsing/serialization of those sentences.
14+
115
mod checksum;
216
mod gga;
317

0 commit comments

Comments
 (0)