pub trait AdcChannel<H, ADC>where
ADC: AdcOps<H>,{
// Required method
fn channel(&self) -> <ADC as AdcOps<H>>::Channel;
}Available on crate feature
mcu-atmega only.Expand description
Trait marking a type as an ADC channel for a certain ADC.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Gnd
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC0>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC1>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC2>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC3>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC4>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Pin<Analog, PC5>
impl AdcChannel<Atmega, Periph<RegisterBlock, 120>> for Temperature
Available on crate features
atmega328p or atmega328pb or atmega48p only.