Mbed FW update

Committer:
Vkadaba
Date:
Tue Mar 31 04:50:37 2020 +0000
Revision:
61:0f16a2e3b58b
Parent:
58:aa9cd5072f66
removed crc support for LUT

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 45:f5f553b8c0d5 53 .externalRefVoltage=0.0,
Vkadaba 45:f5f553b8c0d5 54 .AVDDVoltage=3.0,
Vkadaba 34:b60ee1e0af2b 55 .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
Vkadaba 56:38b36e947602 56 .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
Vkadaba 34:b60ee1e0af2b 57 .cycleInterval = 0,
Vkadaba 56:38b36e947602 58 .excitationState = ADMW1001_ADC_EXC_STATE_CYCLE_POWER,
Vkadaba 56:38b36e947602 59 .vBiasEnable = false,
Vkadaba 56:38b36e947602 60 .RSenseValue = 1000,
Vkadaba 56:38b36e947602 61 .groundSwitch = ADMW1001_ADC_GND_SW_CLOSED,
Vkadaba 34:b60ee1e0af2b 62 },
Vkadaba 34:b60ee1e0af2b 63 .channels = {
Vkadaba 34:b60ee1e0af2b 64 [ADMW1001_CH_ID_ANLG_1_UNIVERSAL] = {
Vkadaba 34:b60ee1e0af2b 65 .enableChannel = true,
Vkadaba 34:b60ee1e0af2b 66 .disablePublishing = false,
Vkadaba 34:b60ee1e0af2b 67 .compensationChannel = ADMW1001_CH_ID_NONE,
Vkadaba 56:38b36e947602 68 .lutSelect = ADMW1001_LUT_DEFAULT,
Vkadaba 34:b60ee1e0af2b 69 .measurementUnit = ADMW1001_MEASUREMENT_UNIT_UNSPECIFIED,
Vkadaba 56:38b36e947602 70 .extraSettlingTime = 4.49999986449257,
Vkadaba 34:b60ee1e0af2b 71 .lowThreshold = 0,
Vkadaba 34:b60ee1e0af2b 72 .highThreshold = 45359.2,
Vkadaba 55:215da406282b 73 .measurementsPerCycle = 1,
Vkadaba 56:38b36e947602 74 .offsetAdjustment = 0,
Vkadaba 56:38b36e947602 75 .gainAdjustment = 1,
Vkadaba 34:b60ee1e0af2b 76 .adcChannelConfig = {
Vkadaba 58:aa9cd5072f66 77 .sensor = ADMW1001_ADC_SENSOR_BRIDGE_4WIRE,
Vkadaba 56:38b36e947602 78 .gain = ADMW1001_ADC_GAIN_8X,
Vkadaba 34:b60ee1e0af2b 79 .filter = {
Vkadaba 34:b60ee1e0af2b 80 .type = ADMW1001_ADC_FILTER_SINC3,
Vkadaba 34:b60ee1e0af2b 81 .sf = ADMW1001_SF_8P24HZ,
Vkadaba 34:b60ee1e0af2b 82 .chopMode = ADMW1001_CHOP_MD_SW,
Vkadaba 56:38b36e947602 83 .notch1p2 = true
Vkadaba 34:b60ee1e0af2b 84 },
Vkadaba 34:b60ee1e0af2b 85 .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_AVDD,
Vkadaba 34:b60ee1e0af2b 86 .bufferBypass = ADMW1001_BUFFER_BYPASSS_DISABLED,
Vkadaba 34:b60ee1e0af2b 87 },
Vkadaba 34:b60ee1e0af2b 88 },
Vkadaba 34:b60ee1e0af2b 89 },
Vkadaba 34:b60ee1e0af2b 90 },
Vkadaba 45:f5f553b8c0d5 91 };