Struct atmega_hal::pac::ADC
source · [−]pub struct ADC { /* private fields */ }
Expand description
Analog-to-Digital Converter
Implementations
sourceimpl ADC
impl ADC
sourcepub const PTR: *const RegisterBlock = {0x78 as *const avr_device::atmega328p::adc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x78 as *const avr_device::atmega328p::adc::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl AdcChannel<Atmega, ADC> for Temperature
impl AdcChannel<Atmega, ADC> for Temperature
sourceimpl AdcOps<Atmega> for ADC
impl AdcOps<Atmega> for ADC
type Settings = AdcSettings
type Settings = AdcSettings
Settings type for this ADC.
sourcefn 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
sourcefn raw_read_adc(&self) -> u16
fn raw_read_adc(&self) -> u16
Read out the ADC data register. Read more
sourcefn raw_is_converting(&self) -> bool
fn raw_is_converting(&self) -> bool
Check whether the ADC is currently converting a signal. Read more
sourcefn raw_start_conversion(&mut self)
fn raw_start_conversion(&mut self)
Start a conversion on the currently selected channel. Read more
sourcefn 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
sourcefn 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
impl Send for ADC
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more