Skip to main content

PamojaGatewayStationFields

Struct PamojaGatewayStationFields 

Source
#[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: u8

Which kind this is, one of the PAMOJA_GATEWAY_STATION_* kind constants.

§mhdr: u8

The 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: u16

The nonce a join request used.

§dev_addr: i32

The address a data frame came from.

§fctrl: u8

The frame control byte.

§fcnt: u16

The frame counter, as the sixteen bits on the air.

§fport: u8

The port a data frame was sent on, when has_fport.

§has_fport: bool

Whether the frame carried a port at all.

§mic: i32

The message integrity code.

§data_rate: u8

The data rate a frame arrived at.

§frequency_hz: u32

The frequency a frame arrived on, in hertz.

§levels: PamojaGatewayStationLevels

How it was heard, for the kinds a station sends up.

§class: u8

Which class of downlink this is: 0 for A, 1 for B, 2 for C.

§diid: i64

The identifier a downlink and its transmission report share.

§rx_delay: u8

The delay before the first receive window, in seconds, when has_rx_delay.

§has_rx_delay: bool

Whether a downlink named a receive delay.

§priority: u8

How urgent a downlink is.

§protocol: u32

The protocol version a version message reports.

§max_eirp: f64

The highest radiated power a configuration allows, in dBm.

§freq_min_hz: u32

The lowest frequency a configuration allows, in hertz.

§freq_max_hz: u32

The highest frequency a configuration allows, in hertz.

§filters_networks: bool

Whether 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: usize

How many networks a configuration names.

§join_range_count: usize

How many join identifier ranges a configuration names.

§data_rate_count: usize

How many numbers a configuration’s data-rate table holds.

§broadcast_count: usize

How many frames a schedule carries.

§rx1: PamojaGatewayStationWindow

The first receive window a downlink names.

§rx2: PamojaGatewayStationWindow

The second receive window a downlink names.

§ping_slot: PamojaGatewayStationWindow

The ping slot a class B downlink goes out in.

§xtime: i64

The 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: bool

Whether the message carries a station clock.

§rctx: i64

The radio a downlink goes out on or a report says it went out on, when has_rctx.

§has_rctx: bool

Whether the message names a radio.

§gpstime: i64

The GPS time in microseconds since the GPS epoch, when has_gpstime.

§has_gpstime: bool

Whether the message carries a GPS time.

§txtime: f64

When a reported frame went out, in seconds, or the station time a time sync carries, in microseconds, when has_txtime.

§has_txtime: bool

Whether the message carries that time.

Trait Implementations§

Source§

impl Clone for PamojaGatewayStationFields

Source§

fn clone(&self) -> PamojaGatewayStationFields

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PamojaGatewayStationFields

Source§

impl Debug for PamojaGatewayStationFields

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.