Struct stm32f30x_hal::gpio::gpiob::PB15
[−]
[src]
pub struct PB15<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PB15<MODE>
[src]
pub fn into_af4(self, moder: &mut MODER, afr: &mut AFRH) -> PB15<AF4>
[src]
Configures the pin to serve as alternate function 4 (AF4)
pub fn into_af5(self, moder: &mut MODER, afr: &mut AFRH) -> PB15<AF5>
[src]
Configures the pin to serve as alternate function 5 (AF5)
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRH) -> PB15<AF6>
[src]
Configures the pin to serve as alternate function 6 (AF6)
pub fn into_af7(self, moder: &mut MODER, afr: &mut AFRH) -> PB15<AF7>
[src]
Configures the pin to serve as alternate function 7 (AF7)
pub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<Floating>>
[src]
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<Floating>>
Configures the pin to operate as a floating input pin
pub fn into_pull_down_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<PullDown>>
[src]
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<PullUp>>
[src]
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PB15<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PB15<Output<OpenDrain>>
[src]
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PB15<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PB15<Output<PushPull>>
[src]
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PB15<Output<PushPull>>
Configures the pin to operate as an push pull output pin
impl PB15<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)
[src]
Enables / disables the internal pull up
impl<MODE> PB15<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
Trait Implementations
impl<MODE> OutputPin for PB15<Output<MODE>>
[src]
fn set_high(&mut self)
[src]
Drives the pin high Read more
fn set_low(&mut self)
[src]
Drives the pin low Read more