Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: i2c0_sensirionSHT3X_config.c
- Revision:
- 25:b278a215cf3b
- Parent:
- 19:09d58952b65d
- Child:
- 32:52445bef314d
--- a/i2c0_sensirionSHT3X_config.c Fri Sep 27 05:23:04 2019 +0000
+++ b/i2c0_sensirionSHT3X_config.c Tue Oct 01 05:11:56 2019 +0000
@@ -51,20 +51,28 @@
},
.measurement = {
.operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
- .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
+ .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
+ .cycleInterval = 0,
+ },
+ .diagnostics = {
+ .disableGlobalDiag = true,
+ .disableMeasurementDiag = true,
+ .osdFrequency = ADMW1001_OPEN_SENSOR_DIAGNOSTICS_DISABLED,
},
.channels = {
[ADMW1001_CH_ID_DIG_I2C_0] = {
.enableChannel = true,
+// .gain = ADMW1001_ADC_GAIN_1X,
.disablePublishing = false,
.compensationChannel = ADMW1001_CH_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 15000,
+ .measurementUnit = ADMW1001_MEASUREMENT_UNIT_UNSPECIFIED,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 99500.0014663674,
.i2cChannelConfig = {
.sensor = ADMW1001_I2C_SENSOR_HUMIDITY_B,
- .deviceAddress = 0x44,
+ .dataFormat.coding = ADMW1001_DIGITAL_SENSOR_DATA_CODING_UNIPOLAR,
},
- },
+ }
},
},
};