Struct stm32g0xx_hal::gpio::gpioa::PA12
source · pub struct PA12<MODE> { /* private fields */ }
Implementations§
source§impl<MODE> PA12<MODE>
impl<MODE> PA12<MODE>
sourcepub fn into_floating_input(self) -> PA12<Input<Floating>>
pub fn into_floating_input(self) -> PA12<Input<Floating>>
Configures the pin to operate as a floating input pin
sourcepub fn into_pull_down_input(self) -> PA12<Input<PullDown>>
pub fn into_pull_down_input(self) -> PA12<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_pull_up_input(self) -> PA12<Input<PullUp>>
pub fn into_pull_up_input(self) -> PA12<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_analog(self) -> PA12<Analog>
pub fn into_analog(self) -> PA12<Analog>
Configures the pin to operate as an analog pin
sourcepub fn into_open_drain_output_in_state(
self,
initial_state: PinState
) -> PA12<Output<OpenDrain>>
pub fn into_open_drain_output_in_state(
self,
initial_state: PinState
) -> PA12<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) -> PA12<Output<OpenDrain>>
pub fn into_open_drain_output(self) -> PA12<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
) -> PA12<Output<PushPull>>
pub fn into_push_pull_output_in_state(
self,
initial_state: PinState
) -> PA12<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) -> PA12<Output<PushPull>>
pub fn into_push_pull_output(self) -> PA12<Output<PushPull>>
Configures the pin to operate as a push pull output pin