Sean Wilson
/
AdiSense1000_V21
AdiSense1000_V21 MBED API
Fork of AdiSense1000 by
i2c0_honeywellHumidicon_config.c@28:4eb837cd71df, 2018-05-17 (annotated)
- Committer:
- kevin1990
- Date:
- Thu May 17 10:34:45 2018 +0100
- Revision:
- 28:4eb837cd71df
- Parent:
- 25:c5bff546082f
Adding host library and example code for v1.3 release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevin1990 | 28:4eb837cd71df | 1 | /* |
danodonovan | 23:2adb6216b001 | 2 | Copyright 2017 (c) Analog Devices, Inc. |
kevin1990 | 15:78f3f517417f | 3 | |
kevin1990 | 15:78f3f517417f | 4 | All rights reserved. |
kevin1990 | 15:78f3f517417f | 5 | |
danodonovan | 23:2adb6216b001 | 6 | Redistribution and use in source and binary forms, with or without |
danodonovan | 23:2adb6216b001 | 7 | modification, are permitted provided that the following conditions are met: |
danodonovan | 23:2adb6216b001 | 8 | - Redistributions of source code must retain the above copyright |
danodonovan | 23:2adb6216b001 | 9 | notice, this list of conditions and the following disclaimer. |
danodonovan | 23:2adb6216b001 | 10 | - Redistributions in binary form must reproduce the above copyright |
danodonovan | 23:2adb6216b001 | 11 | notice, this list of conditions and the following disclaimer in |
danodonovan | 23:2adb6216b001 | 12 | the documentation and/or other materials provided with the |
danodonovan | 23:2adb6216b001 | 13 | distribution. |
kevin1990 | 15:78f3f517417f | 14 | - Neither the name of Analog Devices, Inc. nor the names of its |
kevin1990 | 15:78f3f517417f | 15 | contributors may be used to endorse or promote products derived |
kevin1990 | 15:78f3f517417f | 16 | from this software without specific prior written permission. |
danodonovan | 23:2adb6216b001 | 17 | - The use of this software may or may not infringe the patent rights |
danodonovan | 23:2adb6216b001 | 18 | of one or more patent holders. This license does not release you |
danodonovan | 23:2adb6216b001 | 19 | from the requirement that you obtain separate licenses from these |
danodonovan | 23:2adb6216b001 | 20 | patent holders to use this software. |
danodonovan | 23:2adb6216b001 | 21 | - Use of the software either in source or binary form, must be run |
danodonovan | 23:2adb6216b001 | 22 | on or directly connected to an Analog Devices Inc. component. |
kevin1990 | 15:78f3f517417f | 23 | |
danodonovan | 23:2adb6216b001 | 24 | THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR |
danodonovan | 23:2adb6216b001 | 25 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
danodonovan | 23:2adb6216b001 | 26 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
danodonovan | 23:2adb6216b001 | 27 | IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, |
danodonovan | 23:2adb6216b001 | 28 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
danodonovan | 23:2adb6216b001 | 29 | LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR |
danodonovan | 23:2adb6216b001 | 30 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
danodonovan | 23:2adb6216b001 | 31 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
danodonovan | 23:2adb6216b001 | 32 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
danodonovan | 23:2adb6216b001 | 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
kevin1990 | 15:78f3f517417f | 34 | * |
kevin1990 | 15:78f3f517417f | 35 | *****************************************************************************/ |
kevin1990 | 15:78f3f517417f | 36 | |
kevin1990 | 28:4eb837cd71df | 37 | /*! |
kevin1990 | 28:4eb837cd71df | 38 | ****************************************************************************** |
kevin1990 | 28:4eb837cd71df | 39 | * @file: |
kevin1990 | 28:4eb837cd71df | 40 | * @brief: |
kevin1990 | 28:4eb837cd71df | 41 | *----------------------------------------------------------------------------- |
kevin1990 | 28:4eb837cd71df | 42 | */ |
kevin1990 | 15:78f3f517417f | 43 | #include "inc/adi_sense_config_types.h" |
kevin1990 | 15:78f3f517417f | 44 | |
kevin1990 | 15:78f3f517417f | 45 | ADI_SENSE_CONFIG i2c0_honeywellHumidicon_config = { |
kevin1990 | 15:78f3f517417f | 46 | .versionId = { .major = 1, .minor = 4 }, |
danodonovan | 25:c5bff546082f | 47 | .productId = ADI_SENSE_PRODUCT_ID_ADSNS1000, |
kevin1990 | 15:78f3f517417f | 48 | .adisense1000 = { |
kevin1990 | 15:78f3f517417f | 49 | .power = { |
kevin1990 | 15:78f3f517417f | 50 | .powerMode = ADI_SENSE_1000_POWER_MODE_FULL, |
kevin1990 | 15:78f3f517417f | 51 | }, |
kevin1990 | 15:78f3f517417f | 52 | .measurement = { |
kevin1990 | 15:78f3f517417f | 53 | .operatingMode = ADI_SENSE_1000_OPERATING_MODE_SINGLECYCLE, |
kevin1990 | 15:78f3f517417f | 54 | .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE, |
kevin1990 | 15:78f3f517417f | 55 | }, |
kevin1990 | 15:78f3f517417f | 56 | .channels = { |
kevin1990 | 15:78f3f517417f | 57 | [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = { |
kevin1990 | 15:78f3f517417f | 58 | .enableChannel = true, |
kevin1990 | 15:78f3f517417f | 59 | .disablePublishing = false, |
kevin1990 | 15:78f3f517417f | 60 | .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE, |
kevin1990 | 15:78f3f517417f | 61 | .measurementsPerCycle = 10, |
kevin1990 | 15:78f3f517417f | 62 | .extraSettlingTime = 36500, |
kevin1990 | 15:78f3f517417f | 63 | .i2cChannelConfig = { |
kevin1990 | 28:4eb837cd71df | 64 | .sensor = ADI_SENSE_1000_I2C_SENSOR_HUMIDITY_A_DEF_L1, |
kevin1990 | 15:78f3f517417f | 65 | .deviceAddress = 0x27, |
kevin1990 | 15:78f3f517417f | 66 | }, |
kevin1990 | 15:78f3f517417f | 67 | }, |
kevin1990 | 15:78f3f517417f | 68 | }, |
kevin1990 | 15:78f3f517417f | 69 | }, |
kevin1990 | 15:78f3f517417f | 70 | }; |