Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl AdcChannel for GPIO16<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO17<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO18<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO19<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO20<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO21<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO22<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO23<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO49<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO50<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO51<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO52<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO53<'_>

Available on crate feature unstable only.
Source§

impl AdcChannel for GPIO54<'_>

Available on crate feature unstable only.