Diaz George / Mbed OS EV-PRO-MW1001_EXTVLTG-Dec18

Files at this revision

API Documentation at this revision

Comitter:
diazdgeorge
Date:
Wed Dec 18 09:11:33 2019 +0000
Parent:
43:10533736e80e
Commit message:
Added support for .excitationState and .groundSwitch on all config files

Changed in this revision

bridge_4w_load_cell_config.c Show annotated file Show diff for this revision Revisions of this file
i2c0_sensirionSHT3X_config.c Show annotated file Show diff for this revision Revisions of this file
multichannel_continuous_config.c Show annotated file Show diff for this revision Revisions of this file
multichannel_singlecycle_config.c Show annotated file Show diff for this revision Revisions of this file
rtd_3w_pt100_config.c Show annotated file Show diff for this revision Revisions of this file
rtd_4w_config.c Show annotated file Show diff for this revision Revisions of this file
thermocouple_typeJ_cjc0_config.c Show annotated file Show diff for this revision Revisions of this file
thermocouple_typeK_cjc0_config.c Show annotated file Show diff for this revision Revisions of this file
thermocouple_typeT_cjc0_config.c Show annotated file Show diff for this revision Revisions of this file
--- a/bridge_4w_load_cell_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/bridge_4w_load_cell_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -52,6 +52,8 @@
         .measurement = {
             .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!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,             
             .cycleInterval = 0,
             .RSenseValue = 1000.0,
         },
--- a/i2c0_sensirionSHT3X_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/i2c0_sensirionSHT3X_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -53,6 +53,8 @@
             .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,
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,          
         },
         .diagnostics = {
             .disableGlobalDiag = true,
--- a/multichannel_continuous_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/multichannel_continuous_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -52,9 +52,13 @@
             .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!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_ALWAYS_ON,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,             
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,              
             .cycleInterval = 0,
             .vBiasEnable = true,
-            .RSenseValue = 1000.0,
+            .RSenseValue = 1000.0,          
         },
         .diagnostics = {
             .disableGlobalDiag = true,
--- a/multichannel_singlecycle_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/multichannel_singlecycle_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -52,6 +52,8 @@
             .externalRefVoltage=0.0,
             .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE,
             .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,             
             .cycleInterval = 0,
             .vBiasEnable = true,
             .RSenseValue = 1000.0,
--- a/rtd_3w_pt100_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/rtd_3w_pt100_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -53,6 +53,8 @@
         .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!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,              
             .cycleInterval = 0,
             .vBiasEnable = false,
         .RSenseValue = 1000.0, 
--- a/rtd_4w_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/rtd_4w_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -53,6 +53,8 @@
             .externalRefVoltage = 0.0,
             .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE,
             .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,             
             .cycleInterval = 0,
             .RSenseValue = 1000.0, 
         },
--- a/thermocouple_typeJ_cjc0_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/thermocouple_typeJ_cjc0_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -55,6 +55,8 @@
             .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!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,             
             .cycleInterval = 0,
             .RSenseValue = 1000.0,  
         },
--- a/thermocouple_typeK_cjc0_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/thermocouple_typeK_cjc0_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -57,8 +57,8 @@
             .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!!
-            .excitationState= ADMW1001_ADC_EXC_STATE_ALWAYS_ON,                
-            .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,               
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,               
             .cycleInterval = 0,
             .vBiasEnable = true,
             .RSenseValue = 1000.0,
--- a/thermocouple_typeT_cjc0_config.c	Wed Dec 18 09:02:47 2019 +0000
+++ b/thermocouple_typeT_cjc0_config.c	Wed Dec 18 09:11:33 2019 +0000
@@ -52,6 +52,8 @@
             .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!!
+            .excitationState= ADMW1001_ADC_EXC_STATE_CYCLE_POWER,                
+            .groundSwitch = ADMW1001_ADC_GND_SW_OPEN,              
             .cycleInterval = 0,
             .RSenseValue = 1000.0, 
         },