[][src]Enum kernel::hil::gpio::Configuration

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

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

impl Debug for Configuration[src]

Auto Trait Implementations

impl Send for Configuration

impl Sync for Configuration

impl Unpin for Configuration

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.