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

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

Pin

Implementations

impl<MODE> Pin21<MODE>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn into_uart_sig5(self) -> Pin21<Uart>[src]

Configures the pin to UART alternate mode

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

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

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

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

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

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

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

Auto Trait Implementations

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

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

impl<MODE> Unpin for Pin21<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.