pub struct Config {
pub osrs_config: OversamplingConfig,
pub iir_filter: IIRFilter,
pub gas_profile: Option<GasProfile>,
pub ambient_temp: Celsius,
}Expand description
Complete sensor configuration used for setup.
Fields§
§osrs_config: OversamplingConfigOversampling settings for Temperature, Pressure, and Humidity.
iir_filter: IIRFilterIIR Filter settings to reduce noise in T and P measurements.
gas_profile: Option<GasProfile>Gas heater configuration.
Set to None to disable gas measurement entirely. This saves significant
power (~12-18mA) and time, as the heating phase is skipped.
ambient_temp: CelsiusCurrent ambient temperature estimate (in °C * 100).
This is required for the heater resistance calculation formula to ensure the target temperature (e.g., 300°C) is reached accurately.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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