pub struct OversamplingConfig {
pub temp_osrs: Oversampling,
pub hum_osrs: Oversampling,
pub pres_osrs: Oversampling,
}Expand description
Grouped oversampling settings for all three environmental sensors.
Use Oversampling::Skipped to disable specific measurements.
Fields§
§temp_osrs: OversamplingTemperature oversampling.
hum_osrs: OversamplingHumidity oversampling.
pres_osrs: OversamplingPressure oversampling.
Implementations§
Source§impl OversamplingConfig
impl OversamplingConfig
Sourcepub fn is_all_skipped(&self) -> bool
pub fn is_all_skipped(&self) -> bool
Returns true if all measurements are set to Skipped.
This is used internally to determine if a forced measurement command needs to be sent or if the sensor should remain idle.
Auto Trait Implementations§
impl Freeze for OversamplingConfig
impl RefUnwindSafe for OversamplingConfig
impl Send for OversamplingConfig
impl Sync for OversamplingConfig
impl Unpin for OversamplingConfig
impl UnwindSafe for OversamplingConfig
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