Mbed FW update

Committer:
Vkadaba
Date:
Tue Jan 07 05:45:58 2020 +0000
Revision:
43:e1789b7214cf
Parent:
34:b60ee1e0af2b
Child:
45:f5f553b8c0d5
Added CycleTime units in seconds Added global scopes for .excitationState and .groundSwitch on mbed and added same on all config files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Vkadaba 34:b60ee1e0af2b 1 /*
Vkadaba 34:b60ee1e0af2b 2 Copyright 2019 (c) Analog Devices, Inc.
Vkadaba 34:b60ee1e0af2b 3
Vkadaba 34:b60ee1e0af2b 4 All rights reserved.
Vkadaba 34:b60ee1e0af2b 5
Vkadaba 34:b60ee1e0af2b 6 Redistribution and use in source and binary forms, with or without
Vkadaba 34:b60ee1e0af2b 7 modification, are permitted provided that the following conditions are met:
Vkadaba 34:b60ee1e0af2b 8 - Redistributions of source code must retain the above copyright
Vkadaba 34:b60ee1e0af2b 9 notice, this list of conditions and the following disclaimer.
Vkadaba 34:b60ee1e0af2b 10 - Redistributions in binary form must reproduce the above copyright
Vkadaba 34:b60ee1e0af2b 11 notice, this list of conditions and the following disclaimer in
Vkadaba 34:b60ee1e0af2b 12 the documentation and/or other materials provided with the
Vkadaba 34:b60ee1e0af2b 13 distribution.
Vkadaba 34:b60ee1e0af2b 14 - Neither the name of Analog Devices, Inc. nor the names of its
Vkadaba 34:b60ee1e0af2b 15 contributors may be used to endorse or promote products derived
Vkadaba 34:b60ee1e0af2b 16 from this software without specific prior written permission.
Vkadaba 34:b60ee1e0af2b 17 - The use of this software may or may not infringe the patent rights
Vkadaba 34:b60ee1e0af2b 18 of one or more patent holders. This license does not release you
Vkadaba 34:b60ee1e0af2b 19 from the requirement that you obtain separate licenses from these
Vkadaba 34:b60ee1e0af2b 20 patent holders to use this software.
Vkadaba 34:b60ee1e0af2b 21 - Use of the software either in source or binary form, must be run
Vkadaba 34:b60ee1e0af2b 22 on or directly connected to an Analog Devices Inc. component.
Vkadaba 34:b60ee1e0af2b 23
Vkadaba 34:b60ee1e0af2b 24 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
Vkadaba 34:b60ee1e0af2b 25 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
Vkadaba 34:b60ee1e0af2b 26 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Vkadaba 34:b60ee1e0af2b 27 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
Vkadaba 34:b60ee1e0af2b 28 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Vkadaba 34:b60ee1e0af2b 29 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
Vkadaba 34:b60ee1e0af2b 30 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Vkadaba 34:b60ee1e0af2b 31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Vkadaba 34:b60ee1e0af2b 32 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Vkadaba 34:b60ee1e0af2b 33 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Vkadaba 34:b60ee1e0af2b 34 *
Vkadaba 34:b60ee1e0af2b 35 *****************************************************************************/
Vkadaba 34:b60ee1e0af2b 36
Vkadaba 34:b60ee1e0af2b 37 /*!
Vkadaba 34:b60ee1e0af2b 38 ******************************************************************************
Vkadaba 34:b60ee1e0af2b 39 * @file:
Vkadaba 34:b60ee1e0af2b 40 * @brief:
Vkadaba 34:b60ee1e0af2b 41 *-----------------------------------------------------------------------------
Vkadaba 34:b60ee1e0af2b 42 */
Vkadaba 34:b60ee1e0af2b 43 #include "inc/admw_config_types.h"
Vkadaba 34:b60ee1e0af2b 44
Vkadaba 34:b60ee1e0af2b 45 ADMW_CONFIG bridge_4w_load_cell_config= {
Vkadaba 34:b60ee1e0af2b 46 .versionId = { .major = 2, .minor = 0 },
Vkadaba 34:b60ee1e0af2b 47 .productId = ADMW_PRODUCT_ID_ADMW1001,
Vkadaba 34:b60ee1e0af2b 48 .admw1001 = {
Vkadaba 34:b60ee1e0af2b 49 .power = {
Vkadaba 34:b60ee1e0af2b 50 .powerMode = ADMW1001_POWER_MODE_ACTIVE,
Vkadaba 34:b60ee1e0af2b 51 },
Vkadaba 34:b60ee1e0af2b 52 .measurement = {
Vkadaba 34:b60ee1e0af2b 53 .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
Vkadaba 34:b60ee1e0af2b 54 .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
Vkadaba 43:e1789b7214cf 55 .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,
Vkadaba 34:b60ee1e0af2b 56 .cycleInterval = 0,
Vkadaba 34:b60ee1e0af2b 57 .RSenseValue = 1000.0,
Vkadaba 34:b60ee1e0af2b 58 },
Vkadaba 34:b60ee1e0af2b 59 .diagnostics = {
Vkadaba 34:b60ee1e0af2b 60 .disableGlobalDiag = true,
Vkadaba 34:b60ee1e0af2b 61 .disableMeasurementDiag = true,
Vkadaba 34:b60ee1e0af2b 62 .osdFrequency = ADMW1001_OPEN_SENSOR_DIAGNOSTICS_DISABLED,
Vkadaba 34:b60ee1e0af2b 63 },
Vkadaba 34:b60ee1e0af2b 64 .channels = {
Vkadaba 34:b60ee1e0af2b 65 [ADMW1001_CH_ID_ANLG_1_UNIVERSAL] = {
Vkadaba 34:b60ee1e0af2b 66 .enableChannel = true,
Vkadaba 34:b60ee1e0af2b 67 .disablePublishing = false,
Vkadaba 34:b60ee1e0af2b 68 .compensationChannel = ADMW1001_CH_ID_NONE,
Vkadaba 34:b60ee1e0af2b 69 .lutSelect = ADMW1001_LUT_DEFAULT,
Vkadaba 34:b60ee1e0af2b 70 .measurementUnit = ADMW1001_MEASUREMENT_UNIT_UNSPECIFIED,
Vkadaba 34:b60ee1e0af2b 71 .lowThreshold = 0,
Vkadaba 34:b60ee1e0af2b 72 .highThreshold = 45359.2,
Vkadaba 34:b60ee1e0af2b 73 .offsetAdjustment = 0.0,
Vkadaba 34:b60ee1e0af2b 74 .gainAdjustment = 0.0,
Vkadaba 34:b60ee1e0af2b 75 .sensorParameter = 0.0,
Vkadaba 34:b60ee1e0af2b 76 .measurementsPerCycle = 1,
Vkadaba 34:b60ee1e0af2b 77 .cycleSkipCount = 0,
Vkadaba 34:b60ee1e0af2b 78 .extraSettlingTime = 4499.99986449257,
Vkadaba 34:b60ee1e0af2b 79 .priority = 0,
Vkadaba 34:b60ee1e0af2b 80 .adcChannelConfig = {
Vkadaba 34:b60ee1e0af2b 81 .sensor = ADMW1001_ADC_SENSOR_BRIDGE_4WIRE_1,
Vkadaba 34:b60ee1e0af2b 82 .gain = ADMW1001_ADC_GAIN_32X,
Vkadaba 34:b60ee1e0af2b 83 .filter = {
Vkadaba 34:b60ee1e0af2b 84 .type = ADMW1001_ADC_FILTER_SINC3,
Vkadaba 34:b60ee1e0af2b 85 .sf = ADMW1001_SF_8P24HZ,
Vkadaba 34:b60ee1e0af2b 86 .chopMode = ADMW1001_CHOP_MD_SW,
Vkadaba 34:b60ee1e0af2b 87 .notch1p2 = true,
Vkadaba 34:b60ee1e0af2b 88 },
Vkadaba 34:b60ee1e0af2b 89 .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_AVDD,
Vkadaba 34:b60ee1e0af2b 90 .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED,
Vkadaba 34:b60ee1e0af2b 91 },
Vkadaba 34:b60ee1e0af2b 92 },
Vkadaba 34:b60ee1e0af2b 93 },
Vkadaba 34:b60ee1e0af2b 94 },
Vkadaba 34:b60ee1e0af2b 95 };