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: bridge_4w_load_cell_config.c
- Revision:
- 56:38b36e947602
- Parent:
- 55:215da406282b
- Child:
- 58:aa9cd5072f66
diff -r 215da406282b -r 38b36e947602 bridge_4w_load_cell_config.c
--- a/bridge_4w_load_cell_config.c Mon Feb 24 07:04:35 2020 +0000
+++ b/bridge_4w_load_cell_config.c Mon Feb 24 08:49:25 2020 +0000
@@ -53,40 +53,34 @@
.externalRefVoltage=0.0,
.AVDDVoltage=3.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!!
- .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,
+ .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
.cycleInterval = 0,
- .RSenseValue = 1000.0,
- },
- .diagnostics = {
- .disableGlobalDiag = true,
- .disableMeasurementDiag = true,
- // .osdFrequency = ADMW1001_OPEN_SENSOR_DIAGNOSTICS_DISABLED,
+ .excitationState = ADMW1001_ADC_EXC_STATE_CYCLE_POWER,
+ .vBiasEnable = false,
+ .RSenseValue = 1000,
+ .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,
},
.channels = {
[ADMW1001_CH_ID_ANLG_1_UNIVERSAL] = {
.enableChannel = true,
.disablePublishing = false,
.compensationChannel = ADMW1001_CH_ID_NONE,
- .lutSelect = ADMW1001_LUT_CUSTOM,
+ .lutSelect = ADMW1001_LUT_DEFAULT,
.measurementUnit = ADMW1001_MEASUREMENT_UNIT_UNSPECIFIED,
+ .extraSettlingTime = 4.49999986449257,
.lowThreshold = 0,
.highThreshold = 45359.2,
- .offsetAdjustment = 0.0,
- .gainAdjustment = 0.0,
- .sensorParameter = 0.0,
.measurementsPerCycle = 1,
- .cycleSkipCount = 0,
- .extraSettlingTime = 5,
- .priority = 0,
+ .offsetAdjustment = 0,
+ .gainAdjustment = 1,
.adcChannelConfig = {
.sensor = ADMW1001_ADC_SENSOR_BRIDGE_4WIRE_1,
- .gain = ADMW1001_ADC_GAIN_32X,
+ .gain = ADMW1001_ADC_GAIN_8X,
.filter = {
.type = ADMW1001_ADC_FILTER_SINC3,
.sf = ADMW1001_SF_8P24HZ,
.chopMode = ADMW1001_CHOP_MD_SW,
- .notch1p2 = true,
+ .notch1p2 = true
},
.reference = ADMW1001_ADC_REFERENCE_VOLTAGE_AVDD,
.bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED,