Trait kernel::hil::gpio_async::Client

source ·
pub trait Client {
    // Required methods
    fn fired(&self, pin: usize, identifier: usize);
    fn done(&self, value: usize);
}
Expand description

The gpio_async Client interface is used to both receive callbacks when a configuration command finishes and to handle interrupt events from pins with interrupts enabled.

Required Methods§

source

fn fired(&self, pin: usize, identifier: usize)

Called when an interrupt occurs. The pin that interrupted is included, and the identifier that was passed with the call to enable_interrupt is also returned.

source

fn done(&self, value: usize)

Done is called when a configuration command finishes.

Implementors§