Library files for AD717x and AD411x family of products.
ad7175_8_regs.h@2:0780c234e572, 2020-08-03 (annotated)
- Committer:
- mahphalke
- Date:
- Mon Aug 03 09:18:41 2020 +0000
- Revision:
- 2:0780c234e572
- Parent:
- 1:1d54b9448386
Added no-os driver support for AD4114/15 devices
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mahphalke | 1:1d54b9448386 | 1 | /**************************************************************************//** |
mahphalke | 1:1d54b9448386 | 2 | * @file AD7175_8_regs.h |
mahphalke | 1:1d54b9448386 | 3 | * @brief AD7175_8 Registers Definitions. |
mahphalke | 1:1d54b9448386 | 4 | * @author dnechita (dan.nechita@analog.com) |
mahphalke | 1:1d54b9448386 | 5 | * |
mahphalke | 1:1d54b9448386 | 6 | ******************************************************************************* |
mahphalke | 1:1d54b9448386 | 7 | * Copyright 2015(c) Analog Devices, Inc. |
mahphalke | 1:1d54b9448386 | 8 | * |
mahphalke | 1:1d54b9448386 | 9 | * All rights reserved. |
mahphalke | 1:1d54b9448386 | 10 | * |
mahphalke | 1:1d54b9448386 | 11 | * Redistribution and use in source and binary forms, with or without modification, |
mahphalke | 1:1d54b9448386 | 12 | * are permitted provided that the following conditions are met: |
mahphalke | 1:1d54b9448386 | 13 | * - Redistributions of source code must retain the above copyright |
mahphalke | 1:1d54b9448386 | 14 | * notice, this list of conditions and the following disclaimer. |
mahphalke | 1:1d54b9448386 | 15 | * - Redistributions in binary form must reproduce the above copyright |
mahphalke | 1:1d54b9448386 | 16 | * notice, this list of conditions and the following disclaimer in |
mahphalke | 1:1d54b9448386 | 17 | * the documentation and/or other materials provided with the |
mahphalke | 1:1d54b9448386 | 18 | * distribution. |
mahphalke | 1:1d54b9448386 | 19 | * - Neither the name of Analog Devices, Inc. nor the names of its |
mahphalke | 1:1d54b9448386 | 20 | * contributors may be used to endorse or promote products derived |
mahphalke | 1:1d54b9448386 | 21 | * from this software without specific prior written permission. |
mahphalke | 1:1d54b9448386 | 22 | * - The use of this software may or may not infringe the patent rights |
mahphalke | 1:1d54b9448386 | 23 | * of one or more patent holders. This license does not release you |
mahphalke | 1:1d54b9448386 | 24 | * from the requirement that you obtain separate licenses from these |
mahphalke | 1:1d54b9448386 | 25 | * patent holders to use this software. |
mahphalke | 1:1d54b9448386 | 26 | * - Use of the software either in source or binary form, must be run |
mahphalke | 1:1d54b9448386 | 27 | * on or directly connected to an Analog Devices Inc. component. |
mahphalke | 1:1d54b9448386 | 28 | * |
mahphalke | 1:1d54b9448386 | 29 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED |
mahphalke | 1:1d54b9448386 | 30 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY |
mahphalke | 1:1d54b9448386 | 31 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
mahphalke | 1:1d54b9448386 | 32 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
mahphalke | 1:1d54b9448386 | 33 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
mahphalke | 1:1d54b9448386 | 34 | * INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
mahphalke | 1:1d54b9448386 | 35 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
mahphalke | 1:1d54b9448386 | 36 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
mahphalke | 1:1d54b9448386 | 37 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
mahphalke | 1:1d54b9448386 | 38 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mahphalke | 1:1d54b9448386 | 39 | ******************************************************************************/ |
mahphalke | 1:1d54b9448386 | 40 | |
mahphalke | 1:1d54b9448386 | 41 | #ifndef __AD7175_8_REGS_H__ |
mahphalke | 1:1d54b9448386 | 42 | #define __AD7175_8_REGS_H__ |
mahphalke | 1:1d54b9448386 | 43 | |
mahphalke | 1:1d54b9448386 | 44 | #include "ad717x.h" |
mahphalke | 1:1d54b9448386 | 45 | |
mahphalke | 1:1d54b9448386 | 46 | #ifdef AD7175_8_INIT |
mahphalke | 1:1d54b9448386 | 47 | /*! Array holding the info for the AD7175_8 registers - address, initial value, size */ |
mahphalke | 1:1d54b9448386 | 48 | ad717x_st_reg ad7175_8_regs[] = { |
mahphalke | 1:1d54b9448386 | 49 | { AD717X_STATUS_REG, 0x00, 1 }, |
mahphalke | 1:1d54b9448386 | 50 | { AD717X_ADCMODE_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 51 | { |
mahphalke | 1:1d54b9448386 | 52 | AD717X_IFMODE_REG, |
mahphalke | 1:1d54b9448386 | 53 | AD717X_IFMODE_REG_DOUT_RESET | AD717X_IFMODE_REG_CRC_EN, |
mahphalke | 1:1d54b9448386 | 54 | 2 |
mahphalke | 1:1d54b9448386 | 55 | }, |
mahphalke | 1:1d54b9448386 | 56 | { AD717X_REGCHECK_REG, 0x0000, 3 }, |
mahphalke | 1:1d54b9448386 | 57 | { AD717X_DATA_REG, 0x0000, 3 }, |
mahphalke | 1:1d54b9448386 | 58 | { AD717X_GPIOCON_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 59 | { AD717X_ID_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 60 | { |
mahphalke | 1:1d54b9448386 | 61 | AD717X_CHMAP0_REG, |
mahphalke | 1:1d54b9448386 | 62 | AD717X_CHMAP_REG_CH_EN | AD717X_CHMAP_REG_AINNEG(2), |
mahphalke | 1:1d54b9448386 | 63 | 2 |
mahphalke | 1:1d54b9448386 | 64 | }, |
mahphalke | 1:1d54b9448386 | 65 | { AD717X_CHMAP1_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 66 | { AD717X_CHMAP2_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 67 | { AD717X_CHMAP3_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 68 | { AD717X_CHMAP4_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 69 | { AD717X_CHMAP5_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 70 | { AD717X_CHMAP6_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 71 | { AD717X_CHMAP7_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 72 | { AD717X_CHMAP8_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 73 | { AD717X_CHMAP9_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 74 | { AD717X_CHMAP10_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 75 | { AD717X_CHMAP11_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 76 | { AD717X_CHMAP12_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 77 | { AD717X_CHMAP13_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 78 | { AD717X_CHMAP14_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 79 | { AD717X_CHMAP15_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 80 | { AD717X_SETUPCON0_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 81 | { AD717X_SETUPCON1_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 82 | { AD717X_SETUPCON2_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 83 | { AD717X_SETUPCON3_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 84 | { AD717X_SETUPCON4_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 85 | { AD717X_SETUPCON5_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 86 | { AD717X_SETUPCON6_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 87 | { AD717X_SETUPCON7_REG, 0x0000, 2 }, |
mahphalke | 1:1d54b9448386 | 88 | { |
mahphalke | 1:1d54b9448386 | 89 | AD717X_FILTCON0_REG, |
mahphalke | 1:1d54b9448386 | 90 | AD717X_FILT_CONF_REG_ENHFILT(2) | AD717X_FILT_CONF_REG_ODR(10), |
mahphalke | 1:1d54b9448386 | 91 | 2 |
mahphalke | 1:1d54b9448386 | 92 | }, |
mahphalke | 1:1d54b9448386 | 93 | { |
mahphalke | 1:1d54b9448386 | 94 | AD717X_FILTCON1_REG, |
mahphalke | 1:1d54b9448386 | 95 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 96 | 2 |
mahphalke | 1:1d54b9448386 | 97 | }, |
mahphalke | 1:1d54b9448386 | 98 | { |
mahphalke | 1:1d54b9448386 | 99 | AD717X_FILTCON2_REG, |
mahphalke | 1:1d54b9448386 | 100 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 101 | 2 |
mahphalke | 1:1d54b9448386 | 102 | }, |
mahphalke | 1:1d54b9448386 | 103 | { |
mahphalke | 1:1d54b9448386 | 104 | AD717X_FILTCON3_REG, |
mahphalke | 1:1d54b9448386 | 105 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 106 | 2 |
mahphalke | 1:1d54b9448386 | 107 | }, |
mahphalke | 1:1d54b9448386 | 108 | { |
mahphalke | 1:1d54b9448386 | 109 | AD717X_FILTCON4_REG, |
mahphalke | 1:1d54b9448386 | 110 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 111 | 2 |
mahphalke | 1:1d54b9448386 | 112 | }, |
mahphalke | 1:1d54b9448386 | 113 | { |
mahphalke | 1:1d54b9448386 | 114 | AD717X_FILTCON5_REG, |
mahphalke | 1:1d54b9448386 | 115 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 116 | 2 |
mahphalke | 1:1d54b9448386 | 117 | }, |
mahphalke | 1:1d54b9448386 | 118 | { |
mahphalke | 1:1d54b9448386 | 119 | AD717X_FILTCON6_REG, |
mahphalke | 1:1d54b9448386 | 120 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 121 | 2 |
mahphalke | 1:1d54b9448386 | 122 | }, |
mahphalke | 1:1d54b9448386 | 123 | { |
mahphalke | 1:1d54b9448386 | 124 | AD717X_FILTCON7_REG, |
mahphalke | 1:1d54b9448386 | 125 | AD717X_FILT_CONF_REG_ENHFILT(2), |
mahphalke | 1:1d54b9448386 | 126 | 2 |
mahphalke | 1:1d54b9448386 | 127 | }, |
mahphalke | 1:1d54b9448386 | 128 | {AD717X_OFFSET0_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 129 | {AD717X_OFFSET1_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 130 | {AD717X_OFFSET2_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 131 | {AD717X_OFFSET3_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 132 | {AD717X_OFFSET4_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 133 | {AD717X_OFFSET5_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 134 | {AD717X_OFFSET6_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 135 | {AD717X_OFFSET7_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 136 | {AD717X_GAIN0_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 137 | {AD717X_GAIN1_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 138 | {AD717X_GAIN2_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 139 | {AD717X_GAIN3_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 140 | {AD717X_GAIN4_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 141 | {AD717X_GAIN5_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 142 | {AD717X_GAIN6_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 143 | {AD717X_GAIN7_REG, 0, 3 }, |
mahphalke | 1:1d54b9448386 | 144 | }; |
mahphalke | 1:1d54b9448386 | 145 | #endif |
mahphalke | 1:1d54b9448386 | 146 | |
mahphalke | 1:1d54b9448386 | 147 | #define AD7175_8_SLAVE_ID 1 |
mahphalke | 1:1d54b9448386 | 148 | |
mahphalke | 1:1d54b9448386 | 149 | #endif /*__AD7175_8_REGS_H__ */ |