Skip to main content

AdcChannel

Trait AdcChannel 

Source
pub trait AdcChannel: 'static {
    type AdcUnit: AdcUnit;

    // Required method
    fn channel() -> u32;

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

A trait designating the ADC channel

An associated type provided by ADC pins

Required Associated Types§

Source

type AdcUnit: AdcUnit

The ADC unit this channel is associated with.

Required Methods§

Source

fn channel() -> u32

Return the ESP-IDF ADC channel identifier.

Provided Methods§

Source

fn unit() -> u32

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

Implementors§

Source§

impl<U> AdcChannel for ADCCH0<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH1<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH2<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH3<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH4<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH5<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH6<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH7<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH8<U>
where U: AdcUnit,

Source§

impl<U> AdcChannel for ADCCH9<U>
where U: AdcUnit,