[][src]Struct e310x_hal::gpio::gpio0::Pin16

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

Pin

Implementations

impl<MODE> Pin16<MODE>[src]

pub fn into_iof0(self) -> Pin16<IOF0<NoInvert>>[src]

Configures the pin to serve as alternate function 0 (AF0)

pub fn into_iof1(self) -> Pin16<IOF1<NoInvert>>[src]

Configures the pin to serve as alternate function 1 (AF1)

pub fn into_inverted_iof0(self) -> Pin16<IOF0<Invert>>[src]

Configures the pin to serve as inverted alternate function 0 (AF0)

pub fn into_inverted_iof1(self) -> Pin16<IOF1<Invert>>[src]

Configures the pin to serve as inverted alternate function 1 (AF1)

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

Configures the pin to serve as a floating input pin

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

Configures the pin to operate as a pulled down input pin

pub fn into_output(self) -> Pin16<Output<Regular<NoInvert>>>[src]

Configures the pin to operate as an output pin

pub fn into_inverted_output(self) -> Pin16<Output<Regular<Invert>>>[src]

Configures the pin to operate as an inverted output pin

pub fn into_output_drive(self) -> Pin16<Output<Drive<NoInvert>>>[src]

Configure the pin to operate as an output pin with high current drive

pub fn into_inverted_output_drive(self) -> Pin16<Output<Drive<Invert>>>[src]

Configure the pin to operate as an inverted output pin with high current drive

Trait Implementations

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

impl<T> RxPin<UART0> for Pin16<IOF0<T>>[src]

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

impl<MODE> ToggleableOutputPin for Pin16<Output<MODE>>[src]

type Error = Infallible

Error type

fn toggle(&mut self) -> Result<(), Infallible>[src]

Toggles the pin state.

Auto Trait Implementations

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

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

impl<MODE> Unpin for Pin16<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> InputPin for T where
    T: InputPin
[src]

type Error = ()

Error type

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

impl<T> OutputPin for T where
    T: OutputPin
[src]

type Error = ()

Error type

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

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

type Error = <P as OutputPin>::Error

Error type

pub fn 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.