Enum tcn75a::Tcn75aError[][src]

pub enum Tcn75aError<RE, WE> {
    OutOfRange,
    LimitError {
        reason: LimitError,
        values: (I8F8, I8F8),
    },
    RegPtrError(WE),
    ReadError(RE),
    WriteError(WE),
}
Expand description

Enum for describing possible error conditions when reading/writing a TCN75A temperature sensor.

Variants

OutOfRange

A temperature value was read successfully, but some bits were set that should always read as zero. This may indicate that you are not reading a TCN75A.

LimitError

The temperature limit registers were read successfully, but the values read were invalid (violate the invariants). Contains a LimitError describing why the values are invalid, and a tuple of (I8F8, I8F8), representing the values which were read; the Hysteresis (Low) value is the left element, and the Limit-Set (High) is the right element.

Show fields

Fields of LimitError

reason: LimitErrorvalues: (I8F8, I8F8)
RegPtrError(WE)

The register pointer could not be set to read the desired register. Contains the error reason from Write::Error. For register writes, WriteError is returned if the register pointer failed to update.

ReadError(RE)

Reading the desired register via embedded_hal failed. Contains a Read::Error, propagated from the embedded_hal implementation.

WriteError(WE)

Writing the desired register via embedded_hal failed. Contains a Write::Error, propagated from the embedded_hal implementation.

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

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

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.

Casts the value.

Casts the value.