Enum mcp3425::Error [] [src]

pub enum Error<E> {
    I2c(E),
    VoltageTooHigh,
    VoltageTooLow,
    NotInitialized,
    NotReady,
}

All possible errors in this crate

Variants

I2C bus error

Voltage is too high to be measured.

Voltage is too low to be measured.

A measurement in continuous mode has been triggered without previously writing the configuration to the device.

A measurement returned a stale result.

In continuous mode, this can happen if you poll faster than the sample rate. See datasheet section 5.1.1 for more details.

In one-shot mode, this is probably a timing bug that should be reported to https://github.com/dbrgn/mcp3425-rs/issues/!

Trait Implementations

impl<E: Debug> Debug for Error<E>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<E> Send for Error<E> where
    E: Send

impl<E> Sync for Error<E> where
    E: Sync