Trait AdcChannel

Source
pub trait AdcChannel {
    const CHANNEL: u8;
}
Available on crate feature unstable only.
Expand description

A helper trait to get the ADC channel of a compatible GPIO pin.

Required Associated Constants§

Source

const CHANNEL: u8

Channel number used by the ADC

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AdcChannel for GpioPin<0>

Source§

const CHANNEL: u8 = 0u8

Source§

impl AdcChannel for GpioPin<1>

Source§

const CHANNEL: u8 = 1u8

Source§

impl AdcChannel for GpioPin<2>

Source§

const CHANNEL: u8 = 2u8

Source§

impl AdcChannel for GpioPin<3>

Source§

const CHANNEL: u8 = 3u8

Source§

impl AdcChannel for GpioPin<4>

Source§

const CHANNEL: u8 = 4u8

Source§

impl AdcChannel for GpioPin<5>

Source§

const CHANNEL: u8 = 5u8

Source§

impl AdcChannel for GpioPin<6>

Source§

const CHANNEL: u8 = 6u8