Skip to main content

Channel

Trait Channel 

Source
pub trait Channel {
    const CHANNEL: u8;
}
Expand description

Binds a pin to the ADC input number it is wired to.

Implemented only for pins in Analog mode, so a pin that hasn’t been through into_analog can’t be measured.

Required Associated Constants§

Source

const CHANNEL: u8

The ADC input number for this pin.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Channel for Pin<'A', 0, Analog>

Source§

const CHANNEL: u8 = 0

Source§

impl Channel for Pin<'A', 1, Analog>

Source§

const CHANNEL: u8 = 1

Source§

impl Channel for Pin<'A', 2, Analog>

Source§

const CHANNEL: u8 = 2

Source§

impl Channel for Pin<'A', 3, Analog>

Source§

const CHANNEL: u8 = 3

Source§

impl Channel for Pin<'A', 4, Analog>

Source§

const CHANNEL: u8 = 4

Source§

impl Channel for Pin<'A', 5, Analog>

Source§

const CHANNEL: u8 = 5

Source§

impl Channel for Pin<'A', 6, Analog>

Source§

const CHANNEL: u8 = 6

Source§

impl Channel for Pin<'A', 7, Analog>

Source§

const CHANNEL: u8 = 7

Source§

impl Channel for Pin<'B', 0, Analog>

Available on pads_ge_24 only.
Source§

const CHANNEL: u8 = 8

Source§

impl Channel for Pin<'B', 1, Analog>

Source§

const CHANNEL: u8 = 9