Trait Instance

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

Enable asynchronous access.

Required Methods§

Source

fn enable_interrupt()

Enable the ADC interrupt

Source

fn disable_interrupt()

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<'_>