pub struct DynPin { /* fields omitted */ }
Expand description
A value-level pin, parameterized by DynPinId
and DynPinMode
This type acts as a type-erased version of Pin
. Every pin is represented
by the same type, and pins are tracked and distinguished at run-time.
Implementations
Return a copy of the pin mode
Convert the pin to the requested DynPinMode
Disable the pin and set it to float
Disable the pin and set it to pull down
Disable the pin and set it to pull up
Configure the pin to operate as a floating input
Configure the pin to operate as a pulled down input
Configure the pin to operate as a pulled up input
Configure the pin to operate as a floating interrupt
Configure the pin to operate as a pulled down interrupt
Configure the pin to operate as a pulled up interrupt
Configure the pin to operate as a push-pull output
Configure the pin to operate as a readable push pull output
Configure the pin to operate as the corresponding peripheral function.
The config
argument indicates the desired peripheral function.
Read the current drive strength of the pin.
The drive strength is reset to normal on every change in pin mode.
Set the drive strength for the pin.
The drive strength is reset to normal on every change in pin mode.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DynPin
impl UnwindSafe for DynPin
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.