[][src]Enum clyde_3g_eps_api::ErrorCode

pub enum ErrorCode {
    None,
    UnknownCommand,
    CommandDataIncorrect,
    ChannelDoesNotExist,
    ChannelInactive,
    BadCRC,
    ResetOccurred,
    BadADCAcquisition,
    FailReadingEEPROM,
    InternalSPIError,
    CommandError,
    UnknownError,
}

Last Error

If an error has been generated after attempting to execute a user’s command the value 0xFFFF is returned. To find out the details of the last error, send the command 0x03 followed by the data byte 0x00. This will return the code of the last error generated. The first two bytes returned represent the Motherboard’s error code, the second two bytes represent the Daughterboard’s. Possible last error values

Variants

No error was encountered

Unknown command received

Supplied data incorrect when processing command

Selected channel does not exist

Selected channel is currently inactive

CRC code does not match data

A reset had to occur

There was an error with the ADC acquisition

Reading from EEPROM generated an error

Generic warning about an error on the internal SPI bus

The command to fetch the last error failed

Catch all for future error values

Trait Implementations

impl PartialEq<ErrorCode> for ErrorCode
[src]

This method tests for !=.

impl Clone for ErrorCode
[src]

Performs copy-assignment from source. Read more

impl Eq for ErrorCode
[src]

impl Debug for ErrorCode
[src]

Auto Trait Implementations

impl Send for ErrorCode

impl Sync for ErrorCode

Blanket Implementations

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

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

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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