#[repr(C)]pub struct PamojaGatewayStationFields {Show 39 fields
pub kind: u8,
pub mhdr: u8,
pub join_eui: [u8; 8],
pub dev_eui: [u8; 8],
pub dev_nonce: u16,
pub dev_addr: i32,
pub fctrl: u8,
pub fcnt: u16,
pub fport: u8,
pub has_fport: bool,
pub mic: i32,
pub data_rate: u8,
pub frequency_hz: u32,
pub levels: PamojaGatewayStationLevels,
pub class: u8,
pub diid: i64,
pub rx_delay: u8,
pub has_rx_delay: bool,
pub priority: u8,
pub protocol: u32,
pub max_eirp: f64,
pub freq_min_hz: u32,
pub freq_max_hz: u32,
pub filters_networks: bool,
pub net_id_count: usize,
pub join_range_count: usize,
pub data_rate_count: usize,
pub broadcast_count: usize,
pub rx1: PamojaGatewayStationWindow,
pub rx2: PamojaGatewayStationWindow,
pub ping_slot: PamojaGatewayStationWindow,
pub xtime: i64,
pub has_xtime: bool,
pub rctx: i64,
pub has_rctx: bool,
pub gpstime: i64,
pub has_gpstime: bool,
pub txtime: f64,
pub has_txtime: bool,
}Expand description
Every fixed field a message carries, for any kind.
A kind uses the fields its protocol message names and leaves the rest at zero. The text, the bytes and the lists a kind carries are read and added with the calls that take a message handle.
Fields§
§kind: u8Which kind this is, one of the PAMOJA_GATEWAY_STATION_* kind constants.
mhdr: u8The MAC header byte, for a join request or a data frame.
join_eui: [u8; 8]The application being joined, for a join request.
dev_eui: [u8; 8]The device, for a join request, a downlink, or a transmission report.
dev_nonce: u16The nonce a join request used.
dev_addr: i32The address a data frame came from.
fctrl: u8The frame control byte.
fcnt: u16The frame counter, as the sixteen bits on the air.
fport: u8The port a data frame was sent on, when has_fport.
has_fport: boolWhether the frame carried a port at all.
mic: i32The message integrity code.
data_rate: u8The data rate a frame arrived at.
frequency_hz: u32The frequency a frame arrived on, in hertz.
levels: PamojaGatewayStationLevelsHow it was heard, for the kinds a station sends up.
class: u8Which class of downlink this is: 0 for A, 1 for B, 2 for C.
diid: i64The identifier a downlink and its transmission report share.
rx_delay: u8The delay before the first receive window, in seconds, when has_rx_delay.
has_rx_delay: boolWhether a downlink named a receive delay.
priority: u8How urgent a downlink is.
protocol: u32The protocol version a version message reports.
max_eirp: f64The highest radiated power a configuration allows, in dBm.
freq_min_hz: u32The lowest frequency a configuration allows, in hertz.
freq_max_hz: u32The highest frequency a configuration allows, in hertz.
filters_networks: boolWhether a configuration names the networks whose data frames are forwarded. When it
does not, every network’s are, and the list is written as null.
net_id_count: usizeHow many networks a configuration names.
join_range_count: usizeHow many join identifier ranges a configuration names.
data_rate_count: usizeHow many numbers a configuration’s data-rate table holds.
broadcast_count: usizeHow many frames a schedule carries.
rx1: PamojaGatewayStationWindowThe first receive window a downlink names.
rx2: PamojaGatewayStationWindowThe second receive window a downlink names.
ping_slot: PamojaGatewayStationWindowThe ping slot a class B downlink goes out in.
xtime: i64The station clock in microseconds, when has_xtime: the uplink a downlink answers,
the moment a reported frame went out, or the one a time sync carries.
has_xtime: boolWhether the message carries a station clock.
rctx: i64The radio a downlink goes out on or a report says it went out on, when has_rctx.
has_rctx: boolWhether the message names a radio.
gpstime: i64The GPS time in microseconds since the GPS epoch, when has_gpstime.
has_gpstime: boolWhether the message carries a GPS time.
txtime: f64When a reported frame went out, in seconds, or the station time a time sync carries,
in microseconds, when has_txtime.
has_txtime: boolWhether the message carries that time.
Trait Implementations§
Source§impl Clone for PamojaGatewayStationFields
impl Clone for PamojaGatewayStationFields
Source§fn clone(&self) -> PamojaGatewayStationFields
fn clone(&self) -> PamojaGatewayStationFields
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more