Vybhav Kadaba / Mbed OS EV-PRO-MW1001_Development_20April
Committer:
Vkadaba
Date:
Thu Jun 20 18:13:57 2019 +0000
Revision:
8:2f2775c34640
Parent:
6:9d393a9677f4
admw1001 files are updated and code clean up is done. Project is building.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Vkadaba 6:9d393a9677f4 1 /*
Vkadaba 6:9d393a9677f4 2 Copyright 2017 (c) Analog Devices, Inc.
Vkadaba 6:9d393a9677f4 3
Vkadaba 6:9d393a9677f4 4 All rights reserved.
Vkadaba 6:9d393a9677f4 5
Vkadaba 6:9d393a9677f4 6 Redistribution and use in source and binary forms, with or without
Vkadaba 6:9d393a9677f4 7 modification, are permitted provided that the following conditions are met:
Vkadaba 6:9d393a9677f4 8 - Redistributions of source code must retain the above copyright
Vkadaba 6:9d393a9677f4 9 notice, this list of conditions and the following disclaimer.
Vkadaba 6:9d393a9677f4 10 - Redistributions in binary form must reproduce the above copyright
Vkadaba 6:9d393a9677f4 11 notice, this list of conditions and the following disclaimer in
Vkadaba 6:9d393a9677f4 12 the documentation and/or other materials provided with the
Vkadaba 6:9d393a9677f4 13 distribution.
Vkadaba 6:9d393a9677f4 14 - Neither the name of Analog Devices, Inc. nor the names of its
Vkadaba 6:9d393a9677f4 15 contributors may be used to endorse or promote products derived
Vkadaba 6:9d393a9677f4 16 from this software without specific prior written permission.
Vkadaba 6:9d393a9677f4 17 - The use of this software may or may not infringe the patent rights
Vkadaba 6:9d393a9677f4 18 of one or more patent holders. This license does not release you
Vkadaba 6:9d393a9677f4 19 from the requirement that you obtain separate licenses from these
Vkadaba 6:9d393a9677f4 20 patent holders to use this software.
Vkadaba 6:9d393a9677f4 21 - Use of the software either in source or binary form, must be run
Vkadaba 6:9d393a9677f4 22 on or directly connected to an Analog Devices Inc. component.
Vkadaba 6:9d393a9677f4 23
Vkadaba 6:9d393a9677f4 24 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
Vkadaba 6:9d393a9677f4 25 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
Vkadaba 6:9d393a9677f4 26 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Vkadaba 6:9d393a9677f4 27 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
Vkadaba 6:9d393a9677f4 28 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Vkadaba 6:9d393a9677f4 29 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
Vkadaba 6:9d393a9677f4 30 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Vkadaba 6:9d393a9677f4 31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Vkadaba 6:9d393a9677f4 32 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Vkadaba 6:9d393a9677f4 33 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Vkadaba 6:9d393a9677f4 34 *
Vkadaba 6:9d393a9677f4 35 *****************************************************************************/
Vkadaba 6:9d393a9677f4 36
Vkadaba 6:9d393a9677f4 37 /*!
Vkadaba 6:9d393a9677f4 38 ******************************************************************************
Vkadaba 6:9d393a9677f4 39 * @file:
Vkadaba 6:9d393a9677f4 40 * @brief:
Vkadaba 6:9d393a9677f4 41 *-----------------------------------------------------------------------------
Vkadaba 6:9d393a9677f4 42 */
Vkadaba 6:9d393a9677f4 43 #include "admw_config_types.h"
Vkadaba 6:9d393a9677f4 44
Vkadaba 6:9d393a9677f4 45 ADMW_CONFIG sensor2_bridge_6w_pressure_config = {
Vkadaba 6:9d393a9677f4 46 .versionId = { .major = 1, .minor = 4 },
Vkadaba 6:9d393a9677f4 47 .productId = ADMW_PRODUCT_ID_ADMW1001,
Vkadaba 6:9d393a9677f4 48 .admw1001 = {
Vkadaba 6:9d393a9677f4 49 .power = {
Vkadaba 6:9d393a9677f4 50 .powerMode = ADMW1001_POWER_MODE_ACTIVE,
Vkadaba 6:9d393a9677f4 51 },
Vkadaba 6:9d393a9677f4 52 .measurement = {
Vkadaba 6:9d393a9677f4 53 .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE,
Vkadaba 6:9d393a9677f4 54 .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
Vkadaba 6:9d393a9677f4 55 },
Vkadaba 6:9d393a9677f4 56 .channels = {
Vkadaba 8:2f2775c34640 57 [ADMW1001_CH_ID_ANLG_1_UNIVERSAL] = {
Vkadaba 6:9d393a9677f4 58 .enableChannel = true,
Vkadaba 6:9d393a9677f4 59 .disablePublishing = false,
Vkadaba 8:2f2775c34640 60 .compensationChannel = ADMW1001_CH_ID_NONE,
Vkadaba 6:9d393a9677f4 61 .measurementsPerCycle = 10,
Vkadaba 6:9d393a9677f4 62 .extraSettlingTime = 0,
Vkadaba 6:9d393a9677f4 63 .adcChannelConfig = {
Vkadaba 8:2f2775c34640 64 .sensor = ADMW1001_ADC_SENSOR_BRIDGE_6WIRE_1,
Vkadaba 6:9d393a9677f4 65 .gain = ADMW1001_ADC_GAIN_1X,
Vkadaba 6:9d393a9677f4 66 .filter = {
Vkadaba 6:9d393a9677f4 67 .type = ADMW1001_ADC_FILTER_SINC4,
Vkadaba 6:9d393a9677f4 68 },
Vkadaba 6:9d393a9677f4 69 .reference = {
Vkadaba 8:2f2775c34640 70 ADMW1001_ADC_REFERENCE_VOLTAGE_AVDD,
Vkadaba 6:9d393a9677f4 71 },
Vkadaba 6:9d393a9677f4 72 },
Vkadaba 6:9d393a9677f4 73 },
Vkadaba 6:9d393a9677f4 74 },
Vkadaba 6:9d393a9677f4 75 },
Vkadaba 6:9d393a9677f4 76 };