Type Alias atmega_hal::adc::Adc

source ·
pub type Adc<CLOCK> = Adc<Atmega, ADC, CLOCK>;
Expand description

Check the avr_hal_generic::adc::Adc documentation.

Aliased Type§

struct Adc<CLOCK> { /* private fields */ }

Implementations

source§

impl<H, ADC, CLOCK> Adc<H, ADC, CLOCK>
where ADC: AdcOps<H>, CLOCK: Clock,

source

pub fn new(p: ADC, settings: <ADC as AdcOps<H>>::Settings) -> Adc<H, ADC, CLOCK>

source

pub fn initialize(&mut self, settings: <ADC as AdcOps<H>>::Settings)

source

pub fn read_blocking<PIN>(&mut self, pin: &PIN) -> u16
where PIN: AdcChannel<H, ADC>,

source

pub fn read_nonblocking<PIN>( &mut self, pin: &PIN ) -> Result<u16, Error<Infallible>>
where PIN: AdcChannel<H, ADC>,