pub enum RNodeEvent {
Show 19 variants
DataFrame {
index: usize,
data: Vec<u8>,
},
Detected(bool),
FirmwareVersion {
major: u8,
minor: u8,
},
Platform(u8),
Mcu(u8),
InterfaceType {
index: u8,
type_byte: u8,
},
Frequency(u32),
Bandwidth(u32),
TxPower(i8),
SpreadingFactor(u8),
CodingRate(u8),
RadioState(u8),
StatRssi(u8),
StatSnr(i8),
StAlock(u16),
LtAlock(u16),
Ready,
SelectedInterface(u8),
Error(u8),
}Expand description
Events yielded by the RNode decoder.
Variants§
DataFrame
A data frame was received on the given subinterface.
Detected(bool)
Device detection response.
FirmwareVersion
Firmware version reported.
Platform(u8)
Platform byte reported.
Mcu(u8)
MCU byte reported.
InterfaceType
Interface type for a given index.
Frequency(u32)
Reported frequency (Hz).
Bandwidth(u32)
Reported bandwidth (Hz).
TxPower(i8)
Reported TX power (dBm, signed).
SpreadingFactor(u8)
Reported spreading factor.
CodingRate(u8)
Reported coding rate.
RadioState(u8)
Reported radio state.
StatRssi(u8)
Reported RSSI (raw byte, caller subtracts RSSI_OFFSET=157).
StatSnr(i8)
Reported SNR (signed, multiply by 0.25 for dB).
StAlock(u16)
Reported short-term airtime lock (percent * 100).
LtAlock(u16)
Reported long-term airtime lock (percent * 100).
Ready
Flow control: device ready for next packet.
SelectedInterface(u8)
Selected subinterface changed.
Error(u8)
Error code from device.
Trait Implementations§
Source§impl Clone for RNodeEvent
impl Clone for RNodeEvent
Source§fn clone(&self) -> RNodeEvent
fn clone(&self) -> RNodeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RNodeEvent
impl Debug for RNodeEvent
Source§impl PartialEq for RNodeEvent
impl PartialEq for RNodeEvent
impl StructuralPartialEq for RNodeEvent
Auto Trait Implementations§
impl Freeze for RNodeEvent
impl RefUnwindSafe for RNodeEvent
impl Send for RNodeEvent
impl Sync for RNodeEvent
impl Unpin for RNodeEvent
impl UnwindSafe for RNodeEvent
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