Instance

Trait Instance 

Source
pub trait Instance: Sealed {
    // Required methods
    fn listen();
    fn unlisten();
    fn clear_interrupt();
    fn waker() -> &'static AtomicWaker;
}
Expand description

Enable asynchronous access.

Required Methods§

Source

fn listen()

Enable the ADC interrupt

Source

fn unlisten()

Disable the ADC interrupt

Source

fn clear_interrupt()

Clear the ADC interrupt

Source

fn waker() -> &'static AtomicWaker

Obtain the waker for the ADC 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 Instance for ADC1<'_>

Available on crate feature unstable only.