Test, please delete

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ADISense1000_MBED.c Source File

ADISense1000_MBED.c

Go to the documentation of this file.
00001 /*
00002 Copyright 2017 (c) Analog Devices, Inc.
00003 
00004 All rights reserved.
00005 
00006 Redistribution and use in source and binary forms, with or without
00007 modification, are permitted provided that the following conditions are met:
00008 - Redistributions of source code must retain the above copyright
00009 notice, this list of conditions and the following disclaimer.
00010 - Redistributions in binary form must reproduce the above copyright
00011 notice, this list of conditions and the following disclaimer in
00012 the documentation and/or other materials provided with the
00013 distribution.
00014 - Neither the name of Analog Devices, Inc. nor the names of its
00015 contributors may be used to endorse or promote products derived
00016 from this software without specific prior written permission.
00017 - The use of this software may or may not infringe the patent rights
00018 of one or more patent holders. This license does not release you
00019 from the requirement that you obtain separate licenses from these
00020 patent holders to use this software.
00021 - Use of the software either in source or binary form, must be run
00022 on or directly connected to an Analog Devices Inc. component.
00023 
00024 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
00025 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
00026 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00027 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
00028 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00029 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
00030 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00031 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00032 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00033 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034 *
00035 *****************************************************************************/
00036 
00037 /*!
00038 ******************************************************************************
00039 * @file:
00040 * @brief:
00041 *-----------------------------------------------------------------------------
00042 */
00043 #include "inc/adi_sense_config_types.h"
00044 
00045 ADI_SENSE_CONFIG  config = {
00046     .versionId  = { .major  = 1, .minor = 4 },
00047     .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000 ,
00048     .adisense1000 = {
00049         .power = {
00050             .powerMode = ADI_SENSE_1000_POWER_MODE_FULL ,
00051         },
00052         .measurement = {
00053             .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS ,
00054             .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE ,
00055             .cycleInterval = 0,
00056         },
00057         .channels = {
00058             [ADI_SENSE_1000_CHANNEL_ID_CJC_0 ] = {
00059                 .enableChannel = false,
00060             },
00061             [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0 ] = {
00062                 .enableChannel = true,
00063                 .disablePublishing = false,
00064                 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE ,
00065         .measurementUnit = ADI_SENSE_1000_MEASUREMENT_UNIT_CELSIUS ,
00066                 .measurementsPerCycle = 1,
00067                 .extraSettlingTime = 7500,
00068                 .adcChannelConfig = {
00069                     .sensor = ADI_SENSE_1000_ADC_SENSOR_RTD_4WIRE_PT100_DEF_L1 ,
00070                     .gain = ADI_SENSE_1000_ADC_GAIN_8X ,
00071                     .current = {
00072                         .outputLevel = ADI_SENSE_1000_ADC_EXC_CURRENT_500uA ,
00073                     },
00074                     .filter = {
00075                         .type = ADI_SENSE_1000_ADC_FILTER_SINC4 ,
00076                         .fs = 1920,
00077                     },
00078                     .reference = {
00079                         .type = ADI_SENSE_1000_ADC_REFERENCE_RESISTOR_INTERNAL_1 ,
00080                         .disableBuffer = false,
00081                     },
00082                     .enableVbias = false,
00083                 },
00084             },
00085             [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1 ] = {
00086                 .enableChannel = false,
00087             },
00088             [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2 ] = {
00089                 .enableChannel = false,
00090             },
00091             [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3 ] = {
00092                 .enableChannel = false,
00093             },
00094             [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0 ] = {
00095                 .enableChannel = false,
00096             },
00097             [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0 ] = {
00098                 .enableChannel = false,
00099             },
00100             [ADI_SENSE_1000_CHANNEL_ID_I2C_0 ] = {
00101                 .enableChannel = false,
00102             },
00103             [ADI_SENSE_1000_CHANNEL_ID_I2C_1 ] = {
00104                 .enableChannel = false,
00105             },
00106             [ADI_SENSE_1000_CHANNEL_ID_SPI_0 ] = {
00107                 .enableChannel = false,
00108             },
00109             [ADI_SENSE_1000_CHANNEL_ID_SPI_1 ] = {
00110                 .enableChannel = false,
00111             },
00112             [ADI_SENSE_1000_CHANNEL_ID_SPI_2 ] = {
00113                 .enableChannel = false,
00114             },
00115         },
00116     },
00117 };
00118 
00119 
00120