Skip to main content

Instance

Trait Instance 

Source
pub trait Instance: Sealed {
    // Required methods
    fn listen();
    fn unlisten();
    fn clear_interrupt();
    fn waker() -> &'static AtomicWaker;
}
Available on crate feature unstable only.
Expand description

Enables asynchronous access.

Required Methods§

Source

fn listen()

Enables the ADC interrupt.

Source

fn unlisten()

Disables the ADC interrupt.

Source

fn clear_interrupt()

Clears the ADC interrupt.

Source

fn waker() -> &'static AtomicWaker

Obtains 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".

Implementors§

Source§

impl Instance for ADC1<'_>