pub type ADC = Periph<RegisterBlock, 35>;Expand description
Analog-to-Digital Converter
Aliased Type§
struct ADC { /* private fields */ }Trait Implementations§
Source§impl AdcOps<Attiny> for ADC
impl AdcOps<Attiny> for ADC
Source§type Settings = AdcSettings
type Settings = AdcSettings
Settings type for this ADC.
Source§fn raw_init(&mut self, settings: Self::Settings)
fn raw_init(&mut self, settings: Self::Settings)
Initialize the ADC peripheral with the specified settings. Read more
Source§fn raw_read_adc(&self) -> u16
fn raw_read_adc(&self) -> u16
Read out the ADC data register. Read more
Source§fn raw_is_converting(&self) -> bool
fn raw_is_converting(&self) -> bool
Check whether the ADC is currently converting a signal. Read more
Source§fn raw_start_conversion(&mut self)
fn raw_start_conversion(&mut self)
Start a conversion on the currently selected channel. Read more
Source§fn raw_set_channel(&mut self, channel: Self::Channel)
fn raw_set_channel(&mut self, channel: Self::Channel)
Set the multiplexer to a certain channel. Read more
Source§fn raw_enable_channel(&mut self, channel: Self::Channel)
fn raw_enable_channel(&mut self, channel: Self::Channel)
Set the DIDR (Digital Input Disable) for a certain channel. Read more
Source§fn raw_disable_channel(&mut self, channel: Self::Channel)
fn raw_disable_channel(&mut self, channel: Self::Channel)
Clear the DIDR (Digital Input Disable) for a certain channel. Read more