Struct stm32f103xx_hal::gpio::gpiob::PB10
[−]
[src]
pub struct PB10<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PB10<MODE>
[src]
pub fn into_alternate_push_pull(self, cr: &mut CRH) -> PB10<Alternate<PushPull>>
[src]
Configures the pin to operate as an alternate function push pull output pin
pub fn into_floating_input(self, cr: &mut CRH) -> PB10<Input<Floating>>
[src]
Configures the pin to operate as a floating input pin
pub fn into_push_pull_output(self, cr: &mut CRH) -> PB10<Output<PushPull>>
[src]
Configures the pin to operate as an push pull output pin
impl<MODE> PB10<Output<MODE>>
[src]
pub fn downgrade(self) -> PBx<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