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

Source§

const CHANNEL: u8 = 1u8

Source§

impl AdcChannel for GPIO2<'_>

Source§

const CHANNEL: u8 = 2u8

Source§

impl AdcChannel for GPIO4<'_>

Source§

const CHANNEL: u8 = 0u8

Source§

impl AdcChannel for GPIO12<'_>

Source§

const CHANNEL: u8 = 5u8

Source§

impl AdcChannel for GPIO13<'_>

Source§

const CHANNEL: u8 = 4u8

Source§

impl AdcChannel for GPIO14<'_>

Source§

const CHANNEL: u8 = 6u8

Source§

impl AdcChannel for GPIO15<'_>

Source§

const CHANNEL: u8 = 3u8

Source§

impl AdcChannel for GPIO25<'_>

Source§

const CHANNEL: u8 = 8u8

Source§

impl AdcChannel for GPIO26<'_>

Source§

const CHANNEL: u8 = 9u8

Source§

impl AdcChannel for GPIO27<'_>

Source§

const CHANNEL: u8 = 7u8

Source§

impl AdcChannel for GPIO32<'_>

Source§

const CHANNEL: u8 = 5u8

Source§

impl AdcChannel for GPIO33<'_>

Source§

const CHANNEL: u8 = 4u8

Source§

impl AdcChannel for GPIO34<'_>

Source§

const CHANNEL: u8 = 6u8

Source§

impl AdcChannel for GPIO35<'_>

Source§

const CHANNEL: u8 = 7u8

Source§

impl AdcChannel for GPIO36<'_>

Source§

const CHANNEL: u8 = 0u8

Source§

impl AdcChannel for GPIO37<'_>

Source§

const CHANNEL: u8 = 1u8

Source§

impl AdcChannel for GPIO38<'_>

Source§

const CHANNEL: u8 = 2u8

Source§

impl AdcChannel for GPIO39<'_>

Source§

const CHANNEL: u8 = 3u8