Struct stm32g0xx_hal::gpio::gpiob::PB10
source · pub struct PB10<MODE> { /* private fields */ }
Implementations§
source§impl<MODE> PB10<MODE>
impl<MODE> PB10<MODE>
sourcepub fn into_floating_input(self) -> PB10<Input<Floating>>
pub fn into_floating_input(self) -> PB10<Input<Floating>>
Configures the pin to operate as a floating input pin
sourcepub fn into_pull_down_input(self) -> PB10<Input<PullDown>>
pub fn into_pull_down_input(self) -> PB10<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_pull_up_input(self) -> PB10<Input<PullUp>>
pub fn into_pull_up_input(self) -> PB10<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_analog(self) -> PB10<Analog>
pub fn into_analog(self) -> PB10<Analog>
Configures the pin to operate as an analog pin
sourcepub fn into_open_drain_output_in_state(
self,
initial_state: PinState
) -> PB10<Output<OpenDrain>>
pub fn into_open_drain_output_in_state(
self,
initial_state: PinState
) -> PB10<Output<OpenDrain>>
Configures the pin to operate as an open drain output
pin with initial_state
specifying whether the pin
should initially be high or low
sourcepub fn into_open_drain_output(self) -> PB10<Output<OpenDrain>>
pub fn into_open_drain_output(self) -> PB10<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
sourcepub fn into_push_pull_output_in_state(
self,
initial_state: PinState
) -> PB10<Output<PushPull>>
pub fn into_push_pull_output_in_state(
self,
initial_state: PinState
) -> PB10<Output<PushPull>>
Configures the pin to operate as a push pull output pin
with initial_state
specifying whether the pin should
initially be high or low
sourcepub fn into_push_pull_output(self) -> PB10<Output<PushPull>>
pub fn into_push_pull_output(self) -> PB10<Output<PushPull>>
Configures the pin to operate as a push pull output pin