no-OS
ad7746.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef _AD7746_H_
41 #define _AD7746_H_
42 
43 #include <stdint.h>
44 #include <stdbool.h>
45 #include "no-os/util.h"
46 #include "no-os/i2c.h"
47 
48 /* AD7746 Slave Address */
49 #define AD7746_ADDRESS 0x48
50 
51 /* AD7746 Reset command */
52 #define AD7746_RESET_CMD 0xBF
53 
54 /* AD7746 Register Definition */
55 #define AD7746_REG_STATUS 0u
56 #define AD7746_REG_CAP_DATA_HIGH 1u
57 #define AD7746_REG_CAP_DATA_MID 2u
58 #define AD7746_REG_CAP_DATA_LOW 3u
59 #define AD7746_REG_VT_DATA_HIGH 4u
60 #define AD7746_REG_VT_DATA_MID 5u
61 #define AD7746_REG_VT_DATA_LOW 6u
62 #define AD7746_REG_CAP_SETUP 7u
63 #define AD7746_REG_VT_SETUP 8u
64 #define AD7746_REG_EXC_SETUP 9u
65 #define AD7746_REG_CFG 10u
66 #define AD7746_REG_CAPDACA 11u
67 #define AD7746_REG_CAPDACB 12u
68 #define AD7746_REG_CAP_OFFH 13u
69 #define AD7746_REG_CAP_OFFL 14u
70 #define AD7746_REG_CAP_GAINH 15u
71 #define AD7746_REG_CAP_GAINL 16u
72 #define AD7746_REG_VOLT_GAINH 17u
73 #define AD7746_REG_VOLT_GAINL 18u
74 
75 #define AD7746_NUM_REGISTERS (AD7746_REG_VOLT_GAINL + 1u)
76 
77 /* AD7746_REG_STATUS bits */
78 #define AD7746_STATUS_EXCERR_MSK BIT(3)
79 #define AD7746_STATUS_RDY_MSK BIT(2)
80 #define AD7746_STATUS_RDYVT_MSK BIT(1)
81 #define AD7746_STATUS_RDYCAP_MSK BIT(0)
82 
83 /* AD7746_REG_CAP_SETUP bits */
84 #define AD7746_CAPSETUP_CAPEN_MSK BIT(7)
85 #define AD7746_CAPSETUP_CIN2_MSK BIT(6)
86 #define AD7746_CAPSETUP_CAPDIFF_MSK BIT(5)
87 #define AD7746_CAPSETUP_CAPCHOP_MSK BIT(0)
88 
89 /* AD7746_REG_VT_SETUP bits */
90 #define AD7746_VTSETUP_VTEN_MSK BIT(7)
91 #define AD7746_VTSETUP_VTMD_MSK GENMASK(6,5)
92 #define AD7746_VTSETUP_EXTREF_MSK BIT(4)
93 #define AD7746_VTSETUP_VTSHORT_MSK BIT(1)
94 #define AD7746_VTSETUP_VTCHOP_MSK BIT(0)
95 
96 /* AD7746_REG_EXC_SETUP bits */
97 #define AD7746_EXCSETUP_CLKCTRL_MSK BIT(7)
98 #define AD7746_EXCSETUP_EXCON_MSK BIT(6)
99 #define AD7746_EXCSETUP_EXCB_MSK GENMASK(5,4)
100 #define AD7746_EXCSETUP_EXCA_MSK GENMASK(3,2)
101 #define AD7746_EXCSETUP_EXCLVL_MSK GENMASK(1,0)
102 
103 /* AD7746_REG_CFG bits */
104 #define AD7746_CONF_VTF_MSK GENMASK(7,6)
105 #define AD7746_CONF_CAPF_MSK GENMASK(5,3)
106 #define AD7746_CONF_MD_MSK GENMASK(2,0)
107 
108 /* AD7746_REG_CAPDACx bits */
109 #define AD7746_CAPDAC_DACEN_MSK BIT(7)
110 #define AD7746_CAPDAC_DACP_MSK GENMASK(6,0)
111 
112 enum ad7746_id {
116 };
117 
118 struct ad7746_cap {
119  bool capen;
120  bool cin2;
121  bool capdiff;
122  bool capchop;
123 };
124 
130 };
131 
132 struct ad7746_vt {
133  bool vten;
135  bool extref;
136  bool vtshort;
137  bool vtchop;
138 };
139 
144 };
145 
151 };
152 
153 struct ad7746_exc {
154  bool clkctrl;
155  bool excon;
159 };
160 
161 enum ad7746_md {
168 };
169 
171  uint8_t vtf;
172  uint8_t capf;
173  enum ad7746_md md;
174 };
175 
176 struct ad7746_setup {
177  struct ad7746_cap cap;
178  struct ad7746_vt vt;
179  struct ad7746_exc exc;
181 };
182 
185  enum ad7746_id id;
187 };
188 
189 struct ad7746_dev {
191  enum ad7746_id id;
192  uint8_t buf[AD7746_NUM_REGISTERS + 1u];
194 };
195 
196 int32_t ad7746_init(struct ad7746_dev **device,
197  struct ad7746_init_param *init_param);
198 int32_t ad7746_reg_write(struct ad7746_dev *dev, uint8_t reg,
199  uint8_t* data, uint16_t bytes_number);
200 int32_t ad7746_reg_read(struct ad7746_dev *dev, uint8_t reg,
201  uint8_t* data, uint16_t bytes_number);
202 int32_t ad7746_reset(struct ad7746_dev *dev);
203 int32_t ad7746_remove(struct ad7746_dev *dev);
204 int32_t ad7746_set_cap(struct ad7746_dev *dev, struct ad7746_cap cap);
205 int32_t ad7746_set_vt(struct ad7746_dev *dev, struct ad7746_vt vt);
206 int32_t ad7746_set_exc(struct ad7746_dev *dev, struct ad7746_exc exc);
207 int32_t ad7746_set_config(struct ad7746_dev *dev, struct ad7746_config config);
208 int32_t ad7746_set_cap_dac_a(struct ad7746_dev *dev, bool enable, uint8_t code);
209 int32_t ad7746_set_cap_dac_b(struct ad7746_dev *dev, bool enable, uint8_t code);
210 int32_t ad7746_set_cap_offset(struct ad7746_dev *dev, uint16_t offset);
211 int32_t ad7746_set_cap_gain(struct ad7746_dev *dev, uint16_t gain);
212 int32_t ad7746_set_volt_gain(struct ad7746_dev *dev, uint16_t gain);
213 int32_t ad7746_get_vt_data(struct ad7746_dev *dev, uint32_t *vt_data);
214 int32_t ad7746_get_cap_data(struct ad7746_dev *dev, uint32_t *cap_data);
215 int32_t ad7746_calibrate(struct ad7746_dev *dev, enum ad7746_md md);
216 
217 #endif // _AD7746_H
AD7746_CONF_CAPF_MSK
#define AD7746_CONF_CAPF_MSK
Definition: ad7746.h:105
AD7746_VTSETUP_VTMD_MSK
#define AD7746_VTSETUP_VTMD_MSK
Definition: ad7746.h:91
AD7746_STATUS_RDYCAP_MSK
#define AD7746_STATUS_RDYCAP_MSK
Definition: ad7746.h:81
ad7746_cap::cin2
bool cin2
Definition: ad7746.h:120
AD7746_REG_CAP_GAINH
#define AD7746_REG_CAP_GAINH
Definition: ad7746.h:70
ad7746_set_cap_dac_a
int32_t ad7746_set_cap_dac_a(struct ad7746_dev *dev, bool enable, uint8_t code)
Set the DAC code and enable state for EXCA.
Definition: ad7746.c:338
i2c_init
int32_t i2c_init(struct i2c_desc **desc, const struct i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: i2c.c:51
ad7746_set_cap_dac_b
int32_t ad7746_set_cap_dac_b(struct ad7746_dev *dev, bool enable, uint8_t code)
Set the DAC code and enable state for EXCB.
Definition: ad7746.c:362
ad7746_init
int32_t ad7746_init(struct ad7746_dev **device, struct ad7746_init_param *init_param)
Initialize the ad7606 device structure.
Definition: ad7746.c:58
ad7746_set_exc
int32_t ad7746_set_exc(struct ad7746_dev *dev, struct ad7746_exc exc)
Configure the excitation setup register.
Definition: ad7746.c:273
AD7746_EXCLVL_2_DIV_8
@ AD7746_EXCLVL_2_DIV_8
Definition: ad7746.h:148
ad7746_cap
Definition: ad7746.h:118
mdelay
void mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: delay.c:129
ad7746_reg_write
int32_t ad7746_reg_write(struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number)
Writes data into AD7746 registers, starting from the selected register address pointer.
Definition: ad7746.c:120
ad7746_vt::extref
bool extref
Definition: ad7746.h:135
ad7746_vt::vtshort
bool vtshort
Definition: ad7746.h:136
ad7746_set_cap_offset
int32_t ad7746_set_cap_offset(struct ad7746_dev *dev, uint16_t offset)
Set the capacitive offset.
Definition: ad7746.c:399
ad7746_remove
int32_t ad7746_remove(struct ad7746_dev *dev)
Deinitialize the ad7746 driver and free all allocated resources.
Definition: ad7746.c:186
AD7746_CAPSETUP_CAPCHOP_MSK
#define AD7746_CAPSETUP_CAPCHOP_MSK
Definition: ad7746.h:87
AD7746_REG_CFG
#define AD7746_REG_CFG
Definition: ad7746.h:65
AD7746_CAPDAC_DACEN_MSK
#define AD7746_CAPDAC_DACEN_MSK
Definition: ad7746.h:109
AD7746_VTSETUP_VTCHOP_MSK
#define AD7746_VTSETUP_VTCHOP_MSK
Definition: ad7746.h:94
AD7746_EXCLVL_3_DIV_8
@ AD7746_EXCLVL_3_DIV_8
Definition: ad7746.h:149
AD7746_CONF_MD_MSK
#define AD7746_CONF_MD_MSK
Definition: ad7746.h:106
ad7746_remove
int32_t ad7746_remove(struct ad7746_dev *dev)
Deinitialize the ad7746 driver and free all allocated resources.
Definition: ad7746.c:186
ad7746_exc_pin
ad7746_exc_pin
Definition: ad7746.h:140
i2c_desc
Structure holding I2C descriptor.
Definition: i2c.h:81
AD7746_VIN_EXT_VIN
@ AD7746_VIN_EXT_VIN
Definition: ad7746.h:129
AD7746_REG_CAP_SETUP
#define AD7746_REG_CAP_SETUP
Definition: ad7746.h:62
ad7746_dev::setup
struct ad7746_setup setup
Definition: ad7746.h:193
ad7746_set_cap_dac_a
int32_t ad7746_set_cap_dac_a(struct ad7746_dev *dev, bool enable, uint8_t code)
Set the DAC code and enable state for EXCA.
Definition: ad7746.c:338
ad7746_exc::excb
enum ad7746_exc_pin excb
Definition: ad7746.h:156
ad7746_vtmd
ad7746_vtmd
Definition: ad7746.h:125
device
Definition: ad9361_util.h:75
AD7746_EXCLVL_1_DIV_8
@ AD7746_EXCLVL_1_DIV_8
Definition: ad7746.h:147
ad7746_get_vt_data
int32_t ad7746_get_vt_data(struct ad7746_dev *dev, uint32_t *vt_data)
Waits until a conversion on a voltage/temperature channel has been finished and returns the output da...
Definition: ad7746.c:446
AD7746_EXC_PIN_DISABLED
@ AD7746_EXC_PIN_DISABLED
Definition: ad7746.h:141
AD7746_MODE_GAIN_CALIB
@ AD7746_MODE_GAIN_CALIB
Definition: ad7746.h:167
AD7746_MODE_POWERDOWN
@ AD7746_MODE_POWERDOWN
Definition: ad7746.h:165
ad7746_reset
int32_t ad7746_reset(struct ad7746_dev *dev)
Resets the AD7746.
Definition: ad7746.c:170
ad7746_exclvl
ad7746_exclvl
Definition: ad7746.h:146
ad7746_exc::exca
enum ad7746_exc_pin exca
Definition: ad7746.h:157
ad7746_set_cap
int32_t ad7746_set_cap(struct ad7746_dev *dev, struct ad7746_cap cap)
Configure the capacitive setup register.
Definition: ad7746.c:208
AD7746_MODE_CONT
@ AD7746_MODE_CONT
Definition: ad7746.h:163
AD7746_VTSETUP_VTEN_MSK
#define AD7746_VTSETUP_VTEN_MSK
Definition: ad7746.h:90
ad7746_get_vt_data
int32_t ad7746_get_vt_data(struct ad7746_dev *dev, uint32_t *vt_data)
Waits until a conversion on a voltage/temperature channel has been finished and returns the output da...
Definition: ad7746.c:446
ad7746_cap::capen
bool capen
Definition: ad7746.h:119
AD7746_VTSETUP_VTSHORT_MSK
#define AD7746_VTSETUP_VTSHORT_MSK
Definition: ad7746.h:93
ad7746_dev
Definition: ad7746.h:189
ad7746_exc::excon
bool excon
Definition: ad7746.h:155
ad7746_calibrate
int32_t ad7746_calibrate(struct ad7746_dev *dev, enum ad7746_md md)
Perform offset/gain calibration.
Definition: ad7746.c:529
AD7746_MODE_SINGLE
@ AD7746_MODE_SINGLE
Definition: ad7746.h:164
ad7746_setup
Definition: ad7746.h:176
AD7746_CAPSETUP_CAPEN_MSK
#define AD7746_CAPSETUP_CAPEN_MSK
Definition: ad7746.h:84
ID_AD7746
@ ID_AD7746
Definition: ad7746.h:114
ad7746_exc::clkctrl
bool clkctrl
Definition: ad7746.h:154
AD7746_CONF_VTF_MSK
#define AD7746_CONF_VTF_MSK
Definition: ad7746.h:104
AD7746_VTMD_VDD_MON
@ AD7746_VTMD_VDD_MON
Definition: ad7746.h:128
ad7746.h
Header file of AD7746 Driver.
ad7746_config
Definition: ad7746.h:170
ad7746_init_param::setup
struct ad7746_setup setup
Definition: ad7746.h:186
ad7746_init
int32_t ad7746_init(struct ad7746_dev **device, struct ad7746_init_param *init_param)
Initialize the ad7606 device structure.
Definition: ad7746.c:58
AD7746_MODE_IDLE
@ AD7746_MODE_IDLE
Definition: ad7746.h:162
AD7746_EXCSETUP_EXCA_MSK
#define AD7746_EXCSETUP_EXCA_MSK
Definition: ad7746.h:100
i2c_read
int32_t i2c_read(struct i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Read data from slave device.
Definition: i2c.c:104
ad7746_set_vt
int32_t ad7746_set_vt(struct ad7746_dev *dev, struct ad7746_vt vt)
Configure the voltage/temperature setup register.
Definition: ad7746.c:240
ad7746_init_param
Definition: ad7746.h:183
ad7746_set_cap_gain
int32_t ad7746_set_cap_gain(struct ad7746_dev *dev, uint16_t gain)
Set the capacitive gain.
Definition: ad7746.c:414
AD7746_EXCSETUP_EXCON_MSK
#define AD7746_EXCSETUP_EXCON_MSK
Definition: ad7746.h:98
AD7746_CAPDAC_DACP_MSK
#define AD7746_CAPDAC_DACP_MSK
Definition: ad7746.h:110
AD7746_REG_CAPDACB
#define AD7746_REG_CAPDACB
Definition: ad7746.h:67
AD7746_REG_VT_DATA_HIGH
#define AD7746_REG_VT_DATA_HIGH
Definition: ad7746.h:59
ad7746_dev::id
enum ad7746_id id
Definition: ad7746.h:191
ad7746_exc::exclvl
enum ad7746_exclvl exclvl
Definition: ad7746.h:158
ad7746_set_cap_gain
int32_t ad7746_set_cap_gain(struct ad7746_dev *dev, uint16_t gain)
Set the capacitive gain.
Definition: ad7746.c:414
ad7746_init_param::i2c_init
struct i2c_init_param i2c_init
Definition: ad7746.h:184
ad7746_set_config
int32_t ad7746_set_config(struct ad7746_dev *dev, struct ad7746_config config)
Set the configuration register.
Definition: ad7746.c:306
AD7746_RESET_CMD
#define AD7746_RESET_CMD
Definition: ad7746.h:52
ad7746_vt
Definition: ad7746.h:132
ad7746_setup::exc
struct ad7746_exc exc
Definition: ad7746.h:179
ad7746_setup::config
struct ad7746_config config
Definition: ad7746.h:180
AD7746_REG_VOLT_GAINH
#define AD7746_REG_VOLT_GAINH
Definition: ad7746.h:72
ad7746_set_volt_gain
int32_t ad7746_set_volt_gain(struct ad7746_dev *dev, uint16_t gain)
Set the voltage gain.
Definition: ad7746.c:429
error.h
Error codes definition.
AD7746_REG_CAPDACA
#define AD7746_REG_CAPDACA
Definition: ad7746.h:66
ad7746_id
ad7746_id
Definition: ad7746.h:112
AD7746_VTMD_EXT_TEMP
@ AD7746_VTMD_EXT_TEMP
Definition: ad7746.h:127
AD7746_REG_EXC_SETUP
#define AD7746_REG_EXC_SETUP
Definition: ad7746.h:64
AD7746_CAPSETUP_CAPDIFF_MSK
#define AD7746_CAPSETUP_CAPDIFF_MSK
Definition: ad7746.h:86
ad7746_set_vt
int32_t ad7746_set_vt(struct ad7746_dev *dev, struct ad7746_vt vt)
Configure the voltage/temperature setup register.
Definition: ad7746.c:240
ad7746_set_cap_dac_b
int32_t ad7746_set_cap_dac_b(struct ad7746_dev *dev, bool enable, uint8_t code)
Set the DAC code and enable state for EXCB.
Definition: ad7746.c:362
ad7746_set_volt_gain
int32_t ad7746_set_volt_gain(struct ad7746_dev *dev, uint16_t gain)
Set the voltage gain.
Definition: ad7746.c:429
delay.h
Header file of Delay functions.
ad7746_set_exc
int32_t ad7746_set_exc(struct ad7746_dev *dev, struct ad7746_exc exc)
Configure the excitation setup register.
Definition: ad7746.c:273
ad7746_init_param::id
enum ad7746_id id
Definition: ad7746.h:185
ad7746_config::md
enum ad7746_md md
Definition: ad7746.h:173
AD7746_REG_CAP_DATA_HIGH
#define AD7746_REG_CAP_DATA_HIGH
Definition: ad7746.h:56
ad7746_reg_read
int32_t ad7746_reg_read(struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number)
Reads data from AD7746 registers, starting from the selected register address pointer.
Definition: ad7746.c:145
ad7746_reg_write
int32_t ad7746_reg_write(struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number)
Writes data into AD7746 registers, starting from the selected register address pointer.
Definition: ad7746.c:120
ad7746_set_cap_offset
int32_t ad7746_set_cap_offset(struct ad7746_dev *dev, uint16_t offset)
Set the capacitive offset.
Definition: ad7746.c:399
i2c_remove
int32_t i2c_remove(struct i2c_desc *desc)
Free the resources allocated by i2c_init().
Definition: i2c.c:70
AD7746_EXC_PIN_INVERTED
@ AD7746_EXC_PIN_INVERTED
Definition: ad7746.h:142
udelay
void udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: delay.c:117
ad7746_calibrate
int32_t ad7746_calibrate(struct ad7746_dev *dev, enum ad7746_md md)
Perform offset/gain calibration.
Definition: ad7746.c:529
ad7746_dev::buf
uint8_t buf[AD7746_NUM_REGISTERS+1u]
Definition: ad7746.h:192
ID_AD7747
@ ID_AD7747
Definition: ad7746.h:115
ad7746_reg_read
int32_t ad7746_reg_read(struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number)
Reads data from AD7746 registers, starting from the selected register address pointer.
Definition: ad7746.c:145
AD7746_REG_VT_SETUP
#define AD7746_REG_VT_SETUP
Definition: ad7746.h:63
AD7746_EXCLVL_4_DIV_8
@ AD7746_EXCLVL_4_DIV_8
Definition: ad7746.h:150
ad7746_cap::capchop
bool capchop
Definition: ad7746.h:122
ad7746_config::capf
uint8_t capf
Definition: ad7746.h:172
ad7746_cap::capdiff
bool capdiff
Definition: ad7746.h:121
ad7746_setup::vt
struct ad7746_vt vt
Definition: ad7746.h:178
ad7746_vt::vten
bool vten
Definition: ad7746.h:133
ad7746_config::vtf
uint8_t vtf
Definition: ad7746.h:171
field_prep
uint32_t field_prep(uint32_t mask, uint32_t val)
NULL
#define NULL
Definition: wrapper.h:64
SUCCESS
#define SUCCESS
Definition: error.h:52
AD7746_REG_CAP_OFFH
#define AD7746_REG_CAP_OFFH
Definition: ad7746.h:68
ad7746_exc
Definition: ad7746.h:153
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
AD7746_NUM_REGISTERS
#define AD7746_NUM_REGISTERS
Definition: ad7746.h:75
ad7746_set_cap
int32_t ad7746_set_cap(struct ad7746_dev *dev, struct ad7746_cap cap)
Configure the capacitive setup register.
Definition: ad7746.c:208
i2c_write
int32_t i2c_write(struct i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Write data to slave device.
Definition: i2c.c:85
ad7746_setup::cap
struct ad7746_cap cap
Definition: ad7746.h:177
ad7746_get_cap_data
int32_t ad7746_get_cap_data(struct ad7746_dev *dev, uint32_t *cap_data)
Waits until a conversion on the capacitive channel has been finished and returns the output data.
Definition: ad7746.c:488
i2c_init_param
Structure holding the parameters for I2C initialization.
Definition: i2c.h:64
AD7746_EXCSETUP_EXCB_MSK
#define AD7746_EXCSETUP_EXCB_MSK
Definition: ad7746.h:99
AD7746_EXCSETUP_CLKCTRL_MSK
#define AD7746_EXCSETUP_CLKCTRL_MSK
Definition: ad7746.h:97
ad7746_md
ad7746_md
Definition: ad7746.h:161
AD7746_VTSETUP_EXTREF_MSK
#define AD7746_VTSETUP_EXTREF_MSK
Definition: ad7746.h:92
ad7746_vt::vtchop
bool vtchop
Definition: ad7746.h:137
AD7746_MODE_OFFSET_CALIB
@ AD7746_MODE_OFFSET_CALIB
Definition: ad7746.h:166
i2c.h
Header file of I2C Interface.
util.h
Implementation of utility functions.
AD7746_CAPSETUP_CIN2_MSK
#define AD7746_CAPSETUP_CIN2_MSK
Definition: ad7746.h:85
AD7746_STATUS_RDYVT_MSK
#define AD7746_STATUS_RDYVT_MSK
Definition: ad7746.h:80
ad7746_get_cap_data
int32_t ad7746_get_cap_data(struct ad7746_dev *dev, uint32_t *cap_data)
Waits until a conversion on the capacitive channel has been finished and returns the output data.
Definition: ad7746.c:488
ad7746_reset
int32_t ad7746_reset(struct ad7746_dev *dev)
Resets the AD7746.
Definition: ad7746.c:170
AD7746_VTMD_INT_TEMP
@ AD7746_VTMD_INT_TEMP
Definition: ad7746.h:126
AD7746_EXC_PIN_NORMAL
@ AD7746_EXC_PIN_NORMAL
Definition: ad7746.h:143
ad7746_vt::vtmd
enum ad7746_vtmd vtmd
Definition: ad7746.h:134
AD7746_REG_STATUS
#define AD7746_REG_STATUS
Definition: ad7746.h:55
ID_AD7745
@ ID_AD7745
Definition: ad7746.h:113
ad7746_set_config
int32_t ad7746_set_config(struct ad7746_dev *dev, struct ad7746_config config)
Set the configuration register.
Definition: ad7746.c:306
ad7746_dev::i2c_dev
i2c_desc * i2c_dev
Definition: ad7746.h:190
AD7746_EXCSETUP_EXCLVL_MSK
#define AD7746_EXCSETUP_EXCLVL_MSK
Definition: ad7746.h:101