pub trait ExtiPin {
// Required methods
fn make_interrupt_source(&mut self, syscfg: &mut SysCfg);
fn trigger_on_edge(&mut self, exti: &mut EXTI, level: Edge);
fn enable_interrupt(&mut self, exti: &mut EXTI);
fn disable_interrupt(&mut self, exti: &mut EXTI);
fn clear_interrupt_pending_bit(&mut self);
fn check_interrupt(&self) -> bool;
}
Expand description
External Interrupt Pin
Required Methods§
Sourcefn make_interrupt_source(&mut self, syscfg: &mut SysCfg)
fn make_interrupt_source(&mut self, syscfg: &mut SysCfg)
Make corresponding EXTI line sensitive to this pin
Sourcefn trigger_on_edge(&mut self, exti: &mut EXTI, level: Edge)
fn trigger_on_edge(&mut self, exti: &mut EXTI, level: Edge)
Generate interrupt on rising edge, falling edge or both
Sourcefn enable_interrupt(&mut self, exti: &mut EXTI)
fn enable_interrupt(&mut self, exti: &mut EXTI)
Enable external interrupts from this pin.
Sourcefn disable_interrupt(&mut self, exti: &mut EXTI)
fn disable_interrupt(&mut self, exti: &mut EXTI)
Disable external interrupts from this pin
Sourcefn clear_interrupt_pending_bit(&mut self)
fn clear_interrupt_pending_bit(&mut self)
Clear the interrupt pending bit for this pin
Sourcefn check_interrupt(&self) -> bool
fn check_interrupt(&self) -> bool
Reads the interrupt pending bit for this pin