pub struct RxPayload {
pub rssi_tenths_dbm: i16,
pub snr_tenths_db: i16,
pub freq_err_hz: i32,
pub timestamp_us: u64,
pub crc_valid: bool,
pub packets_dropped: u16,
pub origin: RxOrigin,
pub data: Vec<u8, MAX_OTA_PAYLOAD>,
}Expand description
RX event payload (PROTOCOL.md §6.9). Metadata is the 20-byte
prefix; data is the OTA packet body (0..=MAX_OTA_PAYLOAD bytes).
Fields§
§rssi_tenths_dbm: i16RSSI in tenths of a dBm.
snr_tenths_db: i16SNR in tenths of a dB.
freq_err_hz: i32Estimated LO offset in Hz.
timestamp_us: u64Microseconds since boot, captured at RxDone IRQ.
crc_valid: boolTrue if the radio reported CRC pass (or CRC was not configured).
packets_dropped: u16Packets dropped since the previous delivered RX. Cleared to 0 on every delivered event.
origin: RxOrigin§data: Vec<u8, MAX_OTA_PAYLOAD>Implementations§
Trait Implementations§
impl Eq for RxPayload
impl StructuralPartialEq for RxPayload
Auto Trait Implementations§
impl Freeze for RxPayload
impl RefUnwindSafe for RxPayload
impl Send for RxPayload
impl Sync for RxPayload
impl Unpin for RxPayload
impl UnsafeUnpin for RxPayload
impl UnwindSafe for RxPayload
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