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