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

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

Pin

Implementations

impl<MODE> Pin4<MODE>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn into_uart_sig4(self) -> Pin4<Uart>[src]

Configures the pin to UART alternate mode

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

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

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

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

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

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

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

Auto Trait Implementations

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

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

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