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: multichannel_continuous_config.c
- Revision:
- 37:6acfbb4405cd
- Parent:
- 34:b60ee1e0af2b
- Child:
- 39:e255f52072fc
diff -r 54e2418e7620 -r 6acfbb4405cd multichannel_continuous_config.c
--- a/multichannel_continuous_config.c Tue Nov 19 12:10:45 2019 +0000
+++ b/multichannel_continuous_config.c Thu Nov 21 09:26:54 2019 +0000
@@ -49,10 +49,12 @@
.powerMode = ADMW1001_POWER_MODE_ACTIVE,
},
.measurement = {
+ .externalRefVoltage=0.0,
.operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
.dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
.cycleInterval = 0,
.vBiasEnable = true,
+ .RSenseValue = 1000.0,
},
.diagnostics = {
.disableGlobalDiag = true,
@@ -65,9 +67,9 @@
.disablePublishing = false,
.compensationChannel = ADMW1001_CH_ID_NONE,
.lutSelect = ADMW1001_LUT_DEFAULT,
- .measurementUnit = ADMW1001_MEASUREMENT_UNIT_FAHRENHEIT,
- .lowThreshold = -58,
- .highThreshold = 482,
+ .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS,
+ .lowThreshold = -50,
+ .highThreshold = 250,
.offsetAdjustment = 0.0,
.gainAdjustment = 0.0,
.sensorParameter = 0.0,
@@ -92,6 +94,7 @@
.groundSwitch = ADMW1001_ADC_GND_SW_OPEN
},
.reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL,
+ .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED,
},
},
[ADMW1001_CH_ID_ANLG_1_DIFFERENTIAL] = {
@@ -99,9 +102,9 @@
.disablePublishing = false,
.compensationChannel = ADMW1001_CH_ID_ANLG_1_UNIVERSAL,
.lutSelect = ADMW1001_LUT_DEFAULT,
- .measurementUnit = ADMW1001_MEASUREMENT_UNIT_FAHRENHEIT,
- .lowThreshold = -58,
- .highThreshold = 482,
+ .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS,
+ .lowThreshold = -50,
+ .highThreshold = 250,
.offsetAdjustment = 0.0,
.gainAdjustment = 0.0,
.sensorParameter = 0.0,
@@ -115,7 +118,7 @@
.gain = ADMW1001_ADC_GAIN_8X,
.current = {
.excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,
- .outputLevel = ADMW1001_ADC_EXC_CURRENT_EXTERNAL,
+ .outputLevel = ADMW1001_ADC_NO_EXTERNAL_EXC_CURRENT,
.diodeRatio = 0,
},
.filter = {
@@ -126,6 +129,7 @@
.groundSwitch = ADMW1001_ADC_GND_SW_OPEN
},
.reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL,
+ .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED,
},
},
[ADMW1001_CH_ID_DIG_I2C_0] = {