[][src]Enum dw1000::hl::Error

pub enum Error<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
{ Spi(Error<SPI, CS>), Fcs, Phy, BufferTooSmall { required_len: usize, }, ReedSolomon, FrameWaitTimeout, Overrun, PreambleDetectionTimeout, SfdTimeout, FrameFilteringRejection, Frame(DecodeError), DelayedSendTooLate, DelayedSendPowerUpWarning, Ssmarshal(Error), InvalidConfiguration, }

An error that can occur when sending or receiving data

Variants

Spi(Error<SPI, CS>)

Error occured while using SPI bus

Fcs

Receiver FCS error

Phy

PHY header error

BufferTooSmall

Buffer too small

Fields of BufferTooSmall

required_len: usize

Indicates how large a buffer would have been required

ReedSolomon

Receiver Reed Solomon Frame Sync Loss

FrameWaitTimeout

Receiver Frame Wait Timeout

Overrun

Receiver Overrun

PreambleDetectionTimeout

Preamble Detection Timeout

SfdTimeout

Receiver SFD Timeout

FrameFilteringRejection

Frame was rejected because due to automatic frame filtering

It seems that frame filtering is typically handled transparently by the hardware, and filtered frames aren't usually visible to the driver. However, sometimes a filtered frame bubbles up and disrupts an ongoing receive operation, which then causes this error.

Frame could not be decoded

DelayedSendTooLate

A delayed frame could not be sent in time

Please note that the frame was still sent. Replies could still arrive, and if it was a ranging frame, the resulting range measurement will be wrong.

DelayedSendPowerUpWarning

Transmitter could not power up in time for delayed send

The frame was still transmitted, but the first bytes of the preamble were likely corrupted.

Ssmarshal(Error)

An error occured while serializing or deserializing data

InvalidConfiguration

The configuration was not valid. Some combinations of settings are not allowed.

Trait Implementations

impl<SPI, CS> Debug for Error<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    <SPI as Transfer<u8>>::Error: Debug,
    <SPI as Write<u8>>::Error: Debug,
    CS: OutputPin,
    <CS as OutputPin>::Error: Debug
[src]

impl<SPI, CS> From<Error<SPI, CS>> for Error<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
[src]

impl<SPI, CS> From<Error> for Error<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
[src]

Auto Trait Implementations

impl<SPI, CS> Send for Error<SPI, CS> where
    <CS as OutputPin>::Error: Send,
    <SPI as Transfer<u8>>::Error: Send,
    <SPI as Write<u8>>::Error: Send

impl<SPI, CS> Sync for Error<SPI, CS> where
    <CS as OutputPin>::Error: Sync,
    <SPI as Transfer<u8>>::Error: Sync,
    <SPI as Write<u8>>::Error: Sync

impl<SPI, CS> Unpin for Error<SPI, CS> where
    <CS as OutputPin>::Error: Unpin,
    <SPI as Transfer<u8>>::Error: Unpin,
    <SPI as Write<u8>>::Error: Unpin

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, 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.