Debian Codegraph @

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

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