Skip to main content

Adc

Trait Adc 

Source
pub trait Adc: Send {
    type AdcUnit: AdcUnit;

    // Provided method
    fn unit() -> adc_unit_t { ... }
}
Expand description

A trait for ADC peripherals

Required Associated Types§

Source

type AdcUnit: AdcUnit

The ADC unit this peripheral is associated with.

Provided Methods§

Source

fn unit() -> adc_unit_t

Return the ESP-IDF ADC unit identifier.

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§