Struct stm32f103xx_hal::gpio::gpiob::PB6 [−][src]
pub struct PB6<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PB6<MODE>
[src]
impl<MODE> PB6<MODE>
pub fn into_alternate_push_pull(self, cr: &mut CRL) -> PB6<Alternate<PushPull>>
[src]
pub fn into_alternate_push_pull(self, cr: &mut CRL) -> PB6<Alternate<PushPull>>
Configures the pin to operate as an alternate function push pull output pin
pub fn into_floating_input(self, cr: &mut CRL) -> PB6<Input<Floating>>
[src]
pub fn into_floating_input(self, cr: &mut CRL) -> PB6<Input<Floating>>
Configures the pin to operate as a floating input pin
pub fn into_push_pull_output(self, cr: &mut CRL) -> PB6<Output<PushPull>>
[src]
pub fn into_push_pull_output(self, cr: &mut CRL) -> PB6<Output<PushPull>>
Configures the pin to operate as an push pull output pin
impl<MODE> PB6<Output<MODE>>
[src]
impl<MODE> PB6<Output<MODE>>
pub fn downgrade(self) -> PBx<Output<MODE>>
[src]
pub fn downgrade(self) -> PBx<Output<MODE>>
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 PB6<Output<MODE>>
[src]
impl<MODE> OutputPin for PB6<Output<MODE>>
fn set_high(&mut self)
[src]
fn set_high(&mut self)
Drives the pin high Read more
fn set_low(&mut self)
[src]
fn set_low(&mut self)
Drives the pin low Read more
impl<MODE> StatefulOutputPin for PB6<Output<MODE>>
[src]
impl<MODE> StatefulOutputPin for PB6<Output<MODE>>
fn is_set_high(&self) -> bool
[src]
fn is_set_high(&self) -> bool
Is the pin in drive high mode? Read more
fn is_set_low(&self) -> bool
[src]
fn is_set_low(&self) -> bool
Is the pin in drive low mode? Read more
impl<MODE> Default for PB6<Output<MODE>>
[src]
impl<MODE> Default for PB6<Output<MODE>>
impl<MODE> InputPin for PB6<Input<MODE>>
[src]
impl<MODE> InputPin for PB6<Input<MODE>>