Trait esp32c2_hal::prelude::_esp_hal_gpio_OutputPin
source · pub trait _esp_hal_gpio_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 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;
fn internal_pull_up(&mut self, on: bool) -> &mut Self;
fn internal_pull_down(&mut self, on: bool) -> &mut Self;
// Provided method
fn connect_peripheral_to_output(
&mut self,
signal: OutputSignal
) -> &mut Self { ... }
}
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 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
sourcefn disconnect_peripheral_from_output(&mut self) -> &mut Self
fn disconnect_peripheral_from_output(&mut self) -> &mut Self
fn internal_pull_up(&mut self, on: bool) -> &mut Self
fn internal_pull_down(&mut self, on: bool) -> &mut Self
Provided Methods§
fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self
Object Safety§
This trait is not object safe.