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 GPIO1<'_>

Source§

const CHANNEL: u8 = 0u8

Source§

impl AdcChannel for GPIO2<'_>

Source§

const CHANNEL: u8 = 1u8

Source§

impl AdcChannel for GPIO3<'_>

Source§

const CHANNEL: u8 = 2u8

Source§

impl AdcChannel for GPIO4<'_>

Source§

const CHANNEL: u8 = 3u8

Source§

impl AdcChannel for GPIO5<'_>

Source§

const CHANNEL: u8 = 4u8

Source§

impl AdcChannel for GPIO6<'_>

Source§

const CHANNEL: u8 = 5u8

Source§

impl AdcChannel for GPIO7<'_>

Source§

const CHANNEL: u8 = 6u8

Source§

impl AdcChannel for GPIO8<'_>

Source§

const CHANNEL: u8 = 7u8

Source§

impl AdcChannel for GPIO9<'_>

Source§

const CHANNEL: u8 = 8u8

Source§

impl AdcChannel for GPIO10<'_>

Source§

const CHANNEL: u8 = 9u8

Source§

impl AdcChannel for GPIO11<'_>

Source§

const CHANNEL: u8 = 0u8

Source§

impl AdcChannel for GPIO12<'_>

Source§

const CHANNEL: u8 = 1u8

Source§

impl AdcChannel for GPIO13<'_>

Source§

const CHANNEL: u8 = 2u8

Source§

impl AdcChannel for GPIO14<'_>

Source§

const CHANNEL: u8 = 3u8

Source§

impl AdcChannel for GPIO15<'_>

Source§

const CHANNEL: u8 = 4u8

Source§

impl AdcChannel for GPIO16<'_>

Source§

const CHANNEL: u8 = 5u8

Source§

impl AdcChannel for GPIO17<'_>

Source§

const CHANNEL: u8 = 6u8

Source§

impl AdcChannel for GPIO18<'_>

Source§

const CHANNEL: u8 = 7u8

Source§

impl AdcChannel for GPIO19<'_>

Source§

const CHANNEL: u8 = 8u8

Source§

impl AdcChannel for GPIO20<'_>

Source§

const CHANNEL: u8 = 9u8