Sean Wilson
/
AdiSense1000_V21
AdiSense1000_V21 MBED API
Fork of AdiSense1000 by
Revision 32:262fc8aeb486, committed 2018-07-24
- Comitter:
- seanwilson10
- Date:
- Tue Jul 24 11:49:57 2018 +0000
- Parent:
- 28:4eb837cd71df
- Commit message:
- v2.1 imported
Changed in this revision
diff -r 4eb837cd71df -r 262fc8aeb486 README.md --- a/README.md Thu May 17 10:34:45 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +0,0 @@ -# Getting started with Blinky on mbed OS - -This guide reviews the steps required to get Blinky working on an mbed OS platform. - -Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). - -## Import the example application - -From the command-line, import the example: - -``` -mbed import mbed-os-example-blinky -cd mbed-os-example-blinky -``` - -### Now compile - -Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler 5: - -``` -mbed compile -m K64F -t ARM -``` - -Your PC may take a few minutes to compile your code. At the end, you see the following result: - -``` -[snip] -+----------------------------+-------+-------+------+ -| Module | .text | .data | .bss | -+----------------------------+-------+-------+------+ -| Misc | 13939 | 24 | 1372 | -| core/hal | 16993 | 96 | 296 | -| core/rtos | 7384 | 92 | 4204 | -| features/FEATURE_IPV4 | 80 | 0 | 176 | -| frameworks/greentea-client | 1830 | 60 | 44 | -| frameworks/utest | 2392 | 512 | 292 | -| Subtotals | 42618 | 784 | 6384 | -+----------------------------+-------+-------+------+ -Allocated Heap: unknown -Allocated Stack: unknown -Total Static RAM memory (data + bss): 7168 bytes -Total RAM memory (data + bss + heap + stack): 7168 bytes -Total Flash memory (text + data + misc): 43402 bytes -Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin -``` - -### Program your board - -1. Connect your mbed device to the computer over USB. -1. Copy the binary file to the mbed device. -1. Press the reset button to start the program. - -The LED on your platform turns on and off. - -## Export the project to Keil MDK, and debug your application - -From the command-line, run the following command: - -``` -mbed export -m K64F -i uvision -``` - -To debug the application: - -1. Start uVision. -1. Import the uVision project generated earlier. -1. Compile your application, and generate an `.axf` file. -1. Make sure uVision is configured to debug over CMSIS-DAP (From the Project menu > Options for Target '...' > Debug tab > Use CMSIS-DAP Debugger). -1. Set breakpoints, and start a debug session. - -![Image of uVision](img/uvision.png) - -## Troubleshooting - -1. Make sure `mbed-cli` is working correctly and its version is `>1.0.0` - - ``` - mbed --version - ``` - - If not, you can update it: - - ``` - pip install mbed-cli --upgrade - ``` - -2. If using Keil MDK, make sure you have a license installed. [MDK-Lite](http://www.keil.com/arm/mdk.asp) has a 32 KB restriction on code size. \ No newline at end of file
diff -r 4eb837cd71df -r 262fc8aeb486 cjc0_thermistor-10k-ntc_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 current_honeywellPressure_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 i2c0_honeywellHumidicon_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 i2c0_onsemiNOA1305_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 i2c0_sensirionSHT3X_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 main.cpp --- a/main.cpp Thu May 17 10:34:45 2018 +0100 +++ b/main.cpp Tue Jul 24 11:49:57 2018 +0000 @@ -62,32 +62,10 @@ #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 config; /* 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 = &config; static ADI_SENSE_CONNECTION connectionInfo = { .type = ADI_SENSE_CONNECTION_TYPE_SPI, @@ -105,8 +83,8 @@ .datareadyPin = D5, }, .log = { - .txPin = PA_11, - .rxPin = PA_12, + .txPin = D1, + .rxPin = D0, .baudRate = 115200, .disableLogs = false, },
diff -r 4eb837cd71df -r 262fc8aeb486 multichannel_continuous_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 multichannel_multicycle_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 multichannel_singlecycle_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor0_diode_2c_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor0_microphone_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor0_rtd-2w-pt100_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor1_diode_3c_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor1_rtd-3w-pt100_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor1_typeK_cjc1_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor2_bridge-6w-pressure_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor2_typeT_cjc0_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor3_thermistor-10k-ntc_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 sensor3_typeJ_cjc0_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 spi0_adiAdxl355_config.c --- 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, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 spi0_adiAdxl362_config.c --- 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, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 spi0_honeywellTrustability_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 uart_cozirCO2_config.c --- 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, - }, - }, - }, - }, -};
diff -r 4eb837cd71df -r 262fc8aeb486 voltage_honeywellPressure_config.c --- 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, - }, - }, - }, - }, -};