Trait esp32c3_hal::gpio_types::Pin
source · [−]pub trait Pin {
fn number(&self) -> u8;
fn sleep_mode(&mut self, on: bool) -> &mut Self;
fn set_alternate_function(
&mut self,
alternate: AlternateFunction
) -> &mut Self;
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);
fn is_pcore_interrupt_set(&self) -> bool;
fn is_pcore_non_maskable_interrupt_set(&self) -> bool;
fn is_acore_interrupt_set(&self) -> bool;
fn is_acore_non_maskable_interrupt_set(&self) -> bool;
fn enable_hold(&mut self, on: bool);
fn listen(&mut self, event: Event) { ... }
}
Required Methods
source
fn sleep_mode(&mut self, on: bool) -> &mut Self
source
fn set_alternate_function(&mut self, alternate: AlternateFunction) -> &mut Self
sourcefn listen_with_options(
fn listen_with_options(
&mut self,
event: Event,
int_enable: bool,
nmi_enable: bool,
wake_up_from_light_sleep: bool
)
source
fn clear_interrupt(&mut self)
source
fn is_pcore_interrupt_set(&self) -> bool
source
fn is_pcore_non_maskable_interrupt_set(&self) -> bool
source
fn is_acore_interrupt_set(&self) -> bool
source
fn is_acore_non_maskable_interrupt_set(&self) -> bool
source