AsyncPeripheral

Trait AsyncPeripheral 

Source
pub trait AsyncPeripheral: Wakeable {
    // Required method
    fn on_interrupt();
}
Expand description

Marks driver instances that can be bound to an interrupt to wake async tasks.

Required Methods§

Source

fn on_interrupt()

Signals the driver of an interrupt.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> AsyncPeripheral for I2C<I2C0, P>
where I2C<I2C0, P>: Wakeable,

Source§

impl<P> AsyncPeripheral for I2C<I2C1, P>
where I2C<I2C1, P>: Wakeable,

Source§

impl<PINS> AsyncPeripheral for I2C<I2C0, PINS, Peripheral>
where I2C<I2C0, PINS, Peripheral>: Wakeable,

Source§

impl<PINS> AsyncPeripheral for I2C<I2C1, PINS, Peripheral>
where I2C<I2C1, PINS, Peripheral>: Wakeable,