Enum bme280_multibus::Oversampling
source · [−]#[repr(u8)]
pub enum Oversampling {
Skip,
X1,
X2,
X4,
X8,
X16,
}Expand description
Oversampling settings for temperature, pressure, and humidity data.
Variants
Skip
Skipped, output set to 0x80000.
X1
Oversampling × 1
X2
Oversampling × 2
X4
Oversampling × 4
X8
Oversampling × 8
X16
Oversampling × 16
Implementations
sourceimpl Oversampling
impl Oversampling
sourcepub const fn reset() -> Oversampling
pub const fn reset() -> Oversampling
Reset value of the osrs fields.
Example
use bme280_multibus::Oversampling;
assert_eq!(Oversampling::reset(), Oversampling::Skip);Trait Implementations
sourceimpl Clone for Oversampling
impl Clone for Oversampling
sourcefn clone(&self) -> Oversampling
fn clone(&self) -> Oversampling
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Oversampling
impl Debug for Oversampling
sourceimpl Default for Oversampling
impl Default for Oversampling
sourceimpl From<Oversampling> for u8
impl From<Oversampling> for u8
sourcefn from(x: Oversampling) -> Self
fn from(x: Oversampling) -> Self
Converts to this type from the input type.
sourceimpl Hash for Oversampling
impl Hash for Oversampling
sourceimpl Ord for Oversampling
impl Ord for Oversampling
sourcefn cmp(&self, other: &Oversampling) -> Ordering
fn cmp(&self, other: &Oversampling) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Oversampling> for Oversampling
impl PartialEq<Oversampling> for Oversampling
sourceimpl PartialOrd<Oversampling> for Oversampling
impl PartialOrd<Oversampling> for Oversampling
sourcefn partial_cmp(&self, other: &Oversampling) -> Option<Ordering>
fn partial_cmp(&self, other: &Oversampling) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Oversampling
impl Eq for Oversampling
impl StructuralEq for Oversampling
impl StructuralPartialEq for Oversampling
Auto Trait Implementations
impl RefUnwindSafe for Oversampling
impl Send for Oversampling
impl Sync for Oversampling
impl Unpin for Oversampling
impl UnwindSafe for Oversampling
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more