pub trait Pin {
Show 13 methods
// Required methods
fn number(&self) -> u8;
fn sleep_mode(&mut self, on: bool) -> &mut Self;
fn set_alternate_function(
&mut self,
alternate: AlternateFunction
) -> &mut Self;
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);
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);
// Provided method
fn listen(&mut self, event: Event) { ... }
}