Trait esp32c2_hal::gpio::Pin
source · pub trait 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 clear_interrupt(&mut self);
// Provided method
fn listen(&mut self, event: Event) { ... }
}