pub enum Configuration {
    LowPower,
    Input,
    Output,
    InputOutput,
    Function,
    Other,
}
Expand description

Enum for which state the pin is in. Some MCUs can support Input/Output pins, so this is a valid option. Function means the pin has been configured to a special function. Determining which function it outside the scope of the HIL, and should instead use a chip-specific API.

Variants

LowPower

Cannot be read or written or used; effectively inactive.

Input

Calls to the Input trait are valid.

Output

Calls to the Output trait are valid.

InputOutput

Calls to both the Input and Output traits are valid.

Function

Chip-specific, requires chip-specific API for more detail,

Other

In a state not covered by other values.

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.