Sean Wilson
/
AdiSense1000_V21
AdiSense1000_V21 MBED API
Fork of AdiSense1000 by
cjc0_thermistor-10k-ntc_config.c@31:de49744b57a6, 2018-06-22 (annotated)
- Committer:
- Dan O'Donovan
- Date:
- Fri Jun 22 09:29:24 2018 +0100
- Branch:
- v2.0
- Revision:
- 31:de49744b57a6
- Parent:
- 29:57edca10d78c
Adding host library and example code for v2.1 release to the v2.0 branch
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevin1990 | 29:57edca10d78c | 1 | /* |
kevin1990 | 29:57edca10d78c | 2 | Copyright 2017 (c) Analog Devices, Inc. |
kevin1990 | 29:57edca10d78c | 3 | |
kevin1990 | 29:57edca10d78c | 4 | All rights reserved. |
kevin1990 | 29:57edca10d78c | 5 | |
kevin1990 | 29:57edca10d78c | 6 | Redistribution and use in source and binary forms, with or without |
kevin1990 | 29:57edca10d78c | 7 | modification, are permitted provided that the following conditions are met: |
kevin1990 | 29:57edca10d78c | 8 | - Redistributions of source code must retain the above copyright |
kevin1990 | 29:57edca10d78c | 9 | notice, this list of conditions and the following disclaimer. |
kevin1990 | 29:57edca10d78c | 10 | - Redistributions in binary form must reproduce the above copyright |
kevin1990 | 29:57edca10d78c | 11 | notice, this list of conditions and the following disclaimer in |
kevin1990 | 29:57edca10d78c | 12 | the documentation and/or other materials provided with the |
kevin1990 | 29:57edca10d78c | 13 | distribution. |
kevin1990 | 29:57edca10d78c | 14 | - Neither the name of Analog Devices, Inc. nor the names of its |
kevin1990 | 29:57edca10d78c | 15 | contributors may be used to endorse or promote products derived |
kevin1990 | 29:57edca10d78c | 16 | from this software without specific prior written permission. |
kevin1990 | 29:57edca10d78c | 17 | - The use of this software may or may not infringe the patent rights |
kevin1990 | 29:57edca10d78c | 18 | of one or more patent holders. This license does not release you |
kevin1990 | 29:57edca10d78c | 19 | from the requirement that you obtain separate licenses from these |
kevin1990 | 29:57edca10d78c | 20 | patent holders to use this software. |
kevin1990 | 29:57edca10d78c | 21 | - Use of the software either in source or binary form, must be run |
kevin1990 | 29:57edca10d78c | 22 | on or directly connected to an Analog Devices Inc. component. |
kevin1990 | 29:57edca10d78c | 23 | |
kevin1990 | 29:57edca10d78c | 24 | THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR |
kevin1990 | 29:57edca10d78c | 25 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
kevin1990 | 29:57edca10d78c | 26 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
kevin1990 | 29:57edca10d78c | 27 | IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, |
kevin1990 | 29:57edca10d78c | 28 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
kevin1990 | 29:57edca10d78c | 29 | LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR |
kevin1990 | 29:57edca10d78c | 30 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
kevin1990 | 29:57edca10d78c | 31 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
kevin1990 | 29:57edca10d78c | 32 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
kevin1990 | 29:57edca10d78c | 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
kevin1990 | 29:57edca10d78c | 34 | * |
kevin1990 | 29:57edca10d78c | 35 | *****************************************************************************/ |
kevin1990 | 29:57edca10d78c | 36 | |
kevin1990 | 29:57edca10d78c | 37 | /*! |
kevin1990 | 29:57edca10d78c | 38 | ****************************************************************************** |
kevin1990 | 29:57edca10d78c | 39 | * @file: |
kevin1990 | 29:57edca10d78c | 40 | * @brief: |
kevin1990 | 29:57edca10d78c | 41 | *----------------------------------------------------------------------------- |
kevin1990 | 29:57edca10d78c | 42 | */ |
Dan O'Donovan |
31:de49744b57a6 | 43 | #include "adi_sense_config_types.h" |
kevin1990 | 29:57edca10d78c | 44 | |
kevin1990 | 29:57edca10d78c | 45 | ADI_SENSE_CONFIG cjc0_thermistor_10k_ntc_config = { |
kevin1990 | 29:57edca10d78c | 46 | .versionId = { .major = 1, .minor = 4 }, |
kevin1990 | 29:57edca10d78c | 47 | .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000, |
kevin1990 | 29:57edca10d78c | 48 | .adisense1000 = { |
kevin1990 | 29:57edca10d78c | 49 | .power = { |
kevin1990 | 29:57edca10d78c | 50 | .powerMode = ADI_SENSE_1000_POWER_MODE_FULL, |
kevin1990 | 29:57edca10d78c | 51 | }, |
kevin1990 | 29:57edca10d78c | 52 | .measurement = { |
kevin1990 | 29:57edca10d78c | 53 | .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE, |
kevin1990 | 29:57edca10d78c | 54 | .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE, |
kevin1990 | 29:57edca10d78c | 55 | }, |
kevin1990 | 29:57edca10d78c | 56 | .channels = { |
kevin1990 | 29:57edca10d78c | 57 | [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = { |
kevin1990 | 29:57edca10d78c | 58 | .enableChannel = true, |
kevin1990 | 29:57edca10d78c | 59 | .disablePublishing = false, |
kevin1990 | 29:57edca10d78c | 60 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
kevin1990 | 29:57edca10d78c | 61 | .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS, |
kevin1990 | 29:57edca10d78c | 62 | .measurementsPerCycle = 10, |
kevin1990 | 29:57edca10d78c | 63 | .extraSettlingTime = 0, |
kevin1990 | 29:57edca10d78c | 64 | .adcChannelConfig = { |
kevin1990 | 29:57edca10d78c | 65 | .sensor = ADI_SENSE_1000_ADC_SENSOR_THERMISTOR_A_10K_DEF_L1, |
kevin1990 | 29:57edca10d78c | 66 | .gain = ADI_SENSE_1000_ADC_GAIN_1X, |
kevin1990 | 29:57edca10d78c | 67 | .filter = { |
kevin1990 | 29:57edca10d78c | 68 | .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS, |
kevin1990 | 29:57edca10d78c | 69 | }, |
kevin1990 | 29:57edca10d78c | 70 | .reference = { |
kevin1990 | 29:57edca10d78c | 71 | .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_2, |
kevin1990 | 29:57edca10d78c | 72 | .disableBuffer = true, |
kevin1990 | 29:57edca10d78c | 73 | }, |
kevin1990 | 29:57edca10d78c | 74 | .enableVbias = false, |
kevin1990 | 29:57edca10d78c | 75 | }, |
kevin1990 | 29:57edca10d78c | 76 | }, |
kevin1990 | 29:57edca10d78c | 77 | }, |
kevin1990 | 29:57edca10d78c | 78 | }, |
kevin1990 | 29:57edca10d78c | 79 | }; |