pub enum AverageMode {
Off,
Average2,
Average4,
Add2,
Add3,
Add4,
Add16,
}Expand description
Addition/Average method.
For a single reading:
ADC12andADC14can report the single sample or the sum or average of multiple samples.ADC16can report the single sample or the average of multiple samples.
Variants§
Off
Sample the channel once.
Average2
Sample the channel 2x and place the average in the output register.
Average4
Sample the channel 4x and place the average in the output register.
Add2
Place the sum of 2 samples in the output register.
Add3
Place the sum of 3 samples in the output register.
Add4
Place the sum of 4 samples in the output register.
Add16
Place the sum of 16 samples in the output register.
Trait Implementations§
Source§impl Clone for AverageMode
impl Clone for AverageMode
impl Copy for AverageMode
Source§impl Default for AverageMode
impl Default for AverageMode
Source§impl PartialEq for AverageMode
impl PartialEq for AverageMode
impl StructuralPartialEq for AverageMode
Auto Trait Implementations§
impl Forget for AverageMode
impl Freeze for AverageMode
impl Move for AverageMode
impl RefUnwindSafe for AverageMode
impl Send for AverageMode
impl Sync for AverageMode
impl Unpin for AverageMode
impl UnsafeUnpin for AverageMode
impl UnwindSafe for AverageMode
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