[][src]Enum radio_sx128x::Error

pub enum Error<CommsError, PinError> {
    Comms(CommsError),
    Pin(PinError),
    Aborted,
    Timeout,
    BusyTimeout,
    InvalidCrc,
    InvalidLength,
    InvalidSync,
    Abort,
    InvalidState(StateState),
    InvalidDevice(u16),
    InvalidResponse(u8),
    InvalidConfiguration,
    InvalidFrequency,
    NoComms,
}

Sx128x error type

Variants

Comms(CommsError)

Communications (SPI or UART) error

Pin(PinError)

Pin control error

Aborted

Transaction aborted

Timeout

Timeout by device

BusyTimeout
InvalidCrc

CRC error on received message

InvalidLength

TODO

InvalidSync

TODO

Abort

TODO

InvalidState(StateState)

TODO

InvalidDevice(u16)

Radio returned an invalid device firmware version

InvalidResponse(u8)

Radio returned an invalid response

InvalidConfiguration

Invalid configuration option provided

InvalidFrequency

Frequency out of range

NoComms

No SPI communication detected

Trait Implementations

impl<CommsError: Clone, PinError: Clone> Clone for Error<CommsError, PinError>[src]

impl<CommsError: Debug, PinError: Debug> Debug for Error<CommsError, PinError>[src]

impl<CommsError, PinError> From<Error<CommsError, PinError>> for Error<CommsError, PinError>[src]

impl<CommsError: PartialEq, PinError: PartialEq> PartialEq<Error<CommsError, PinError>> for Error<CommsError, PinError>[src]

impl<CommsError, PinError> StructuralPartialEq for Error<CommsError, PinError>[src]

Auto Trait Implementations

impl<CommsError, PinError> RefUnwindSafe for Error<CommsError, PinError> where
    CommsError: RefUnwindSafe,
    PinError: RefUnwindSafe

impl<CommsError, PinError> Send for Error<CommsError, PinError> where
    CommsError: Send,
    PinError: Send

impl<CommsError, PinError> Sync for Error<CommsError, PinError> where
    CommsError: Sync,
    PinError: Sync

impl<CommsError, PinError> Unpin for Error<CommsError, PinError> where
    CommsError: Unpin,
    PinError: Unpin

impl<CommsError, PinError> UnwindSafe for Error<CommsError, PinError> where
    CommsError: UnwindSafe,
    PinError: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.