pub struct Pin21<MODE> { /* private fields */ }
Expand description
Pin
Implementations§
source§impl<MODE> Pin21<MODE>
impl<MODE> Pin21<MODE>
sourcepub fn into_iof0(self) -> Pin21<IOF0<NoInvert>>
pub fn into_iof0(self) -> Pin21<IOF0<NoInvert>>
Configures the pin to serve as alternate function 0 (AF0)
sourcepub fn into_iof1(self) -> Pin21<IOF1<NoInvert>>
pub fn into_iof1(self) -> Pin21<IOF1<NoInvert>>
Configures the pin to serve as alternate function 1 (AF1)
sourcepub fn into_inverted_iof0(self) -> Pin21<IOF0<Invert>>
pub fn into_inverted_iof0(self) -> Pin21<IOF0<Invert>>
Configures the pin to serve as inverted alternate function 0 (AF0)
sourcepub fn into_inverted_iof1(self) -> Pin21<IOF1<Invert>>
pub fn into_inverted_iof1(self) -> Pin21<IOF1<Invert>>
Configures the pin to serve as inverted alternate function 1 (AF1)
sourcepub fn into_floating_input(self) -> Pin21<Input<Floating>>
pub fn into_floating_input(self) -> Pin21<Input<Floating>>
Configures the pin to serve as a floating input pin
sourcepub fn into_pull_up_input(self) -> Pin21<Input<PullUp>>
pub fn into_pull_up_input(self) -> Pin21<Input<PullUp>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_output(self) -> Pin21<Output<Regular<NoInvert>>>
pub fn into_output(self) -> Pin21<Output<Regular<NoInvert>>>
Configures the pin to operate as an output pin
sourcepub fn into_inverted_output(self) -> Pin21<Output<Regular<Invert>>>
pub fn into_inverted_output(self) -> Pin21<Output<Regular<Invert>>>
Configures the pin to operate as an inverted output pin
Trait Implementations§
source§impl<MODE> StatefulOutputPin for Pin21<Output<MODE>>
impl<MODE> StatefulOutputPin for Pin21<Output<MODE>>
source§fn is_set_high(&self) -> Result<bool, Infallible>
fn is_set_high(&self) -> Result<bool, Infallible>
Is the pin in drive high mode? Read more
source§fn is_set_low(&self) -> Result<bool, Infallible>
fn is_set_low(&self) -> Result<bool, Infallible>
Is the pin in drive low mode? Read more
source§impl<MODE> ToggleableOutputPin for Pin21<Output<MODE>>
impl<MODE> ToggleableOutputPin for Pin21<Output<MODE>>
§type Error = Infallible
type Error = Infallible
Error type