pub struct TelemetryMetadata {
pub param_names: Vec<Option<Vec<u8>>>,
pub unit_labels: Vec<Option<Vec<u8>>>,
pub equations: Vec<TelemetryEquation>,
pub bit_sense: u8,
pub project_name: Vec<u8>,
}Expand description
Telemetry metadata assembled from PARM./UNIT./EQNS./BITS. message texts.
Each field corresponds to one of the four message types that APRS uses to describe a station’s telemetry channels. They are sent as directed messages to the station whose telemetry they describe.
Fields§
§param_names: Vec<Option<Vec<u8>>>Channel names: up to 5 analog + up to 8 digital = 13 entries.
unit_labels: Vec<Option<Vec<u8>>>Unit labels: same layout as param_names.
equations: Vec<TelemetryEquation>Equation coefficients for each of the 5 analog channels.
bit_sense: u8Bit sense flags: bit N (MSB first) is true if a 1 means “on”.
project_name: Vec<u8>Project name (from BITS. message, after the sense flags).
Implementations§
Source§impl TelemetryMetadata
impl TelemetryMetadata
Sourcepub fn parse_parm(text: &[u8]) -> Vec<Option<Vec<u8>>>
pub fn parse_parm(text: &[u8]) -> Vec<Option<Vec<u8>>>
Parse the body of a PARM. message (text after the PARM. prefix).
Returns up to 13 comma-separated names (5 analog + 8 digital).
Sourcepub fn parse_eqns(text: &[u8]) -> Vec<TelemetryEquation>
pub fn parse_eqns(text: &[u8]) -> Vec<TelemetryEquation>
Parse the body of an EQNS. message.
Format: a1,b1,c1,a2,b2,c2,... (5 triples, 15 values total).
Trait Implementations§
Source§impl Clone for TelemetryMetadata
impl Clone for TelemetryMetadata
Source§fn clone(&self) -> TelemetryMetadata
fn clone(&self) -> TelemetryMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TelemetryMetadata
impl Debug for TelemetryMetadata
Source§impl Default for TelemetryMetadata
impl Default for TelemetryMetadata
Source§fn default() -> TelemetryMetadata
fn default() -> TelemetryMetadata
Source§impl PartialEq for TelemetryMetadata
impl PartialEq for TelemetryMetadata
Source§fn eq(&self, other: &TelemetryMetadata) -> bool
fn eq(&self, other: &TelemetryMetadata) -> bool
self and other values to be equal, and is used by ==.