pub struct Adc { /* fields omitted */ }
Expand description
Analog to Digital converter interface
Init a new Adc
Sets all configurable parameters to defaults, enables the HSI14 clock
for the ADC if it is not already enabled and performs a boot time
calibration. As such this method may take an appreciable time to run.
Saves a copy of the current ADC config
Resets the ADC config to default, returning the existing config as
a stored config.
Set the Adc result alignment
Options can be found in AdcAlign.
Returns the largest possible sample value for the current settings
Read the value of a channel and converts the result to milli-volts
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Get the specific ID that identifies this channel, for example 0_u8
for the first ADC
channel, if Self::ID is u8. Read more
Error type returned by ADC methods
Request that the ADC begin a conversion on the specified pin Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.