Trait esp32_hal::gpio::OutputPin

source ·
pub trait OutputPin: Pin {
Show 14 methods // Required methods fn set_to_open_drain_output(&mut self) -> &mut Self; fn set_to_push_pull_output(&mut self) -> &mut Self; fn enable_output(&mut self, on: bool) -> &mut Self; fn set_output_high(&mut self, on: bool) -> &mut Self; fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self; fn enable_open_drain(&mut self, on: bool) -> &mut Self; fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_up(&mut self, on: bool) -> &mut Self; fn internal_pull_down(&mut self, on: bool) -> &mut Self; fn connect_peripheral_to_output( &mut self, signal: OutputSignal ) -> &mut Self; fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool ) -> &mut Self; fn disconnect_peripheral_from_output(&mut self) -> &mut Self;
}

Required Methods§

source

fn set_to_open_drain_output(&mut self) -> &mut Self

source

fn set_to_push_pull_output(&mut self) -> &mut Self

source

fn enable_output(&mut self, on: bool) -> &mut Self

source

fn set_output_high(&mut self, on: bool) -> &mut Self

source

fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self

source

fn enable_open_drain(&mut self, on: bool) -> &mut Self

source

fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self

source

fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self

source

fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self

source

fn internal_pull_up(&mut self, on: bool) -> &mut Self

source

fn internal_pull_down(&mut self, on: bool) -> &mut Self

source

fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self

source

fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool ) -> &mut Self

source

fn disconnect_peripheral_from_output(&mut self) -> &mut Self

Remove this output pin from a connected signal.

Clears the entry in the GPIO matrix / IO mux that associates this output pin with a previously connected signal. Any other outputs connected to the signal remain intact.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>
where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin, MODE: OutputMode,