Trait rp2040_hal::adc::AdcChannel

source ·
pub trait AdcChannel: Sealed {
    // Required method
    fn channel(&self) -> u8;
}
Expand description

Trait for entities that can be used as ADC channels.

This is implemented by AdcPin and by TempSense. The trait is sealed and can’t be implemented in other crates.

Required Methods§

source

fn channel(&self) -> u8

Get the channel id used to configure the ADC peripheral.

Implementors§