Enum radio_sx1231::Error[][src]

pub enum Error<SpiError, PinError> {
    Spi(SpiError),
    Pin(PinError),
    InvalidConfiguration,
    Aborted,
    InvalidResponse,
    Timeout,
    Crc,
    BufferSize(usize),
    InvalidDevice(u8),
    InvalidPacketSize(usizeusize),
    UnexpectedValue(u8),
}
Expand description

Sx1231 error type

Variants

Spi(SpiError)

SPI error

Tuple Fields of Spi

0: SpiError
Pin(PinError)

Pin control error

Tuple Fields of Pin

0: PinError
InvalidConfiguration

Invalid configuration

Aborted

Transaction aborted

InvalidResponse

Invalid response from device

Timeout

Timeout while awaiting operation completion

Crc

incoming packet CRC error

BufferSize(usize)

Received packet exceeds buffer size

Tuple Fields of BufferSize

0: usize
InvalidDevice(u8)

Invalid or unrecognised device

Tuple Fields of InvalidDevice

0: u8
InvalidPacketSize(usizeusize)

Packet size disagrees with FIFO interrupt (first is packet len, second is buffer size)

Tuple Fields of InvalidPacketSize

0: usize1: usize
UnexpectedValue(u8)

Tuple Fields of UnexpectedValue

0: u8

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.