Trait esp_idf_svc::hal::adc::continuous::AdcChannels

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

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

Required Associated Types§

source

type Adc: Adc

source

type Iterator<'a>: Iterator<Item = (u32, u32)> 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 as Peripheral>::P: ADCPin + 'd,

§

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

§

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

source§

impl<'d, const A: u32, 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 Attenuated<A, C>: 'a

source§

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

§

type Adc = A

§

type Iterator<'a> = Empty<(u32, u32)> where EmptyAdcChannels<A>: '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 AdcChannelsArray<C, N>: 'a

source§

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

§

type Adc = <F as AdcChannels>::Adc

§

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