Struct bosch_bme680::Configuration
source · pub struct Configuration {
pub temperature_oversampling: Option<Oversampling>,
pub pressure_oversampling: Option<Oversampling>,
pub humidity_oversampling: Option<Oversampling>,
pub filter: Option<IIRFilter>,
pub gas_config: Option<GasConfig>,
}Expand description
Used to set Sensor settings. All options not set by the builder are set to default values.
let configuration = Configuration::builder()
.temperature_oversampling(Oversampling::By2)
.pressure_oversampling(Oversampling::By16)
.humidity_oversampling(Oversampling::By1)
.filter(IIRFilter::Coeff1)
// Gas measurment is enabled by default. To disable it pass None as the GasConfig
.gas_config(None)
.build();
Fields§
§temperature_oversampling: Option<Oversampling>§pressure_oversampling: Option<Oversampling>§humidity_oversampling: Option<Oversampling>§filter: Option<IIRFilter>§gas_config: Option<GasConfig>Implementations§
source§impl Configuration
impl Configuration
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§impl PartialEq for Configuration
impl PartialEq for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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