Trait esp32_hal::prelude::_esp_hal_gpio_Pin
source · pub trait _esp_hal_gpio_Pin {
// Required methods
fn number(&self) -> u8;
fn sleep_mode(&mut self, on: bool);
fn set_alternate_function(&mut self, alternate: AlternateFunction);
fn is_listening(&self) -> bool;
fn listen_with_options(
&mut self,
event: Event,
int_enable: bool,
nmi_enable: bool,
wake_up_from_light_sleep: bool
);
fn unlisten(&mut self);
fn is_interrupt_set(&self) -> bool;
fn clear_interrupt(&mut self);
// Provided method
fn listen(&mut self, event: Event) { ... }
}
Required Methods§
fn number(&self) -> u8
fn sleep_mode(&mut self, on: bool)
fn set_alternate_function(&mut self, alternate: AlternateFunction)
sourcefn is_listening(&self) -> bool
fn is_listening(&self) -> bool
Checks if listening for interrupts is enabled for this Pin
sourcefn listen_with_options(
&mut self,
event: Event,
int_enable: bool,
nmi_enable: bool,
wake_up_from_light_sleep: bool
)
fn listen_with_options( &mut self, event: Event, int_enable: bool, nmi_enable: bool, wake_up_from_light_sleep: bool )
Listen for interrupts
sourcefn is_interrupt_set(&self) -> bool
fn is_interrupt_set(&self) -> bool
Checks if the interrupt status bit for this Pin is set
sourcefn clear_interrupt(&mut self)
fn clear_interrupt(&mut self)
Clear the interrupt status bit for this Pin