[][src]Struct esp32_hal::gpio::Gpio12

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

Pin

Implementations

impl<MODE> Gpio12<MODE>[src]

impl<MODE> Gpio12<MODE>[src]

impl<MODE> Gpio12<MODE>[src]

Trait Implementations

impl Channel<ADC2> for Gpio12<Analog>[src]

type ID = u8

Channel ID type Read more

impl<MODE> InputPin for Gpio12<MODE>[src]

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

type Error = Infallible

Error type

impl<MODE> InputPin for Gpio12<RTCInput<MODE>>[src]

type Error = Infallible

Error type

impl<MODE> OutputPin for Gpio12<MODE>[src]

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

type Error = Infallible

Error type

impl<MODE> OutputPin for Gpio12<RTCOutput<MODE>>[src]

type Error = Infallible

Error type

impl<MODE> Pin for Gpio12<MODE>[src]

impl<MODE> Pull for Gpio12<MODE>[src]

impl<MODE> RTCInputPin for Gpio12<MODE>[src]

impl<MODE> RTCOutputPin for Gpio12<MODE>[src]

fn rtc_enable_output(&mut self, on: bool) -> &mut Self[src]

Enable/disable the output

fn rtc_set_output_high(&mut self, on: bool) -> &mut Self[src]

Set the output to high or low

fn rtc_set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self[src]

Set drive strength

fn rtc_enable_open_drain(&mut self, on: bool) -> &mut Self[src]

Enable/Disable open drain

fn rtc_enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self[src]

Enable/disable the output while in sleep mode

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

impl<MODE> StatefulOutputPin for Gpio12<RTCOutput<MODE>>[src]

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

type Error = Infallible

Error type

impl<MODE> ToggleableOutputPin for Gpio12<RTCOutput<MODE>>[src]

type Error = Infallible

Error type

Auto Trait Implementations

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

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

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

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.