Enum atmega_hal::adc::ClockDivider
source · #[repr(u8)]pub enum ClockDivider {
Factor2 = 0,
Factor4 = 1,
Factor8 = 2,
Factor16 = 3,
Factor32 = 4,
Factor64 = 5,
Factor128 = 6,
}Expand description
The division factor between the system clock frequency and the input clock to the AD converter.
To get 10-bit precision, clock from 50kHz to 200kHz must be supplied. If you need less precision, you can supply a higher clock.
Variants§
Trait Implementations§
source§impl Clone for ClockDivider
impl Clone for ClockDivider
source§fn clone(&self) -> ClockDivider
fn clone(&self) -> ClockDivider
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ClockDivider
impl Debug for ClockDivider
source§impl Default for ClockDivider
impl Default for ClockDivider
source§fn default() -> ClockDivider
fn default() -> ClockDivider
Returns the “default value” for a type. Read more