AdcChannel

Trait AdcChannel 

Source
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§

Source

fn adc_channel(&self) -> u8

Channel number used by the ADC

Implementors§

Source§

impl AdcChannel for GPIO0<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO1<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO2<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO3<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO4<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO5<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO6<'_>

Available on crate feature unstable only.