[][src]Struct esp8266_hal::gpio::Gpio5

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

Pin

Implementations

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

pub fn set_interrupt_mode(&mut self, mode: InterruptMode)[src]

pub fn clear_interrupt(&mut self)[src]

pub fn interrupt_status(&mut self) -> bool[src]

impl<MODE> Gpio5<MODE>[src]

pub unsafe fn unsafe_info<T>(self) -> Gpio5<T>[src]

Change the pin into a specific mode without doing any of the pin configuration

This should only be used if you know the pin is already configured correctly

pub fn into_push_pull_output(self) -> Gpio5<Output<PushPull>>[src]

pub fn into_open_drain_output(self) -> Gpio5<Output<OpenDrain>>[src]

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

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

Trait Implementations

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

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

type Error = Infallible

Error type

impl InputPin for Gpio5<Output<OpenDrain>>[src]

type Error = Infallible

Error type

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

type Error = Infallible

Error type

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

Auto Trait Implementations

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

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

impl<MODE> Unpin for Gpio5<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> Default for T where
    T: Default
[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

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.