diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-25 16:04:35 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-25 16:04:35 +0200 |
commit | 0f882940d29febef2f7d17be4c8ef7d7b9ec34fd (patch) | |
tree | 9819838066d59d707035cb7dcf72529706ec2b1e /model | |
parent | e6a319dcd2084c73799e712b7d2635cb6bf08913 (diff) |
BME680: Add .configure helper function
Diffstat (limited to 'model')
-rw-r--r-- | model/driver/bme680.dfa | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/model/driver/bme680.dfa b/model/driver/bme680.dfa index 72061ce..69e1c63 100644 --- a/model/driver/bme680.dfa +++ b/model/driver/bme680.dfa @@ -136,6 +136,28 @@ transition: - name: degc values: [100, 150, 200, 250, 300] parameter: heater_temperature_degc + configure: + src: [SLEEP, SLEEP_PENDING_ATTR] + dst: SLEEP_PENDING_ATTR + arguments: + - name: os_hum + values: ['BME680_OS_NONE', 'BME680_OS_1X', 'BME680_OS_2X', 'BME680_OS_4X', 'BME680_OS_8X', 'BME680_OS_16X'] + parameter: humidity_oversampling + - name: os_pres + values: ['BME680_OS_NONE', 'BME680_OS_1X', 'BME680_OS_2X', 'BME680_OS_4X', 'BME680_OS_8X', 'BME680_OS_16X'] + parameter: pressure_oversampling + - name: os_temp + 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'] + parameter: gas_enabled + - name: heatr_dur + values: [10, 30, 60, 100, 150, 200] + parameter: heater_duration_ms + - name: heatr_temp + values: [100, 150, 200, 250, 300] + parameter: heater_temperature_degc setSensorSettings: src: [SLEEP_PENDING_ATTR] dst: SLEEP @@ -145,6 +167,8 @@ transition: setSensorMode: src: [SLEEP] dst: FORCED + codegen: + delay_after_ms: 500 getSensorData: src: [FORCED] dst: SLEEP |