pub struct AprsTelemetry {
pub sequence: String,
pub analog: [Option<u16>; 5],
pub digital: u8,
}Expand description
Parsed APRS telemetry report.
Format: T#seq,val1,val2,val3,val4,val5,dddddddd
where vals are 0-999 analog values and d’s are binary digits (8 bits).
Per APRS 1.0.1 Chapter 13, telemetry is used to transmit analog and
digital sensor readings. Up to 5 analog channels are supported; each
channel is stored as Option<u16> so callers can distinguish
“channel not reported” from “channel reported as 0”.
Fields§
§sequence: StringTelemetry sequence number (0-999 or “MIC”).
analog: [Option<u16>; 5]Analog values — exactly 5 channels per APRS 1.0.1 §13.1.
Channels omitted from the wire frame are None.
digital: u8Digital value (8 bits).
Trait Implementations§
Source§impl Clone for AprsTelemetry
impl Clone for AprsTelemetry
Source§fn clone(&self) -> AprsTelemetry
fn clone(&self) -> AprsTelemetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AprsTelemetry
impl Debug for AprsTelemetry
Source§impl Default for AprsTelemetry
impl Default for AprsTelemetry
Source§fn default() -> AprsTelemetry
fn default() -> AprsTelemetry
Returns the “default value” for a type. Read more
Source§impl PartialEq for AprsTelemetry
impl PartialEq for AprsTelemetry
impl Eq for AprsTelemetry
impl StructuralPartialEq for AprsTelemetry
Auto Trait Implementations§
impl Freeze for AprsTelemetry
impl RefUnwindSafe for AprsTelemetry
impl Send for AprsTelemetry
impl Sync for AprsTelemetry
impl Unpin for AprsTelemetry
impl UnwindSafe for AprsTelemetry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more