#[repr(C)]pub struct PamojaGatewayRxpk {Show 16 fields
pub received_at_us: u64,
pub gps_millis: u64,
pub frequency_hz: u32,
pub timestamp_us: u32,
pub link: PamojaLoraLink,
pub bitrate_bps: u32,
pub rssi_centi_dbm: i32,
pub snr_centi_db: i32,
pub channel: u8,
pub rf_chain: u8,
pub crc: i8,
pub modulation: u8,
pub has_received_at: bool,
pub has_gps_millis: bool,
pub has_timestamp: bool,
pub has_snr: bool,
}Expand description
A packet the gateway heard, without its payload, which crosses beside it.
Fields§
§received_at_us: u64When it arrived, in microseconds since 1970-01-01 UTC, when has_received_at.
gps_millis: u64When it arrived on the GPS clock, in milliseconds, when has_gps_millis.
frequency_hz: u32The carrier it arrived on, in hertz.
timestamp_us: u32The concentrator’s own timestamp of the reception, when has_timestamp.
link: PamojaLoraLinkThe spreading factor, bandwidth, coding rate, header, and CRC, for a LoRa packet.
bitrate_bps: u32The bitrate in bits per second, for an FSK packet.
rssi_centi_dbm: i32The received signal strength, in hundredths of a dBm.
snr_centi_db: i32The signal-to-noise ratio, in hundredths of a dB, when has_snr.
channel: u8The concentrator channel it arrived on.
rf_chain: u8The radio chain it arrived on.
crc: i8What the CRC said: PAMOJA_GATEWAY_CRC_OK, _FAILED, or _ABSENT.
modulation: u8PAMOJA_GATEWAY_MODULATION_LORA or _FSK.
has_received_at: boolWhether the datagram carried a reception time.
has_gps_millis: boolWhether it carried a GPS time.
has_timestamp: boolWhether it carried the concentrator’s timestamp.
has_snr: boolWhether it carried a signal-to-noise ratio.
Trait Implementations§
Source§impl Clone for PamojaGatewayRxpk
impl Clone for PamojaGatewayRxpk
Source§fn clone(&self) -> PamojaGatewayRxpk
fn clone(&self) -> PamojaGatewayRxpk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more