[][src]Struct bl602_hal::gpio::pin::Pin22

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

Pin

Implementations

impl<MODE> Pin22<MODE>[src]

pub fn into_floating_output(self) -> Pin22<Output<Floating>>[src]

Configures the pin to operate as a Hi-Z floating output pin.

pub fn into_pull_up_output(self) -> Pin22<Output<PullUp>>[src]

Configures the pin to operate as a pull-up output pin.

pub fn into_pull_down_output(self) -> Pin22<Output<PullDown>>[src]

Configures the pin to operate as a pull-down output pin.

pub fn into_floating_input(self) -> Pin22<Input<Floating>>[src]

Configures the pin to operate as a Hi-Z floating input pin.

pub fn into_pull_up_input(self) -> Pin22<Input<PullUp>>[src]

Configures the pin to operate as a pull-up input pin.

pub fn into_pull_down_input(self) -> Pin22<Input<PullDown>>[src]

Configures the pin to operate as a pull-down input pin.

impl<MODE> Pin22<Input<MODE>>[src]

pub fn enable_smitter(&mut self)[src]

Enable smitter GPIO input filter

pub fn disable_smitter(&mut self)[src]

Enable smitter GPIO output filter

impl<MODE> Pin22<MODE>[src]

pub fn into_af1(self) -> Pin22<Alternate<AF1>>[src]

pub fn into_af2(self) -> Pin22<Alternate<AF2>>[src]

pub fn into_af4(self) -> Pin22<Alternate<AF4>>[src]

pub fn into_af6(self) -> Pin22<Alternate<AF6>>[src]

pub fn into_uart_sig6(self) -> Pin22<Uart>[src]

Configures the pin to UART alternate mode

pub fn into_af8(self) -> Pin22<Alternate<AF8>>[src]

pub fn into_af9(self) -> Pin22<Alternate<AF9>>[src]

pub fn into_analog(self) -> Pin22<Analog>[src]

pub fn into_af14(self) -> Pin22<Alternate<AF14>>[src]

impl<MODE> Pin22<Alternate<MODE>>[src]

pub fn set_pull_up(&mut self)[src]

pub fn set_pull_down(&mut self)[src]

pub fn set_floating(&mut self)[src]

Trait Implementations

impl<MODE> Default for Pin22<Output<MODE>>[src]

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

impl<MODE> StatefulOutputPin for Pin22<Output<MODE>>[src]

Auto Trait Implementations

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

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

impl<MODE> Unpin for Pin22<MODE> where
    MODE: Unpin

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<P> ToggleableOutputPin for P where
    P: Default
[src]

type Error = <P as OutputPin>::Error

Error type

fn try_toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>[src]

Toggle pin output

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.