pub struct P0_01<MODE> { /* private fields */ }

Implementations

Convert the pin to be a floating input

Convert the pin to bepin a push-pull output with normal drive

Convert the pin to be an open-drain output

This method currently does not support configuring an internal pull-up or pull-down resistor.

Convert the pin to be an open-drain input/output

Similar to into_open_drain_output, but can also be read from.

This method currently does not support configuring an internal pull-up or pull-down resistor.

Disconnects the pin.

In disconnected mode the pin cannot be used as input or output. It is primarily useful to reduce power usage.

Degrade to a generic pin struct, which can be used with peripherals

Trait Implementations

Converts to this type from the input type.
Error type
Is the input pin high?
Is the input pin low?
Error type
Is the input pin high?
Is the input pin low?

Set the output as high

Set the output as low

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

Is the output pin set as high?

Is the output pin set as low?

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.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

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

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
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.
Casts the value.
Casts the value.