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