pub struct BME680Builder { /* private fields */ }Expand description
Komfortabler Builder zum Erstellen einer Config.
Der Builder stellt sicher, dass alle Parameter logisch zusammenhängen und bietet eine saubere API für die Initialisierung.
Implementations§
Source§impl BME680Builder
impl BME680Builder
pub fn new() -> Self
Sourcepub fn temp_oversampling(self, os: Oversampling) -> Self
pub fn temp_oversampling(self, os: Oversampling) -> Self
Setzt das Oversampling für die Temperatur.
Sourcepub fn hum_oversampling(self, os: Oversampling) -> Self
pub fn hum_oversampling(self, os: Oversampling) -> Self
Setzt das Oversampling für die Luftfeuchtigkeit.
Sourcepub fn pres_oversampling(self, os: Oversampling) -> Self
pub fn pres_oversampling(self, os: Oversampling) -> Self
Setzt das Oversampling für den Luftdruck.
Sourcepub fn iir_filter(self, filter: IIRFilter) -> Self
pub fn iir_filter(self, filter: IIRFilter) -> Self
Setzt den IIR-Filter-Koeffizienten.
Sourcepub fn gas_profile(self, profile: Option<GasProfile>) -> Self
pub fn gas_profile(self, profile: Option<GasProfile>) -> Self
Aktiviert oder deaktiviert das Gasprofil.
Sourcepub fn ambient_temp(self, temp: Celsius) -> Self
pub fn ambient_temp(self, temp: Celsius) -> Self
Setzt die initial geschätzte Umgebungstemperatur für die Heizungsberechnung.
Trait Implementations§
Source§impl Default for BME680Builder
impl Default for BME680Builder
Source§fn default() -> BME680Builder
fn default() -> BME680Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BME680Builder
impl RefUnwindSafe for BME680Builder
impl Send for BME680Builder
impl Sync for BME680Builder
impl Unpin for BME680Builder
impl UnwindSafe for BME680Builder
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