[][src]Struct solo_bsc::gpio::gpiob::PB7

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

Pin

Methods

impl<MODE> PB7<MODE>[src]

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

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

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

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

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

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

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

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

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

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

pub fn into_af9(
    self,
    moder: &mut MODER,
    afr: &mut AFRL
) -> PB7<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
) -> PB7<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
) -> PB7<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
) -> PB7<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
) -> PB7<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
) -> PB7<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 AFRL
) -> PB7<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 AFRL
) -> PB7<Alternate<AF9, Output<PushPull>>>
[src]

Configures the pin to operate as an touch channel

impl PB7<Output<OpenDrain>>[src]

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

Enables / disables the internal pull up

impl<MODE> PB7<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 SdaPin<I2C1> for PB7<Alternate<AF4, Output<OpenDrain>>>[src]

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

impl ChannelPin<TSC> for PB7<Alternate<AF9, Output<PushPull>>>[src]

impl SamplePin<TSC> for PB7<Alternate<AF9, Output<OpenDrain>>>[src]

impl<MODE> OutputPin for PB7<Output<MODE>>[src]

Auto Trait Implementations

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

impl<MODE> Sync for PB7<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 = Infallible

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

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