pub trait AdcChannel {
// Required method
fn adc_channel(&self) -> u8;
}Expand description
A helper trait to get the ADC channel of a compatible GPIO pin.
Required Methods§
Sourcefn adc_channel(&self) -> u8
fn adc_channel(&self) -> u8
Channel number used by the ADC
Implementors§
impl AdcChannel for GPIO1<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO2<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO3<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO4<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO5<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO6<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO7<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO8<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO9<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO10<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO11<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO12<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO13<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO14<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO15<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO16<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO17<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO18<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO19<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO20<'_>
Available on crate feature
unstable only.