pub struct PA4<MODE> { /* private fields */ }
Expand description

A mock GPIO pin in a particular mode.

Implementations

Change the mode of this mock pin to an output with low and high states.

Change the mode of this mock pin to an output with low and floating states.

Change the mode of this mock pin to a floating input.

Change the mode of this mock pin to an input with a pullup resistor.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns the “default value” for a type. Read more
Returns the “default value” for a type. Read more
Returns the “default value” for a type. Read more

Is the mock input pin high? Panic if it’s floating.

Is the mock input pin low? Panic if it’s floating.

Error type

Leave the mock pin floating.

Drive the mock pin low.

Error type
Drives the pin high or low depending on the provided value Read more

Drive the mock pin high.

Drive the mock pin low.

Error type
Drives the pin high or low depending on the provided value 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.