pub struct DeviceErrors(/* private fields */);Expand description
The errors an SX126x has recorded, from GetDeviceErrors and Table 13-86.
Implementations§
Source§impl DeviceErrors
impl DeviceErrors
Sourcepub const RC64K_CALIBRATION: DeviceErrors
pub const RC64K_CALIBRATION: DeviceErrors
Bit 0: the RC64k calibration failed.
Sourcepub const RC13M_CALIBRATION: DeviceErrors
pub const RC13M_CALIBRATION: DeviceErrors
Bit 1: the RC13M calibration failed.
Sourcepub const PLL_CALIBRATION: DeviceErrors
pub const PLL_CALIBRATION: DeviceErrors
Bit 2: the PLL calibration failed.
Sourcepub const ADC_CALIBRATION: DeviceErrors
pub const ADC_CALIBRATION: DeviceErrors
Bit 3: the ADC calibration failed.
Sourcepub const IMAGE_CALIBRATION: DeviceErrors
pub const IMAGE_CALIBRATION: DeviceErrors
Bit 4: the image calibration failed.
Sourcepub const XOSC_START: DeviceErrors
pub const XOSC_START: DeviceErrors
Bit 5: the crystal oscillator failed to start. Expected at power on and after a cold wake when a TCXO is fitted, and cleared with ClearDeviceErrors.
Sourcepub const PLL_LOCK: DeviceErrors
pub const PLL_LOCK: DeviceErrors
Bit 6: the PLL failed to lock.
Sourcepub const PA_RAMP: DeviceErrors
pub const PA_RAMP: DeviceErrors
Bit 8: the power amplifier failed to ramp.
Sourcepub const fn from_bytes(bytes: [u8; 2]) -> DeviceErrors
pub const fn from_bytes(bytes: [u8; 2]) -> DeviceErrors
Sourcepub const fn contains(self, other: DeviceErrors) -> bool
pub const fn contains(self, other: DeviceErrors) -> bool
Trait Implementations§
Source§impl Clone for DeviceErrors
impl Clone for DeviceErrors
Source§fn clone(&self) -> DeviceErrors
fn clone(&self) -> DeviceErrors
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 DeviceErrors
Source§impl Debug for DeviceErrors
impl Debug for DeviceErrors
Source§impl Default for DeviceErrors
impl Default for DeviceErrors
Source§fn default() -> DeviceErrors
fn default() -> DeviceErrors
Returns the “default value” for a type. Read more
impl Eq for DeviceErrors
Source§impl Hash for DeviceErrors
impl Hash for DeviceErrors
Source§impl PartialEq for DeviceErrors
impl PartialEq for DeviceErrors
Source§fn eq(&self, other: &DeviceErrors) -> bool
fn eq(&self, other: &DeviceErrors) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceErrors
Auto Trait Implementations§
impl Freeze for DeviceErrors
impl RefUnwindSafe for DeviceErrors
impl Send for DeviceErrors
impl Sync for DeviceErrors
impl Unpin for DeviceErrors
impl UnsafeUnpin for DeviceErrors
impl UnwindSafe for DeviceErrors
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