esp_idf_svc::hal::gpio

Trait ADCPin

Source
pub trait ADCPin: ADCPin + Pin {
    type Adc: Adc;

    // Provided method
    fn adc_channel(&self) -> u32 { ... }
}
Expand description

A marker trait designating a pin which is capable of operating as an ADC pin

Required Associated Types§

Provided Methods§

Source

fn adc_channel(&self) -> u32

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§