Enum attiny_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 · source§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
source§impl PartialEq for ClockDivider
impl PartialEq for ClockDivider
source§fn eq(&self, other: &ClockDivider) -> bool
fn eq(&self, other: &ClockDivider) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClockDivider
impl Eq for ClockDivider
impl StructuralPartialEq for ClockDivider
Auto Trait Implementations§
impl Freeze for ClockDivider
impl RefUnwindSafe for ClockDivider
impl Send for ClockDivider
impl Sync for ClockDivider
impl Unpin for ClockDivider
impl UnwindSafe for ClockDivider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more