AdiSense1000_V21 MBED API

Fork of AdiSense1000 by PoC_Team

Revision:
25:c5bff546082f
Parent:
23:2adb6216b001
Child:
27:567abf893938
Child:
28:4eb837cd71df
--- a/multichannel_continuous_config.c	Mon Jan 22 17:40:50 2018 +0000
+++ b/multichannel_continuous_config.c	Wed Mar 07 00:58:50 2018 +0000
@@ -43,11 +43,10 @@
 
 ADI_SENSE_CONFIG multichannel_continuous_config = {
     .versionId = { .major = 1, .minor = 4 },
-    .productId = ADI_SENSE_PRODUCT_ID_1000,
+    .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
     .adisense1000 = {
         .power = {
             .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
-            .supplyVoltage = 3.3,
         },
         .measurement = {
             .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
@@ -66,7 +65,6 @@
                     .gain = ADI_SENSE_1000_ADC_GAIN_8X,
                     .current = {
                         .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
-                        .swapOption = ADI_SENSE_1000_ADC_EXC_CURRENT_SWAP_NONE,
                     },
                     .filter = {
                         .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
@@ -89,7 +87,6 @@
                     .gain = ADI_SENSE_1000_ADC_GAIN_8X,
                     .current = {
                         .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
-                        .swapOption = ADI_SENSE_1000_ADC_EXC_CURRENT_SWAP_NONE,
                     },
                     .filter = {
                         .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
@@ -112,7 +109,6 @@
                     .gain = ADI_SENSE_1000_ADC_GAIN_8X,
                     .current = {
                         .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
-                        .swapOption = ADI_SENSE_1000_ADC_EXC_CURRENT_SWAP_NONE,
                     },
                     .filter = {
                         .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
@@ -224,7 +220,7 @@
                 .disablePublishing = false,
                 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
                 .measurementsPerCycle = 10,
-                .extraSettlingTime = 0,
+                .extraSettlingTime = 36500,
                 .i2cChannelConfig = {
                     .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_HONEYWELL_HUMIDICON,
                     .deviceAddress = 0x27,