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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AdcChannel for GPIO42<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO43<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO44<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO45<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO46<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO47<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO48<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO49<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO50<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO51<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO52<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO53<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO54<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO55<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO56<'_>
Available on crate feature
unstable only.impl AdcChannel for GPIO57<'_>
Available on crate feature
unstable only.