Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
sensor2_bridge-6w-pressure_config.c@6:9d393a9677f4, 2019-06-15 (annotated)
- Committer:
 - Vkadaba
 - Date:
 - Sat Jun 15 14:30:49 2019 +0000
 - Revision:
 - 6:9d393a9677f4
 - Child:
 - 8:2f2775c34640
 
Register map is updated and sensor config files are modified
Who changed what in which revision?
| User | Revision | Line number | New 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 | 6:9d393a9677f4 | 57 | [ADMW1001_CHANNEL_ID_ANALOG_1_UNIVERSAL] = { | 
| Vkadaba | 6:9d393a9677f4 | 58 | .enableChannel = true, | 
| Vkadaba | 6:9d393a9677f4 | 59 | .disablePublishing = false, | 
| Vkadaba | 6:9d393a9677f4 | 60 | .compensationChannel = ADMW1001_CHANNEL_ID_NONE, | 
| Vkadaba | 6:9d393a9677f4 | 61 | .measurementsPerCycle = 10, | 
| Vkadaba | 6:9d393a9677f4 | 62 | .extraSettlingTime = 0, | 
| Vkadaba | 6:9d393a9677f4 | 63 | .enableUnityLut = true, | 
| Vkadaba | 6:9d393a9677f4 | 64 | .adcChannelConfig = { | 
| Vkadaba | 6:9d393a9677f4 | 65 | .sensor = ADMW1001_ADC_SENSOR_BRIDGE_6WIRE_1_DEF_L2, | 
| Vkadaba | 6:9d393a9677f4 | 66 | .gain = ADMW1001_ADC_GAIN_1X, | 
| Vkadaba | 6:9d393a9677f4 | 67 | .filter = { | 
| Vkadaba | 6:9d393a9677f4 | 68 | .type = ADMW1001_ADC_FILTER_SINC4, | 
| Vkadaba | 6:9d393a9677f4 | 69 | }, | 
| Vkadaba | 6:9d393a9677f4 | 70 | .reference = { | 
| Vkadaba | 6:9d393a9677f4 | 71 | .type = ADMW1001_ADC_REFERENCE_BRIDGE_EXCITATION, | 
| Vkadaba | 6:9d393a9677f4 | 72 | }, | 
| Vkadaba | 6:9d393a9677f4 | 73 | .enableVbias = false, | 
| Vkadaba | 6:9d393a9677f4 | 74 | }, | 
| Vkadaba | 6:9d393a9677f4 | 75 | }, | 
| Vkadaba | 6:9d393a9677f4 | 76 | }, | 
| Vkadaba | 6:9d393a9677f4 | 77 | }, | 
| Vkadaba | 6:9d393a9677f4 | 78 | }; |