pub struct Transmit<'a> {
pub frequency_hz: u32,
pub link: LinkSettings,
pub gain: Gain,
pub invert_polarity: bool,
pub public: bool,
pub payload: &'a [u8],
}Expand description
A packet to put on the air, and how.
Everything the chain has to be told before a payload means anything. Built from the link settings the rest of pamoja works in, so the airtime, the duty cycle and the transmission itself all come from one description rather than three.
Fields§
§frequency_hz: u32The carrier to transmit on.
link: LinkSettingsThe spreading factor, bandwidth, coding rate, preamble, header and checksum.
gain: GainWhat the chain is set to, from the board’s table.
invert_polarity: boolWhether the chirp sweeps the other way, which every LoRaWAN downlink does.
public: boolWhether the network is a public one, which picks the sync word.
payload: &'a [u8]The packet.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Transmit<'a>
impl<'a> RefUnwindSafe for Transmit<'a>
impl<'a> Send for Transmit<'a>
impl<'a> Sync for Transmit<'a>
impl<'a> Unpin for Transmit<'a>
impl<'a> UnsafeUnpin for Transmit<'a>
impl<'a> UnwindSafe for Transmit<'a>
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