Struct bsec::Bsec [−][src]
Expand description
Handle to encapsulates the Bosch BSEC library and related state.
Implementations
pub fn update_subscription(
&mut self,
requests: &[SubscriptionRequest]
) -> Result<Vec<RequiredInput>, Error<S::Error>>
pub fn update_subscription(
&mut self,
requests: &[SubscriptionRequest]
) -> Result<Vec<RequiredInput>, Error<S::Error>>
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.