Trait esp_idf_hal::adc::continuous::AdcChannels

source ·
pub trait AdcChannels {
    type Adc: Adc;
    type Iterator<'a>: Iterator<Item = (adc_channel_t, adc_atten_t)>
       where Self: 'a;

    // Required method
    fn iter(&self) -> Self::Iterator<'_>;
}

Required Associated Types§

source

type Adc: Adc

source

type Iterator<'a>: Iterator<Item = (adc_channel_t, adc_atten_t)> where Self: 'a

Required Methods§

source

fn iter(&self) -> Self::Iterator<'_>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'d, P> AdcChannels for P
where P: Peripheral, P::P: ADCPin + 'd,

§

type Adc = <<P as Peripheral>::P as ADCPin>::Adc

§

type Iterator<'a> = Once<(u32, u32)> where Self: 'a

source§

impl<'d, const A: adc_atten_t, C> AdcChannels for Attenuated<A, C>
where C: AdcChannels + 'd,

§

type Adc = <C as AdcChannels>::Adc

§

type Iterator<'a> = Map<<C as AdcChannels>::Iterator<'a>, fn(_: (u32, u32)) -> (u32, u32)> where Self: 'a

source§

impl<A> AdcChannels for EmptyAdcChannels<A>
where A: Adc,

§

type Adc = A

§

type Iterator<'a> = Empty<(u32, u32)> where Self: 'a

source§

impl<C, const N: usize> AdcChannels for AdcChannelsArray<C, N>
where C: AdcChannels,

§

type Adc = <C as AdcChannels>::Adc

§

type Iterator<'a> = FlatMap<Iter<'a, C>, <C as AdcChannels>::Iterator<'a>, fn(_: &'a C) -> <C as AdcChannels>::Iterator<'a>> where Self: 'a

source§

impl<F, S> AdcChannels for ChainedAdcChannels<F, S>
where F: AdcChannels, S: AdcChannels<Adc = F::Adc>,

§

type Adc = <F as AdcChannels>::Adc

§

type Iterator<'a> = Chain<<F as AdcChannels>::Iterator<'a>, <S as AdcChannels>::Iterator<'a>> where Self: 'a