Struct bsec::Bsec[][src]

pub struct Bsec<S: BmeSensor, C: Clock, B: Borrow<C>> { /* fields omitted */ }
Expand description

Handle to encapsulates the Bosch BSEC library and related state.

Implementations

Initialize the Bosch BSEC library and return a handle to interact with it.

  • bme: BmeSensor implementation to communicate with the BME sensor.
  • clock: Clock implementation to obtain timestamps.

Change subscription to virtual sensor outputs.

  • requests: Configuration of virtual sensors and their sample rates to subscribe to.

Returns a vector describing physical sensor and sampling rates required as input to the BSEC algorithm.

Returns the timestamp when the next measurement has to be triggered.

Trigger the next measurement.

Returns the duration until the measurement becomes available. Call Self::process_last_measurement after the duration has passed.

Process the last triggered measurement.

Call this method after the duration returned from a call to Self::start_next_measurement has passed.

Returns a vector of virtual sensor outputs calculated by the Bosch BSEC library.

Get the current raw Bosch BSEC state, e.g. to persist it before shutdown.

Set the raw Bosch BSEC state, e.g. to restore persisted state after shutdown.

Get the current (raw) Bosch BSEC configuration.

Set the (raw) Bosch BSEC configuration.

Your copy of the Bosch BSEC library should contain several different configuration files. See the Bosch BSEC documentation for more information.

See documentation of bsec_reset_output in the Bosch BSEC documentation.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.