Struct nucleo_f042k6::gpio::gpiob::PB4
source · pub struct PB4<MODE> { /* private fields */ }
Expand description
Pin
Implementations§
source§impl<MODE> PB4<MODE>
impl<MODE> PB4<MODE>
sourcepub fn into_alternate_af0(self) -> PB4<Alternate<AF0>>
pub fn into_alternate_af0(self) -> PB4<Alternate<AF0>>
Configures the pin to operate in AF0 mode
sourcepub fn into_alternate_af1(self) -> PB4<Alternate<AF1>>
pub fn into_alternate_af1(self) -> PB4<Alternate<AF1>>
Configures the pin to operate in AF1 mode
sourcepub fn into_alternate_af2(self) -> PB4<Alternate<AF2>>
pub fn into_alternate_af2(self) -> PB4<Alternate<AF2>>
Configures the pin to operate in AF2 mode
sourcepub fn into_alternate_af3(self) -> PB4<Alternate<AF3>>
pub fn into_alternate_af3(self) -> PB4<Alternate<AF3>>
Configures the pin to operate in AF3 mode
sourcepub fn into_alternate_af4(self) -> PB4<Alternate<AF4>>
pub fn into_alternate_af4(self) -> PB4<Alternate<AF4>>
Configures the pin to operate in AF4 mode
sourcepub fn into_alternate_af5(self) -> PB4<Alternate<AF5>>
pub fn into_alternate_af5(self) -> PB4<Alternate<AF5>>
Configures the pin to operate in AF5 mode
sourcepub fn into_alternate_af6(self) -> PB4<Alternate<AF6>>
pub fn into_alternate_af6(self) -> PB4<Alternate<AF6>>
Configures the pin to operate in AF6 mode
sourcepub fn into_alternate_af7(self) -> PB4<Alternate<AF7>>
pub fn into_alternate_af7(self) -> PB4<Alternate<AF7>>
Configures the pin to operate in AF7 mode
sourcepub fn into_floating_input(self) -> PB4<Input<Floating>>
pub fn into_floating_input(self) -> PB4<Input<Floating>>
Configures the pin to operate as a floating input pin
sourcepub fn into_pull_down_input(self) -> PB4<Input<PullDown>>
pub fn into_pull_down_input(self) -> PB4<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_pull_up_input(self) -> PB4<Input<PullUp>>
pub fn into_pull_up_input(self) -> PB4<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_open_drain_output(self) -> PB4<Output<OpenDrain>>
pub fn into_open_drain_output(self) -> PB4<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
sourcepub fn into_push_pull_output(self) -> PB4<Output<PushPull>>
pub fn into_push_pull_output(self) -> PB4<Output<PushPull>>
Configures the pin to operate as an push pull output pin
sourcepub fn into_push_pull_output_hs(self) -> PB4<Output<PushPull>>
pub fn into_push_pull_output_hs(self) -> PB4<Output<PushPull>>
Configures the pin to operate as an push pull output pin with quick fall and rise times
source§impl PB4<Output<OpenDrain>>
impl PB4<Output<OpenDrain>>
sourcepub fn internal_pull_up(&mut self, on: bool)
pub fn internal_pull_up(&mut self, on: bool)
Enables / disables the internal pull up
source§impl<MODE> PB4<Alternate<MODE>>
impl<MODE> PB4<Alternate<MODE>>
sourcepub fn internal_pull_up(self, on: bool) -> PB4<Alternate<MODE>>
pub fn internal_pull_up(self, on: bool) -> PB4<Alternate<MODE>>
Enables / disables the internal pull up
source§impl<MODE> PB4<Alternate<MODE>>
impl<MODE> PB4<Alternate<MODE>>
sourcepub fn set_open_drain(self) -> PB4<Alternate<MODE>>
pub fn set_open_drain(self) -> PB4<Alternate<MODE>>
Turns pin alternate configuration pin into open drain