pub enum Oversampling {
Skipped,
X1,
X2,
X4,
X8,
X16,
}Expand description
An oversampling setting for one of the three measurements.
Each doubling of the sample count adds one bit of resolution to temperature and pressure, up to the 20 bits the data registers hold.
Variants§
Skipped
The measurement is skipped; its data registers read SKIPPED_OUTPUT or
SKIPPED_HUMIDITY.
X1
A single sample.
X2
Two samples.
X4
Four samples.
X8
Eight samples.
X16
Sixteen samples.
Implementations§
Source§impl Oversampling
impl Oversampling
Sourcepub fn from_code(code: u8) -> Oversampling
pub fn from_code(code: u8) -> Oversampling
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Oversampling
Source§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
impl Eq for Oversampling
Source§impl PartialEq for Oversampling
impl PartialEq 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 UnsafeUnpin 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