Struct stm32f042_hal::gpio::gpioa::PA3
[−]
[src]
pub struct PA3<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PA3<MODE>
[src]
pub fn into_alternate_af0(self) -> PA3<Alternate<AF0>>
[src]
Configures the pin to operate in AF0 mode
pub fn into_alternate_af1(self) -> PA3<Alternate<AF1>>
[src]
Configures the pin to operate in AF1 mode
pub fn into_alternate_af2(self) -> PA3<Alternate<AF2>>
[src]
Configures the pin to operate in AF2 mode
pub fn into_alternate_af3(self) -> PA3<Alternate<AF3>>
[src]
Configures the pin to operate in AF3 mode
pub fn into_alternate_af4(self) -> PA3<Alternate<AF4>>
[src]
Configures the pin to operate in AF4 mode
pub fn into_alternate_af5(self) -> PA3<Alternate<AF5>>
[src]
Configures the pin to operate in AF5 mode
pub fn into_alternate_af6(self) -> PA3<Alternate<AF6>>
[src]
Configures the pin to operate in AF6 mode
pub fn into_alternate_af7(self) -> PA3<Alternate<AF7>>
[src]
Configures the pin to operate in AF7 mode
pub fn into_floating_input(self) -> PA3<Input<Floating>>
[src]
Configures the pin to operate as a floating input pin
pub fn into_pull_down_input(self) -> PA3<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self) -> PA3<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self) -> PA3<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(self) -> PA3<Output<PushPull>>
[src]
Configures the pin to operate as an push pull output pin
impl PA3<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, on: bool)
[src]
Enables / disables the internal pull up
impl<MODE> PA3<Alternate<MODE>>
[src]
pub fn internal_pull_up(self, on: bool) -> Self
[src]
Enables / disables the internal pull up
impl<MODE> PA3<Alternate<MODE>>
[src]
pub fn set_open_drain(self) -> Self
[src]
Turns pin alternate configuration pin into open drain
impl<MODE> PA3<Output<MODE>>
[src]
pub fn downgrade(self) -> PA<Output<MODE>>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
impl<MODE> PA3<Input<MODE>>
[src]
pub fn downgrade(self) -> PA<Input<MODE>>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
Trait Implementations
impl<MODE> OutputPin for PA3<Output<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Is the output pin high?
fn is_low(&self) -> bool
[src]
Is the output pin low?
fn set_high(&mut self)
[src]
Sets the pin high
fn set_low(&mut self)
[src]
Sets the pin low