summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/driver/bme280.dfa8
-rw-r--r--model/driver/bme680.dfa4
2 files changed, 10 insertions, 2 deletions
diff --git a/model/driver/bme280.dfa b/model/driver/bme280.dfa
index 2dcfb3e..3e9b567 100644
--- a/model/driver/bme280.dfa
+++ b/model/driver/bme280.dfa
@@ -15,6 +15,7 @@ parameters:
- pressure_oversampling
- temperature_oversampling
- iir_filter
+- standby_time
parameter_normalization:
humidity_oversampling:
@@ -104,6 +105,13 @@ transition:
- name: filter
values: ['BME280_FILTER_COEFF_OFF', 'BME280_FILTER_COEFF_2', 'BME280_FILTER_COEFF_4', 'BME280_FILTER_COEFF_8', 'BME280_FILTER_COEFF_16']
parameter: iir_filter
+
+ setStandbyTime:
+ loop: [SLEEP, NORMAL]
+ arguments:
+ - name: standby_time
+ values: ['BME280_STANDBY_TIME_0_5_MS', 'BME280_STANDBY_TIME_62_5_MS', 'BME280_STANDBY_TIME_125_MS', 'BME280_STANDBY_TIME_250_MS', 'BME280_STANDBY_TIME_500_MS', 'BME280_STANDBY_TIME_1000_MS', 'BME280_STANDBY_TIME_10_MS', 'BME280_STANDBY_TIME_20_MS']
+ parameter: standby_time
getSensorData:
src: [NORMAL]
dst: NORMAL
diff --git a/model/driver/bme680.dfa b/model/driver/bme680.dfa
index 9f9d08e..d2e7154 100644
--- a/model/driver/bme680.dfa
+++ b/model/driver/bme680.dfa
@@ -150,7 +150,7 @@ transition:
values: ['BME680_OS_NONE', 'BME680_OS_1X', 'BME680_OS_2X', 'BME680_OS_4X', 'BME680_OS_8X', 'BME680_OS_16X']
parameter: temperature_oversampling
- name: run_gas
- values: ['BME680_DISABLE_GAS_MEAS', 'BME680_ENABLE_GAS_MEAS']
+ values: ['BME680_RUN_GAS_DISABLE', 'BME680_RUN_GAS_ENABLE']
parameter: gas_enabled
- name: heatr_dur
values: [10, 30, 60, 100, 150, 200]
@@ -168,7 +168,7 @@ transition:
src: [SLEEP]
dst: FORCED
codegen:
- delay_after_ms: 500
+ delay_after_ms: 300
getSensorData:
src: [FORCED]
dst: SLEEP