pub enum RadioError<E> {
Spi(E),
Pin(ErrorKind),
Absent(u8),
Modulation(ModulationError),
Output,
PayloadLength(usize),
BufferTooSmall(usize),
NotConfigured,
Calibration,
NoInterrupt,
}Expand description
What can go wrong driving an SX127x.
Variants§
Spi(E)
The SPI device failed.
Pin(ErrorKind)
The NRESET line could not be driven.
Absent(u8)
RegVersion held this instead of 0x12, so no SX1276, SX1277, SX1278, or SX1279, or a miswired one, is on the bus.
Modulation(ModulationError)
The link settings are not ones the SX127x can use at the carrier.
Output
The power settings are for the other amplifier output than the board wires.
PayloadLength(usize)
A payload the chip cannot send: longer than 255 bytes, or empty, with its length.
BufferTooSmall(usize)
A received payload of this many bytes does not fit the buffer given.
NotConfigured
A transmission or a reception was asked for before Sx127x::configure.
Calibration
The image calibration was still running after CALIBRATION_LIMIT_US.
NoInterrupt
The expected interrupt did not arrive in the time the driver allows.
Trait Implementations§
Source§impl<E: Clone> Clone for RadioError<E>
impl<E: Clone> Clone for RadioError<E>
Source§fn clone(&self) -> RadioError<E>
fn clone(&self) -> RadioError<E>
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<E: Copy> Copy for RadioError<E>
Source§impl<E: Debug> Debug for RadioError<E>
impl<E: Debug> Debug for RadioError<E>
Source§impl<E: Debug> Display for RadioError<E>
impl<E: Debug> Display for RadioError<E>
impl<E: Eq> Eq for RadioError<E>
Source§impl<E: Debug> Error for RadioError<E>
impl<E: Debug> Error for RadioError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E: PartialEq> PartialEq for RadioError<E>
impl<E: PartialEq> PartialEq for RadioError<E>
Source§fn eq(&self, other: &RadioError<E>) -> bool
fn eq(&self, other: &RadioError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for RadioError<E>
Auto Trait Implementations§
impl<E> Freeze for RadioError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RadioError<E>where
E: RefUnwindSafe,
impl<E> Send for RadioError<E>where
E: Send,
impl<E> Sync for RadioError<E>where
E: Sync,
impl<E> Unpin for RadioError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RadioError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RadioError<E>where
E: UnwindSafe,
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