[][src]Trait kernel::hil::gpio_async::Client

pub trait Client {
    fn fired(&self, pin: usize, identifier: usize);
fn done(&self, value: usize); }

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

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.

fn done(&self, value: usize)

Done is called when a configuration command finishes.

Loading content...


Loading content...