pub enum Oversampling {
Skipped,
X1,
X2,
X4,
X8,
X16,
}Expand description
An oversampling setting for the pressure or temperature measurement.
Each step adds one bit of output resolution, stored in the XLSB data register.
Variants§
Skipped
The measurement is skipped and its data registers read SKIPPED_OUTPUT.
X1
A single sample, 16-bit output.
X2
Two samples, 17-bit output.
X4
Four samples, 18-bit output.
X8
Eight samples, 19-bit output.
X16
Sixteen samples, 20-bit output.
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
Source§fn eq(&self, other: &Oversampling) -> bool
fn eq(&self, other: &Oversampling) -> bool
Tests for
self and other values to be equal, and is used by ==.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