Vybhav Kadaba
/
EV-PRO-MW1001_Development_MWARE2390
sensor result structure modified
Embed:
(wiki syntax)
Show/hide line numbers
thermocouple_typeK_cjc0_config.c
00001 00002 /*! 00003 ****************************************************************************** 00004 * @file: config.c 00005 * @brief: 00006 *----------------------------------------------------------------------------- 00007 * 00008 Copyright (c) 2018 Analog Devices, Inc. 00009 00010 All rights reserved. 00011 00012 Redistribution and use in source and binary forms, with or without modification, 00013 are permitted provided that the following conditions are met: 00014 - Redistributions of source code must retain the above copyright notice, 00015 this list of conditions and the following disclaimer. 00016 - Redistributions in binary form must reproduce the above copyright notice, 00017 this list of conditions and the following disclaimer in the documentation 00018 and/or other materials provided with the distribution. 00019 - Modified versions of the software must be conspicuously marked as such. 00020 - This software is licensed solely and exclusively for use with processors 00021 manufactured by or for Analog Devices, Inc. 00022 - This software may not be combined or merged with other code in any manner 00023 that would cause the software to become subject to terms and conditions 00024 which differ from those listed here. 00025 - Neither the name of Analog Devices, Inc. nor the names of its 00026 contributors may be used to endorse or promote products derived 00027 from this software without specific prior written permission. 00028 - The use of this software may or may not infringe the patent rights of one 00029 or more patent holders. This license does not release you from the 00030 requirement that you obtain separate licenses from these patent holders 00031 to use this software. 00032 00033 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY 00034 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, 00035 TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 00036 NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 00037 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES 00038 (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL 00039 PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00040 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00041 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00042 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00043 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00044 * 00045 *****************************************************************************/ 00046 00047 #include "inc/admw_config_types.h" 00048 00049 ADMW_CONFIG thermocouple_typeK_cjc0_config= { 00050 .versionId = { .major = 2, .minor = 0 }, 00051 .productId = ADMW_PRODUCT_ID_ADMW1001 , 00052 .admw1001 = { 00053 .power = { 00054 .powerMode = ADMW1001_POWER_MODE_ACTIVE , 00055 }, 00056 .measurement = { 00057 .externalRefVoltage=0.0, 00058 .AVDDVoltage=3.0, 00059 .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS , 00060 .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE , 00061 .cycleInterval = 0, 00062 .excitationState = ADMW1001_ADC_EXC_STATE_CYCLE_POWER , 00063 .vBiasEnable = true, 00064 .RSenseValue = 1000, 00065 .groundSwitch = ADMW1001_ADC_GND_SW_OPEN , 00066 .fifoNumCycles = 1, 00067 }, 00068 .channels = { 00069 [ADMW1001_CH_ID_ANLG_1_UNIVERSAL ] = { 00070 .enableChannel = true, 00071 .disablePublishing = false, 00072 .compensationChannel = ADMW1001_CH_ID_NONE , 00073 .lutSelect = ADMW1001_LUT_DEFAULT , 00074 .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS , 00075 .extraSettlingTime = 0, 00076 .lowThreshold = -50, 00077 .highThreshold = 250, 00078 .measurementsPerCycle = 1, 00079 .offsetAdjustment = 0, 00080 .gainAdjustment = 1, 00081 .adcChannelConfig = { 00082 .sensor = ADMW1001_ADC_SENSOR_RTD_2WIRE_PT100 , 00083 .gain = ADMW1001_ADC_GAIN_1X , 00084 .current = { 00085 .outputLevel = ADMW1001_ADC_EXC_CURRENT_500uA , 00086 }, 00087 .rtdCurve = ADMW1001_ADC_RTD_CURVE_EUROPEAN , 00088 .filter = { 00089 .type = ADMW1001_ADC_FILTER_SINC3 , 00090 .sf = ADMW1001_SF_8P24HZ , 00091 .chopMode = ADMW1001_CHOP_MD_ON, 00092 .notch1p2 = true 00093 }, 00094 .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL , 00095 .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED , 00096 }, 00097 }, 00098 [ADMW1001_CH_ID_ANLG_1_DIFFERENTIAL ] = { 00099 .enableChannel = true, 00100 .disablePublishing = false, 00101 .compensationChannel = ADMW1001_CH_ID_ANLG_1_UNIVERSAL , 00102 .lutSelect = ADMW1001_LUT_DEFAULT , 00103 .measurementUnit = ADMW1001_MEASUREMENT_UNIT_CELSIUS , 00104 .extraSettlingTime = 4.49999986449257, 00105 .lowThreshold = -50, 00106 .highThreshold = 250, 00107 .measurementsPerCycle = 1, 00108 .offsetAdjustment = 0, 00109 .gainAdjustment = 1, 00110 .adcChannelConfig = { 00111 .sensor = ADMW1001_ADC_SENSOR_THERMOCOUPLE_K , 00112 .gain = ADMW1001_ADC_GAIN_8X , 00113 .filter = { 00114 .type = ADMW1001_ADC_FILTER_SINC3 , 00115 .sf = ADMW1001_SF_8P24HZ , 00116 .chopMode = ADMW1001_CHOP_MD_ON, 00117 .notch1p2 = true 00118 }, 00119 .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL , 00120 .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED , 00121 }, 00122 }, 00123 }, 00124 }, 00125 };
Generated on Wed Jul 13 2022 03:55:22 by 1.7.2