pub enum Averaging {
None,
X8,
X32,
X64,
}Expand description
The number of conversions averaged into each result (configuration bits 6:5, AVG).
Variants§
None
No averaging: each result is one 15.5 ms conversion.
X8
8 averaged conversions (the default).
X32
32 averaged conversions.
X64
64 averaged conversions.
Implementations§
Source§impl Averaging
impl Averaging
Sourcepub fn conversions(self) -> u8
pub fn conversions(self) -> u8
Returns how many conversions are averaged into a result.
Sourcepub fn conversion_micros(self) -> u32
pub fn conversion_micros(self) -> u32
Returns the active conversion time in microseconds, which is also the shortest continuous cycle this averaging allows and the length of a one-shot conversion.
Trait Implementations§
impl Copy for Averaging
impl Eq for Averaging
impl StructuralPartialEq for Averaging
Auto Trait Implementations§
impl Freeze for Averaging
impl RefUnwindSafe for Averaging
impl Send for Averaging
impl Sync for Averaging
impl Unpin for Averaging
impl UnsafeUnpin for Averaging
impl UnwindSafe for Averaging
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