Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/drivers/ad717x/ad7173_8_regs.h

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