#[repr(C)]pub struct PamojaLorawanTransmission {
pub airtime_us: u64,
pub frequency_hz: u32,
pub rx1: PamojaLorawanWindow,
pub rx2: PamojaLorawanWindow,
pub link: PamojaLoraLink,
pub data_rate: u8,
pub output_dbm: i8,
pub carries_payload: u8,
pub has_relay: u8,
pub relay: PamojaLorawanRelayExchange,
}Expand description
A frame to put on the air, and where to listen afterward.
The frame’s bytes cross beside it as a PamojaBuffer.
Fields§
§airtime_us: u64How long the frame holds the air, in microseconds.
frequency_hz: u32The carrier, in hertz.
rx1: PamojaLorawanWindowThe first receive window.
rx2: PamojaLorawanWindowThe second, which opens only if nothing for this device arrived in the first.
link: PamojaLoraLinkThe LoRa settings: an eight-symbol preamble, an explicit header and a payload CRC, sent with standard IQ.
data_rate: u8The data rate, as the region numbers them.
output_dbm: i8The power to ask of the radio, conducted, in dBm.
carries_payload: u81 if the application payload went out in this frame; 0 if the answers the
device owed left no room, and it has to be sent again.
has_relay: u81 when this frame goes out behind a wake-on-radio frame, under a relay.
relay: PamojaLorawanRelayExchangeThe wake-on-radio exchange, when it does.
Trait Implementations§
Source§impl Clone for PamojaLorawanTransmission
impl Clone for PamojaLorawanTransmission
Source§fn clone(&self) -> PamojaLorawanTransmission
fn clone(&self) -> PamojaLorawanTransmission
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaLorawanTransmission
Source§impl Debug for PamojaLorawanTransmission
impl Debug for PamojaLorawanTransmission
impl Eq for PamojaLorawanTransmission
impl StructuralPartialEq for PamojaLorawanTransmission
Auto Trait Implementations§
impl Freeze for PamojaLorawanTransmission
impl RefUnwindSafe for PamojaLorawanTransmission
impl Send for PamojaLorawanTransmission
impl Sync for PamojaLorawanTransmission
impl Unpin for PamojaLorawanTransmission
impl UnsafeUnpin for PamojaLorawanTransmission
impl UnwindSafe for PamojaLorawanTransmission
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