diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-24 17:15:22 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-24 17:15:22 +0200 |
commit | de61d1f4eebd0422cfd688474cb5c239b8e72a8d (patch) | |
tree | f947a9fe8b36e8eadc003ee9e4af958c67ead21e /include | |
parent | ef161249e308e933e10a0d9e07586f5ace146017 (diff) |
bme680: add accessors for benchmark generation
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/bme680.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/driver/bme680.h b/include/driver/bme680.h index 4bc2606..eaf7607 100644 --- a/include/driver/bme680.h +++ b/include/driver/bme680.h @@ -450,6 +450,34 @@ class BME680 { * @retval zero -> Success / +ve value -> Warning / -ve value -> Error.
*/
int8_t getSensorSettings(uint16_t desired_settings);
+
+ inline void setHumidityOversampling(uint8_t os) {
+ tph_sett.os_hum = os;
+ }
+
+ inline void setPressureOversampling(uint8_t os) {
+ tph_sett.os_pres = os;
+ }
+
+ inline void setTemperatureOversampling(uint8_t os) {
+ tph_sett.os_temp = os;
+ }
+
+ inline void setRunGas(uint8_t enabled) {
+ gas_sett.run_gas = enabled;
+ }
+
+ inline void setHeaterDuration(uint16_t ms) {
+ gas_sett.heatr_dur = ms;
+ }
+
+ inline void setHeaterTemp(uint16_t degc) {
+ gas_sett.heatr_temp = degc;
+ }
+
+ inline void setPowerMode(uint8_t mode) {
+ power_mode = mode;
+ }
};
extern BME680 bme680;
|