pub enum Adc {
Bits9,
Bits10,
Bits11,
Bits12,
Samples2,
Samples4,
Samples8,
Samples16,
Samples32,
Samples64,
Samples128,
}Expand description
An ADC resolution or averaging setting, for the BADC and SADC fields.
The four-bit code selects either a resolution, when its high bit is clear, or a sample count averaged at 12 bits, when it is set. Each setting has the conversion time the datasheet tabulates.
Variants§
Bits9
9-bit, 84 us.
Bits10
10-bit, 148 us.
Bits11
11-bit, 276 us.
Bits12
12-bit, 532 us, the reset setting.
Samples2
2 samples averaged, 1.06 ms.
Samples4
4 samples averaged, 2.13 ms.
Samples8
8 samples averaged, 4.26 ms.
Samples16
16 samples averaged, 8.51 ms.
Samples32
32 samples averaged, 17.02 ms.
Samples64
64 samples averaged, 34.05 ms.
Samples128
128 samples averaged, 68.10 ms.
Implementations§
Trait Implementations§
impl Copy for Adc
impl Eq for Adc
impl StructuralPartialEq for Adc
Auto Trait Implementations§
impl Freeze for Adc
impl RefUnwindSafe for Adc
impl Send for Adc
impl Sync for Adc
impl Unpin for Adc
impl UnsafeUnpin for Adc
impl UnwindSafe for Adc
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