#[repr(u8)]pub enum Oversampling {
Skipped = 0,
X1 = 1,
X2 = 2,
X4 = 3,
X8 = 4,
X16 = 5,
}Expand description
Einstellungen für das Oversampling von Temperatur, Druck und Feuchtigkeit.
Höhere Oversampling-Raten reduzieren das Rauschen durch Mittelwertbildung in der Hardware, verlängern jedoch die Messdauer und erhöhen den Stromverbrauch pro Messzyklus.
Variants§
Skipped = 0
Keine Messung. Deaktiviert den entsprechenden Sensorkanal vollständig.
X1 = 1
1-faches Oversampling (Standard).
X2 = 2
2-faches Oversampling.
X4 = 3
4-faches Oversampling.
X8 = 4
8-faches Oversampling.
X16 = 5
16-faches Oversampling. Maximale Präzision, längste Dauer.
Implementations§
Trait Implementations§
Source§impl Clone for Oversampling
impl Clone for Oversampling
Source§fn clone(&self) -> Oversampling
fn clone(&self) -> Oversampling
Returns a duplicate 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 Oversampling
impl Debug for Oversampling
Source§impl Default for Oversampling
impl Default for Oversampling
Source§fn default() -> Oversampling
fn default() -> Oversampling
Returns the “default value” for a type. Read more
Source§impl PartialEq for Oversampling
impl PartialEq for Oversampling
impl Copy for Oversampling
impl StructuralPartialEq for Oversampling
Auto Trait Implementations§
impl Freeze for Oversampling
impl RefUnwindSafe for Oversampling
impl Send for Oversampling
impl Sync for Oversampling
impl Unpin for Oversampling
impl UnwindSafe for Oversampling
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