[][src]Struct stm32l4xx_hal::gpio::gpiob::PB8

pub struct PB8<MODE> { /* fields omitted */ }

Pin

Methods

impl<MODE> PB8<MODE>[src]

pub fn into_af4(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF4, MODE>>
[src]

Configures the pin to serve as alternate function 4 (AF4)

pub fn into_af5(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF5, MODE>>
[src]

Configures the pin to serve as alternate function 5 (AF5)

pub fn into_af6(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF6, MODE>>
[src]

Configures the pin to serve as alternate function 6 (AF6)

pub fn into_af7(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF7, MODE>>
[src]

Configures the pin to serve as alternate function 7 (AF7)

pub fn into_af8(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF8, MODE>>
[src]

Configures the pin to serve as alternate function 8 (AF8)

pub fn into_af9(
    self,
    moder: &mut MODER,
    afr: &mut AFRH
) -> PB8<Alternate<AF9, MODE>>
[src]

Configures the pin to serve as alternate function 9 (AF9)

pub fn into_floating_input(
    self,
    moder: &mut MODER,
    pupdr: &mut PUPDR
) -> PB8<Input<Floating>>
[src]

Configures the pin to operate as a floating input pin

pub fn into_pull_down_input(
    self,
    moder: &mut MODER,
    pupdr: &mut PUPDR
) -> PB8<Input<PullDown>>
[src]

Configures the pin to operate as a pulled down input pin

pub fn into_pull_up_input(
    self,
    moder: &mut MODER,
    pupdr: &mut PUPDR
) -> PB8<Input<PullUp>>
[src]

Configures the pin to operate as a pulled up input pin

pub fn into_open_drain_output(
    self,
    moder: &mut MODER,
    otyper: &mut OTYPER
) -> PB8<Output<OpenDrain>>
[src]

Configures the pin to operate as an open drain output pin

pub fn into_push_pull_output(
    self,
    moder: &mut MODER,
    otyper: &mut OTYPER
) -> PB8<Output<PushPull>>
[src]

Configures the pin to operate as an push pull output pin

pub fn into_touch_sample(
    self,
    moder: &mut MODER,
    otyper: &mut OTYPER,
    afr: &mut AFRH
) -> PB8<Alternate<AF9, Output<OpenDrain>>>
[src]

Configures the pin to operate as an touch sample

pub fn into_touch_channel(
    self,
    moder: &mut MODER,
    otyper: &mut OTYPER,
    afr: &mut AFRH
) -> PB8<Alternate<AF9, Output<PushPull>>>
[src]

Configures the pin to operate as an touch channel

impl PB8<Output<OpenDrain>>[src]

pub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)[src]

Enables / disables the internal pull up

impl<MODE> PB8<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 PB8<Output<MODE>>[src]

impl<MODE> InputPin for PB8<Input<MODE>>[src]

Auto Trait Implementations

impl<MODE> Send for PB8<MODE> where
    MODE: Send

impl<MODE> Sync for PB8<MODE> where
    MODE: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self