pub struct DeviceReport {
pub detected: bool,
pub r_frequency: Option<u32>,
pub r_bandwidth: Option<u32>,
pub r_txpower: Option<u8>,
pub r_sf: Option<u8>,
pub r_cr: Option<u8>,
pub r_state: Option<u8>,
pub fw_maj: Option<u8>,
pub fw_min: Option<u8>,
}Fields§
§detected: bool§r_frequency: Option<u32>§r_bandwidth: Option<u32>§r_txpower: Option<u8>§r_sf: Option<u8>§r_cr: Option<u8>§r_state: Option<u8>§fw_maj: Option<u8>§fw_min: Option<u8>Implementations§
Source§impl DeviceReport
impl DeviceReport
pub fn apply(&mut self, command: u8, payload: &[u8])
pub fn all_radio_params_present(&self) -> bool
Sourcepub fn radio_validated(&self, config: &RadioConfig) -> bool
pub fn radio_validated(&self, config: &RadioConfig) -> bool
RNS permits a missing frequency report but otherwise requires frequency within 100 Hz, exact bandwidth, TX power and spreading factor, and the radio powered on.
Sourcepub fn firmware_ok(&self) -> Option<bool>
pub fn firmware_ok(&self) -> Option<bool>
RNS panics on an old reported firmware; the host interface only warns.
pub const fn firmware_version(&self) -> Option<FirmwareVersion>
Trait Implementations§
Source§impl Clone for DeviceReport
impl Clone for DeviceReport
Source§fn clone(&self) -> DeviceReport
fn clone(&self) -> DeviceReport
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 DeviceReport
Source§impl Debug for DeviceReport
impl Debug for DeviceReport
Source§impl Default for DeviceReport
impl Default for DeviceReport
Source§fn default() -> DeviceReport
fn default() -> DeviceReport
Returns the “default value” for a type. Read more
impl Eq for DeviceReport
Source§impl PartialEq for DeviceReport
impl PartialEq for DeviceReport
impl StructuralPartialEq for DeviceReport
Auto Trait Implementations§
impl Freeze for DeviceReport
impl RefUnwindSafe for DeviceReport
impl Send for DeviceReport
impl Sync for DeviceReport
impl Unpin for DeviceReport
impl UnsafeUnpin for DeviceReport
impl UnwindSafe for DeviceReport
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