pub struct DynamicPin<const P: char, const N: u8> { /* private fields */ }
Expand description

Pin type with dynamic mode

  • P is port name: A for GPIOA, B for GPIOB, etc.
  • N is pin number: from 0 to 15.

Implementations

Switch pin into pull-up input

Switch pin into pull-down input

Switch pin into floating input

Switch pin into push-pull output

Switch pin into push-pull output with required voltage state

Switch pin into open-drain output

Switch pin into open-drain output with required voltage state

Drives the pin high

Drives the pin low

Is the input pin high?

Is the input pin low?

Trait Implementations

Error type

Error type

Is the input pin high?

Is the input pin low?

Is the input pin high?

Is the input pin low?

Error type

Drives the pin high Read more

Drives the pin low Read more

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

Drives the pin high Read more

Drives the pin low Read more

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.

Should always be Self

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.