[][src]Trait stm32l0xx_hal::exti::ExtiExt

pub trait ExtiExt {
    fn listen(
        &self,
        syscfg: &mut SYSCFG,
        port: Port,
        line: u8,
        edge: TriggerEdge
    );
fn unlisten(&self, line: u8);
fn pend_interrupt(&self, line: u8);
fn clear_irq(&self, line: u8);
fn get_pending_irq(&self) -> u32;
fn wait_for_irq<M>(&mut self, line: u8, power_mode: M)
    where
        M: PowerMode
; }

Required methods

fn listen(&self, syscfg: &mut SYSCFG, port: Port, line: u8, edge: TriggerEdge)

fn unlisten(&self, line: u8)

fn pend_interrupt(&self, line: u8)

fn clear_irq(&self, line: u8)

fn get_pending_irq(&self) -> u32

fn wait_for_irq<M>(&mut self, line: u8, power_mode: M) where
    M: PowerMode

Loading content...

Implementors

impl ExtiExt for EXTI[src]

fn wait_for_irq<M>(&mut self, line: u8, power_mode: M) where
    M: PowerMode
[src]

Enters a low-power mode until an interrupt occurs

Please note that this method will return after any interrupt that can wake up the microcontroller from the given power mode.

Panics

Panics, if line is not between 0 and 15 (inclusive).

Loading content...