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.
Fork of AdiSense1000 by
Revision 35:cc01f0766fc2, committed 2018-08-17
- Comitter:
- Ross_o_halloran
- Date:
- Fri Aug 17 15:46:16 2018 +0000
- Parent:
- 28:4eb837cd71df
- Commit message:
- Sean
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/babyseat_conf.c Fri Aug 17 15:46:16 2018 +0000
@@ -0,0 +1,177 @@
+/*
+Copyright 2017 (c) Analog Devices, Inc.
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ - Neither the name of Analog Devices, Inc. nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ - The use of this software may or may not infringe the patent rights
+ of one or more patent holders. This license does not release you
+ from the requirement that you obtain separate licenses from these
+ patent holders to use this software.
+ - Use of the software either in source or binary form, must be run
+ on or directly connected to an Analog Devices Inc. component.
+
+THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *****************************************************************************/
+
+/*!
+ ******************************************************************************
+ * @file:
+ * @brief:
+ *-----------------------------------------------------------------------------
+ */
+#include "inc/adi_sense_config_types.h"
+
+ADI_SENSE_CONFIG babyseat_conf = {
+ .versionId = { .major = 1, .minor = 4 },
+ .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
+ .adisense1000 = {
+ .power = {
+ .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
+ },
+ .measurement = {
+ .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
+ .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
+ .cycleInterval = 1000000,
+ },
+ .channels = {
+ [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
+ .enableChannel = true,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 25000,
+ .adcChannelConfig = {
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_1_DEF_L2,
+ .gain = ADI_SENSE_1000_ADC_GAIN_32X,
+ .filter = {
+ .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
+ },
+ .reference = {
+ .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
+ .disableBuffer = false,
+ },
+ .enableVbias = false,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
+ .enableChannel = false,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 25000,
+ .adcChannelConfig = {
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2,
+ .gain = ADI_SENSE_1000_ADC_GAIN_1X,
+ .filter = {
+ .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
+ },
+ .reference = {
+ .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
+ .disableBuffer = false,
+ },
+ .enableVbias = false,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
+ .enableChannel = false,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 25000,
+ .adcChannelConfig = {
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_3_DEF_L2,
+ .gain = ADI_SENSE_1000_ADC_GAIN_32X,
+ .filter = {
+ .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
+ },
+ .reference = {
+ .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
+ .disableBuffer = false,
+ },
+ .enableVbias = false,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
+ .enableChannel = false,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 25000,
+ .adcChannelConfig = {
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_4_DEF_L2,
+ .gain = ADI_SENSE_1000_ADC_GAIN_1X,
+ .filter = {
+ .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
+ },
+ .reference = {
+ .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
+ .disableBuffer = false,
+ },
+ .enableVbias = false,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
+ .enableChannel = false,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 15000,
+ .i2cChannelConfig = {
+ .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_B_DEF_L1,
+ .deviceAddress = 0x44,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
+ /* Accelerometer X-Axis (and common settings for physical channel) */
+ .enableChannel = false,
+ .disablePublishing = false,
+ .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
+ .measurementsPerCycle = 1,
+ .extraSettlingTime = 10000,
+ /* Optional threshold limits applied to the processed measurement results */
+ .lowThreshold = -6.0,
+ .highThreshold = 6.0,
+ .spiChannelConfig = {
+ .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_A_DEF_L1,
+ },
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SPI_1] = {
+ /* Accelerometer Y-Axis (virtual channel) */
+ .enableChannel = false,
+ /* Optional threshold limits applied to the processed measurement results */
+ .lowThreshold = -6.0,
+ .highThreshold = 6.0,
+ },
+ [ADI_SENSE_1000_CHANNEL_ID_SPI_2] = {
+ /* Accelerometer Z-Axis (virtual channel) */
+ .enableChannel = false,
+ /* Optional adjustment applied to the processed measurement result */
+ .offsetAdjustment = -0.2,
+ /* Optional threshold limits applied to the processed measurement results */
+ .lowThreshold = -1.5,
+ .highThreshold = 1.5,
+ },
+ },
+ },
+ };
--- a/cjc0_thermistor-10k-ntc_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG cjc0_thermistor_10k_ntc_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMISTOR_A_10K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_1X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_2,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/current_honeywellPressure_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- *
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG current_honeywellPressure_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_CURRENT_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/i2c0_honeywellHumidicon_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG i2c0_honeywellHumidicon_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 36500,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_A_DEF_L1,
- .deviceAddress = 0x27,
- },
- },
- },
- },
-};
--- a/i2c0_onsemiNOA1305_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-/*
-CONFIDENTIAL AND PROPRIETARY INFORMATION
-
-Copyright (c) 2018 Emutex Ltd. All rights reserved.
-This software and documentation contain confidential and
-proprietary information that is the property of
-Emutex Ltd. The software and documentation are
-furnished under a license agreement and may be used
-or copied only in accordance with the terms of the license
-agreement. No part of the software and documentation
-may be reproduced, transmitted, or translated, in any
-form or by any means, electronic, mechanical, manual,
-optical, or otherwise, without prior written permission
-of Emutex Ltd., or as expressly provided by the license agreement.
-Reverse engineering is prohibited, and reproduction,
-disclosure or use without specific written authorization
-of Emutex Ltd. is strictly forbidden.
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG i2c0_onsemiNOA1305_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 50000,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_AMBIENTLIGHT_A_DEF_L1,
- .deviceAddress = 0x39,
- },
- },
- },
- },
-};
--- a/i2c0_sensirionSHT3X_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG i2c0_sensirionSHT3X_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 15000,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_B_DEF_L1,
- .deviceAddress = 0x44,
- },
- },
- },
- },
-};
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/load_cell_lut_data.c Fri Aug 17 15:46:16 2018 +0000
@@ -0,0 +1,175 @@
+#include "adi_sense_1000_lut_data.h"
+#include "adi_sense_1000_sensor_types.h"
+
+/*
+ * The following example illustrates how individual tables can be declared, and
+ * later assembled into a complete LUT data structure using
+ * adi_sense_1000_AssembleLutData(). That LUT data structure can then be
+ * written to the ADI Sense 1000 device using adi_sense_1000_SetLutData().
+ */
+
+
+/*
+ * The following table provide linearisation data for a 4-wire bridge sensor
+ * identified with the ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_1_DEF_L2
+ * sensor type. The Look-Up Table provided maps a range of input (X)
+ * values to a corresponding range of output (Y) values. In this example,
+ * the bridge sensor input in millivolts is effectively translated to volts.
+ */
+ ADI_SENSE_1000_LUT_DESCRIPTOR lc0 = {
+ .geometry = ADI_SENSE_1000_LUT_GEOMETRY_NES_1D,
+ .equation = ADI_SENSE_1000_LUT_EQUATION_LUT,
+ .dir = ADI_SENSE_1000_LUT_TC_DIRECTION_FORWARD,
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_1_DEF_L2,
+ .dataType = ADI_SENSE_1000_LUT_DATA_TYPE_FLOAT32,
+ .length = 0, /* Filled by adi_sense_1000_AssembleLutData() */
+ .crc16 = 0 /* Filled by adi_sense_1000_AssembleLutData() */
+};
+ADI_SENSE_1000_LUT_1D_NES lc0Data = {
+ .nElements = 9,
+ .lut = {
+ -3300.0f, /* x(min) */
+ 3.852f,
+ 5.42f,
+ 6.71f,
+ 9.61f,
+ 12.67f,
+ 16.29f,
+ 19.6f,
+ +3300.0f, /* x(max) */
+ -0.0001f, /* y(min) */
+ 0.00f,
+ 2.5f,
+ 5.00f,
+ 7.5f,
+ 10.00f,
+ 12.5,
+ 15.00f,
+ +50.0f, /* y(max) */
+ },
+};
+
+
+ADI_SENSE_1000_LUT_DESCRIPTOR lc1 = {
+ .geometry = ADI_SENSE_1000_LUT_GEOMETRY_NES_1D,
+ .equation = ADI_SENSE_1000_LUT_EQUATION_LUT,
+ .dir = ADI_SENSE_1000_LUT_TC_DIRECTION_FORWARD,
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2,
+ .dataType = ADI_SENSE_1000_LUT_DATA_TYPE_FLOAT32,
+ .length = 0, /* Filled by adi_sense_1000_AssembleLutData() */
+ .crc16 = 0 /* Filled by adi_sense_1000_AssembleLutData() */
+};
+ADI_SENSE_1000_LUT_1D_NES lc1Data = {
+ .nElements = 9,
+ .lut = {
+ -3300.0f, /* x(min) */
+ -4.45f,
+ -2.42f,
+ 1.08f,
+ 7.52f,
+ 12.15f,
+ 18.33f,
+ 23.93f,
+ +3300.0f, /* x(max) */
+ -0.0001f, /* y(min) */
+ 0.00f,
+ 2.5f,
+ 5.00f,
+ 7.5f,
+ 10.00f,
+ 12.5,
+ 15.00f,
+ +50.0f, /* y(max) */
+ },
+};
+
+ADI_SENSE_1000_LUT_DESCRIPTOR lc2 = {
+ .geometry = ADI_SENSE_1000_LUT_GEOMETRY_NES_1D,
+ .equation = ADI_SENSE_1000_LUT_EQUATION_LUT,
+ .dir = ADI_SENSE_1000_LUT_TC_DIRECTION_FORWARD,
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_3_DEF_L2,
+ .dataType = ADI_SENSE_1000_LUT_DATA_TYPE_FLOAT32,
+ .length = 0, /* Filled by adi_sense_1000_AssembleLutData() */
+ .crc16 = 0 /* Filled by adi_sense_1000_AssembleLutData() */
+};
+ADI_SENSE_1000_LUT_1D_NES lc2Data = {
+ .nElements = 9,
+ .lut = {
+ -3300.0f, /* x(min) */
+ 0.097f,
+ 2.03f,
+ 4.45f,
+ 6.95f,
+ 9.49f,
+ 14.02f,
+ 18.73f,
+ +3300.0f, /* x(max) */
+ -0.000001f, /* y(min) */
+ 0.00f,
+ 2.51f,
+ 5.00f,
+ 7.5f,
+ 10.0f,
+ 12.5f,
+ 15.0f,
+ +50.0f,
+ },
+};
+
+ADI_SENSE_1000_LUT_DESCRIPTOR lc3 = {
+ .geometry = ADI_SENSE_1000_LUT_GEOMETRY_NES_1D,
+ .equation = ADI_SENSE_1000_LUT_EQUATION_LUT,
+ .dir = ADI_SENSE_1000_LUT_TC_DIRECTION_FORWARD,
+ .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_4_DEF_L2,
+ .dataType = ADI_SENSE_1000_LUT_DATA_TYPE_FLOAT32,
+ .length = 0, /* Filled by adi_sense_1000_AssembleLutData() */
+ .crc16 = 0 /* Filled by adi_sense_1000_AssembleLutData() */
+};
+ADI_SENSE_1000_LUT_1D_NES lc3Data = {
+ .nElements = 9,
+ .lut = {
+ -3300.0f, /* x(min) */
+ 3.129f,
+ 5.75f,
+ 9.43f,
+ 13.31f,
+ 17.18f,
+ 21.04f,
+ 24.77f,
+ +3300.0f, /* x(max) */
+ -0.000001f, /* y(min) */
+ 0.00f,
+ 2.641f,
+ 5.07f,
+ 7.5f,
+ 10.0f,
+ 12.5f,
+ 15.0f,
+ +50.0f,
+
+ },
+};
+
+
+/*
+ * The following variables can be passed as parameters to
+ * adi_sense_1000_AssembleLutData()
+ */
+ADI_SENSE_1000_LUT_DESCRIPTOR *sample_lut_desc_list[] = {
+ &lc0,
+ /* &lc1,
+ &lc2,
+ &lc3, */
+
+};
+
+ADI_SENSE_1000_LUT_TABLE_DATA *sample_lut_data_list[] = {
+ (ADI_SENSE_1000_LUT_TABLE_DATA *) &lc0Data,
+ /* (ADI_SENSE_1000_LUT_TABLE_DATA *) &lc1Data,
+ (ADI_SENSE_1000_LUT_TABLE_DATA *) &lc2Data,
+ (ADI_SENSE_1000_LUT_TABLE_DATA *) &lc3Data, */
+};
+
+unsigned sample_lut_num_tables =
+ (sizeof(sample_lut_desc_list) / sizeof(sample_lut_desc_list[0]));
+
--- a/main.cpp Thu May 17 10:34:45 2018 +0100
+++ b/main.cpp Fri Aug 17 15:46:16 2018 +0000
@@ -62,32 +62,14 @@
#include "inc/adi_sense_log.h"
#include "common/utils.h"
-extern ADI_SENSE_CONFIG cjc0_thermistor_10k_ntc_config;
-extern ADI_SENSE_CONFIG sensor0_rtd_2w_pt100_config;
-extern ADI_SENSE_CONFIG sensor0_microphone_config;
-extern ADI_SENSE_CONFIG sensor0_diode_2c_config;
-extern ADI_SENSE_CONFIG sensor1_typeK_cjc1_config;
-extern ADI_SENSE_CONFIG sensor1_rtd_3w_pt100_config;
-extern ADI_SENSE_CONFIG sensor1_diode_3c_config;
-extern ADI_SENSE_CONFIG sensor2_typeT_cjc0_config;
-extern ADI_SENSE_CONFIG sensor2_bridge_6w_pressure_config;
-extern ADI_SENSE_CONFIG sensor3_typeJ_cjc0_config;
-extern ADI_SENSE_CONFIG sensor3_thermistor_10k_ntc_config;
-extern ADI_SENSE_CONFIG voltage_honeywellPressure_config;
-extern ADI_SENSE_CONFIG current_honeywellPressure_config;
-extern ADI_SENSE_CONFIG i2c0_honeywellHumidicon_config;
-extern ADI_SENSE_CONFIG i2c0_sensirionSHT3X_config;
-extern ADI_SENSE_CONFIG i2c0_onsemiNOA1305_config;
-extern ADI_SENSE_CONFIG spi0_honeywellTrustability_config;
-extern ADI_SENSE_CONFIG spi0_adiAdxl362_config;
-extern ADI_SENSE_CONFIG spi0_adiAdxl355_config;
-extern ADI_SENSE_CONFIG uart_cozirCO2_config;
-extern ADI_SENSE_CONFIG multichannel_continuous_config;
-extern ADI_SENSE_CONFIG multichannel_multicycle_config;
-extern ADI_SENSE_CONFIG multichannel_singlecycle_config;
+extern ADI_SENSE_CONFIG babyseat_conf;
+extern ADI_SENSE_1000_LUT_DESCRIPTOR *sample_lut_desc_list[];
+extern ADI_SENSE_1000_LUT_TABLE_DATA *sample_lut_data_list[];
+extern unsigned sample_lut_num_tables;
+
/* Change the following pointer to select any of the configurations above */
-static ADI_SENSE_CONFIG *pSelectedConfig = &sensor0_rtd_2w_pt100_config;
+static ADI_SENSE_CONFIG *pSelectedConfig = &babyseat_conf;
static ADI_SENSE_CONNECTION connectionInfo = {
.type = ADI_SENSE_CONNECTION_TYPE_SPI,
@@ -154,6 +136,42 @@
} while (! bDeviceReady);
ADI_SENSE_LOG_INFO("ADI Sense device ready");
+ /*
+ * Assemble the list of user-defined Look-Up Tables from sample_lut_data.c
+ * into the single contiguous data format required by the device.
+ */
+ unsigned lutBufferSize = ADI_SENSE_LUT_MAX_SIZE;
+ ADI_SENSE_1000_LUT *pLutBuffer = (ADI_SENSE_1000_LUT *) ::operator new (lutBufferSize);
+ if (pLutBuffer == NULL)
+ {
+ ADI_SENSE_LOG_ERROR("Failed to allocate memory for user-defined LUT data buffer");
+ return ADI_SENSE_NO_MEM;
+ }
+
+ ADI_SENSE_LOG_INFO("Assembling LUT data");
+ res = adi_sense_1000_AssembleLutData(pLutBuffer, lutBufferSize,
+ sample_lut_num_tables,
+ sample_lut_desc_list,
+ sample_lut_data_list);
+ if (res != ADI_SENSE_SUCCESS)
+ {
+ ADI_SENSE_LOG_ERROR("Failed to assemble user-defined LUT data");
+ return res;
+ }
+
+ /*
+ * Write assembled user-defined Look-Up Table data structure to the device
+ * User-defined LUT data is not applied until adi_sense_ApplyConfigUpdates() is called.
+ */
+ ADI_SENSE_LOG_INFO("Setting LUT data");
+ res = adi_sense_1000_SetLutData(hDevice, pLutBuffer);
+ if (res != ADI_SENSE_SUCCESS)
+ {
+ ADI_SENSE_LOG_ERROR("Failed to set user-defined LUT data");
+ return res;
+ }
+
+ delete pLutBuffer;
/*
* Write configuration settings to the device registers.
* Settings are not applied until adi_sense_ApplyConfigUpdates() is called.
--- a/multichannel_continuous_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,237 +0,0 @@
-/*!
- ******************************************************************************
- * @file: config.c
- * @brief:
- *-----------------------------------------------------------------------------
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG multichannel_continuous_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- .cycleInterval = 5000000,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CJC_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_1,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_T_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_J_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_VOLTAGE_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_CURRENT_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 36500,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_A_DEF_L1,
- .deviceAddress = 0x27,
- },
- },
- },
- },
-};
--- a/multichannel_multicycle_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,241 +0,0 @@
-/*!
- ******************************************************************************
- * @file: config.c
- * @brief:
- *-----------------------------------------------------------------------------
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG multichannel_multicycle_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_MULTICYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_MULTICYCLE_BURST,
- .cycleInterval = 3000000,
- .multiCycleConfig = {
- .cyclesPerBurst = 5,
- .burstInterval = 30,
- },
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CJC_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_1,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_T_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_J_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_VOLTAGE_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_CURRENT_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 36500,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_A_DEF_L1,
- .deviceAddress = 0x27,
- },
- },
- },
- },
-};
--- a/multichannel_singlecycle_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,236 +0,0 @@
-/*!
- ******************************************************************************
- * @file: config.c
- * @brief:
- *-----------------------------------------------------------------------------
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG multichannel_singlecycle_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CONVERSION,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CJC_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_1,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_T_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_J_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_VOLTAGE_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_CURRENT_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 36500,
- .i2cChannelConfig = {
- .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_A_DEF_L1,
- .deviceAddress = 0x27,
- },
- },
- },
- },
-};
--- a/sensor0_diode_2c_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-/*!
- ******************************************************************************
- * @file: sensor0_diode_config.cpp
- * @brief:
- *-----------------------------------------------------------------------------
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor0_diode_2c_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .sensorParameter = 1.003,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_DIODE_2C_TYPEA_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_50uA,
- .diodeRatio = ADI_SENSE_1000_ADC_EXC_CURRENT_IOUT_DIODE_DEFAULT,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor0_microphone_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor0_microphone_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_MICROPHONE_B_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_1X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- },
- },
-};
--- a/sensor0_rtd-2w-pt100_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor0_rtd_2w_pt100_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_250uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor1_diode_3c_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-/*!
- ******************************************************************************
- * @file: sensor0_diode_config.cpp
- * @brief:
- *-----------------------------------------------------------------------------
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor1_diode_3c_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .sensorParameter = 1.003,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_DIODE_3C_TYPEA_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_50uA,
- .diodeRatio = ADI_SENSE_1000_ADC_EXC_CURRENT_IOUT_DIODE_DEFAULT,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor1_rtd-3w-pt100_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor1_rtd_3w_pt100_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_3WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_250uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor1_typeK_cjc1_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor1_typeK_cjc1_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_250uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_1,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- },
- },
-};
--- a/sensor2_bridge-6w-pressure_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor2_bridge_6w_pressure_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .enableUnityLut = true,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_6WIRE_1_DEF_L2,
- .gain = ADI_SENSE_1000_ADC_GAIN_1X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor2_typeT_cjc0_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor2_typeT_cjc0_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_250uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_T_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- },
- },
-};
--- a/sensor3_thermistor-10k-ntc_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor3_thermistor_10k_ntc_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMISTOR_A_10K_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_1X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_2,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
--- a/sensor3_typeJ_cjc0_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG sensor3_typeJ_cjc0_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_2WIRE_PT100_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_8X,
- .current = {
- .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_250uA,
- },
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1,
- .disableBuffer = false,
- },
- .enableVbias = false,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_CJC_0,
- .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMOCOUPLE_J_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_32X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = true,
- },
- },
- },
- },
-};
--- a/spi0_adiAdxl355_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/*
-CONFIDENTIAL AND PROPRIETARY INFORMATION
-
-Copyright (c) 2018 Emutex Ltd. All rights reserved.
-This software and documentation contain confidential and
-proprietary information that is the property of
-Emutex Ltd. The software and documentation are
-furnished under a license agreement and may be used
-or copied only in accordance with the terms of the license
-agreement. No part of the software and documentation
-may be reproduced, transmitted, or translated, in any
-form or by any means, electronic, mechanical, manual,
-optical, or otherwise, without prior written permission
-of Emutex Ltd., or as expressly provided by the license agreement.
-Reverse engineering is prohibited, and reproduction,
-disclosure or use without specific written authorization
-of Emutex Ltd. is strictly forbidden.
- *
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG spi0_adiAdxl355_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- .cycleInterval = 1000000,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
- /* Accelerometer X-Axis (and common settings for physical channel) */
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 1000,
- .spiChannelConfig = {
- .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_B_DEF_L1,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SPI_1] = {
- /* Accelerometer Y-Axis (virtual channel) */
- .enableChannel = true,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SPI_2] = {
- /* Accelerometer Z-Axis (virtual channel) */
- .enableChannel = true,
- },
- },
- },
-};
--- a/spi0_adiAdxl362_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG spi0_adiAdxl362_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- .cycleInterval = 1000000,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
- /* Accelerometer X-Axis (and common settings for physical channel) */
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 10000,
- /* Optional threshold limits applied to the processed measurement results */
- .lowThreshold = -6.0,
- .highThreshold = 6.0,
- .spiChannelConfig = {
- .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_A_DEF_L1,
- },
- },
- [ADI_SENSE_1000_CHANNEL_ID_SPI_1] = {
- /* Accelerometer Y-Axis (virtual channel) */
- .enableChannel = true,
- /* Optional threshold limits applied to the processed measurement results */
- .lowThreshold = -6.0,
- .highThreshold = 6.0,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SPI_2] = {
- /* Accelerometer Z-Axis (virtual channel) */
- .enableChannel = true,
- /* Optional adjustment applied to the processed measurement result */
- .offsetAdjustment = -0.2,
- /* Optional threshold limits applied to the processed measurement results */
- .lowThreshold = -1.5,
- .highThreshold = 1.5,
- },
- },
- },
-};
--- a/spi0_honeywellTrustability_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG spi0_honeywellTrustability_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 750,
- .spiChannelConfig = {
- .sensor = ADI_SENSE_1000_SPI_SENSOR_PRESSURE_A_DEF_L1,
- },
- },
- },
- },
-};
--- a/uart_cozirCO2_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG uart_cozirCO2_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_UART] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 2000,
- .sensorParameter = 32.0, /* This is a filter value configurable by the user */
- .uartChannelConfig = {
- .sensor = ADI_SENSE_1000_UART_SENSOR_UART_CO2_A_DEF_L1,
- },
- },
- },
- },
-};
--- a/voltage_honeywellPressure_config.c Thu May 17 10:34:45 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
-Copyright 2017 (c) Analog Devices, Inc.
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- - Neither the name of Analog Devices, Inc. nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- - The use of this software may or may not infringe the patent rights
- of one or more patent holders. This license does not release you
- from the requirement that you obtain separate licenses from these
- patent holders to use this software.
- - Use of the software either in source or binary form, must be run
- on or directly connected to an Analog Devices Inc. component.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *****************************************************************************/
-
-/*!
- ******************************************************************************
- * @file:
- * @brief:
- *-----------------------------------------------------------------------------
- */
-#include "inc/adi_sense_config_types.h"
-
-ADI_SENSE_CONFIG voltage_honeywellPressure_config = {
- .versionId = { .major = 1, .minor = 4 },
- .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000,
- .adisense1000 = {
- .power = {
- .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
- },
- .measurement = {
- .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE,
- .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
- },
- .channels = {
- [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0] = {
- .enableChannel = true,
- .disablePublishing = false,
- .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
- .measurementsPerCycle = 10,
- .extraSettlingTime = 0,
- .adcChannelConfig = {
- .sensor = ADI_SENSE_1000_ADC_SENSOR_VOLTAGE_PRESSURE_A_DEF_L1,
- .gain = ADI_SENSE_1000_ADC_GAIN_2X,
- .filter = {
- .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
- },
- .reference = {
- .type = ADI_SENSE_1000_ADC_REFERENCE_VOLTAGE_INTERNAL,
- .disableBuffer = true,
- },
- .enableVbias = false,
- },
- },
- },
- },
-};
