no-OS
ad717x.h
Go to the documentation of this file.
1 /**************************************************************************/
36 #ifndef __AD717X_H__
37 #define __AD717X_H__
38 
39 /******************************************************************************/
40 /***************************** Include Files **********************************/
41 /******************************************************************************/
42 #include <stdint.h>
43 #include "no_os_spi.h"
44 #include "no_os_util.h"
45 #include <stdbool.h>
46 
47 /******************************************************************************/
48 /*************************** Types Declarations *******************************/
49 /******************************************************************************/
50 /* Total Number of Setups in the AD717x-AD411x family */
51 #define AD717x_MAX_SETUPS 8
52 /* Maximum number of channels in the AD717x-AD411x family */
53 #define AD717x_MAX_CHANNELS 16
54 
55 /*
56  *@enum ad717x_mode
57  *@details ADC Modes of Operation
58 **/
60  CONTINUOUS, /* Continuous Mode- Default */
61  SINGLE, /* Single Mode */
62  STANDBY, /* Stand-by Mode */
63  POWER_DOWN, /* Power Down Mode */
64  INTERNAL_OFFSET_CALIB, /* Internal Offset Calibration*/
65  INTERNAL_GAIN_CALIB, /* Internal Gain Calibration */
66  SYS_OFFSET_CALIB, /* System Offset Calibraion */
67  SYS_GAIN_CALIB /* System Gain Calibration */
68 };
69 
70 /*
71  *@enum ad717x_reference_source
72  *@details Type of ADC Reference
73 **/
75  EXTERNAL_REF = 0x0, /* External Reference REF+/-*/
76  INTERNAL_REF = 0x2, /* Internal 2.5V Reference */
77  AVDD_AVSS = 0x3 /* AVDD - AVSS */
78 };
79 
80 /*
81  *@enum ad717x_analog_input_pairs
82  *@details Analog Input Pairs to channels for the AD411X Family
83 **/
85  VIN0_VIN1 = 0x1,
86  VIN0_VINCOM = 0x10,
87  VIN1_VIN0 = 0x20,
88  VIN1_VINCOM = 0x30,
89  VIN2_VIN3 = 0x43,
90  VIN2_VINCOM = 0x50,
91  VIN3_VIN2 = 0x62,
92  VIN3_VINCOM = 0x70,
93  VIN4_VIN5 = 0x85,
94  VIN4_VINCOM = 0x90,
95  VIN5_VIN4 = 0xA4,
96  VIN5_VINCOM = 0xB0,
97  VIN6_VIN7 = 0xC7,
98  VIN6_VINCOM = 0xD0,
99  VIN7_VIN6 = 0xE6,
100  VIN7_VINCOM = 0xF0,
101  IIN3P_IIN3M = 0x18B,
102  IIN2P_IIN2M = 0x1AA,
103  IIN1P_IIN1M = 0x1C9,
104  IIN0P_IIN0M = 0x1E8,
106  REFERENCE = 0x2B6
107 };
108 
109 /*
110  *@enum ad717x_analog_input
111  *@details Positive/Negative Analog Input to channels for the AD717x Family
112 **/
114  AIN0 = 0x0,
115  AIN1 = 0x1,
116  AIN2 = 0x2,
117  AIN3 = 0x3,
118  AIN4 = 0x4,
121  AVDD_AVSS_P = 0x13,
122  AVDD_AVSS_M = 0x14,
123  REF_P = 0x15,
124  REF_M = 0x16
125 };
126 
127 /*
128  *@union ad717x_analog_inputs
129  *@details Types of Analog Inputs
130 **/
133  struct {
136  } ainp;
137 };
138 
139 /*
140  *@enum ad717x_device_type
141  *@details AD717x-AD411x Device definitions
142 **/
156 };
157 
158 /*
159  *@struct ad717x_channel_setup
160  *@details Channel setup
161 **/
164  bool ref_buff;
167 };
168 
169 /*
170  *@enum ad717x_enhfilt
171  *@details Post filter for enhanced rejection
172 **/
178 };
179 
180 /*
181  *@enum ad717x_order
182  *@details Order of digital filter
183 **/
185  sinc5_sinc1 = 0x0,
186  sinc3 = 0x3
187 };
188 
189 /*
190  *@enum ad717x_odr
191  *@details Output data rate
192 **/
194  sps_31250_a = 0x0,
195  sps31250_b = 0x1,
196  sps_31250_c = 0x2,
197  sps_31250_d = 0x3,
198  sps31250_e = 0x4,
199  sps_31250_f = 0x5,
200  sps_15625 = 0x6,
201  sps_10417 = 0x7,
202  sps_5208 = 0x8,
203  sps_2957 = 0x9,
204  sps_1007 = 0xA,
205  sps_503 = 0xB,
206  sps_381 = 0xC,
207  sps_200 = 0xD,
208  sps_100 = 0xE,
209  sps_59 = 0xF,
210  sps_49 = 0x10,
211  sps_20 = 0x11,
212  sps_16 = 0x12,
213  sps_10 = 0x13,
214  sps_5 = 0x14,
215  sps_2p5 = 0x15,
216  sps_1p25 = 0x16
217 };
218 
219 /*
220  *@struct ad717x_filtcon
221  *@details Filter configuration
222 **/
224  bool sinc3_map;
225  bool enhfilten;
229 };
230 
231 /*
232  *@struct ad717x_channel_map
233  *@details Channel mapping
234 **/
237  uint8_t setup_sel;
239 };
240 
241 typedef enum {
246 
248 typedef struct {
249  int32_t addr;
250  int32_t value;
251  int32_t size;
252 } ad717x_st_reg;
253 
254 /*
255  * The structure describes the device and is used with the ad717x driver.
256  * @slave_select_id: The ID of the Slave Select to be passed to the SPI calls.
257  * @regs: A reference to the register list of the device that the user must
258  * provide when calling the Setup() function.
259  * @num_regs: The length of the register list.
260  * @userCRC: Error check type to use on SPI transfers.
261  */
262 typedef struct {
263  /* SPI */
265  /* Device Settings */
267  uint8_t num_regs;
269  /* Active Device */
270  enum ad717x_device_type active_device;
271  /* Reference enable */
272  bool ref_en;
273  /* Number of channels */
274  uint8_t num_channels;
275  /* Setups */
277  /* Channel Mapping*/
279  /* Gain */
280  uint32_t pga[AD717x_MAX_SETUPS];
281  /* Filter */
282  struct ad717x_filtcon filter_configuration[AD717x_MAX_SETUPS];
283  /* ADC Mode */
284  enum ad717x_mode mode;
285 } ad717x_dev;
286 
287 typedef struct {
288  /* SPI */
290  /* Device Settings */
292  uint8_t num_regs;
293  /* Active Device */
294  enum ad717x_device_type active_device;
295  /* Reference Enable */
296  bool ref_en;
297  /* Number of Channels */
298  uint8_t num_channels;
299  /* Number of Setups */
300  uint8_t num_setups;
301  /* Channel Mapping */
303  /* Setups */
305  /* Gain */
306  uint32_t pga[AD717x_MAX_SETUPS];
307  /* Filter Configuration */
308  struct ad717x_filtcon filter_configuration[AD717x_MAX_SETUPS];
309  /* ADC Mode */
310  enum ad717x_mode mode;
312 
313 /*****************************************************************************/
314 /***************** AD717X Register Definitions *******************************/
315 /*****************************************************************************/
316 
317 /* AD717X Register Map */
318 #define AD717X_COMM_REG 0x00
319 #define AD717X_STATUS_REG 0x00
320 #define AD717X_ADCMODE_REG 0x01
321 #define AD717X_IFMODE_REG 0x02
322 #define AD717X_REGCHECK_REG 0x03
323 #define AD717X_DATA_REG 0x04
324 #define AD717X_GPIOCON_REG 0x06
325 #define AD717X_ID_REG 0x07
326 #define AD717X_CHMAP0_REG 0x10
327 #define AD717X_CHMAP1_REG 0x11
328 #define AD717X_CHMAP2_REG 0x12
329 #define AD717X_CHMAP3_REG 0x13
330 #define AD717X_CHMAP4_REG 0x14
331 #define AD717X_CHMAP5_REG 0x15
332 #define AD717X_CHMAP6_REG 0x16
333 #define AD717X_CHMAP7_REG 0x17
334 #define AD717X_CHMAP8_REG 0x18
335 #define AD717X_CHMAP9_REG 0x19
336 #define AD717X_CHMAP10_REG 0x1A
337 #define AD717X_CHMAP11_REG 0x1B
338 #define AD717X_CHMAP12_REG 0x1C
339 #define AD717X_CHMAP13_REG 0x1D
340 #define AD717X_CHMAP14_REG 0x1E
341 #define AD717X_CHMAP15_REG 0x1F
342 #define AD717X_SETUPCON0_REG 0x20
343 #define AD717X_SETUPCON1_REG 0x21
344 #define AD717X_SETUPCON2_REG 0x22
345 #define AD717X_SETUPCON3_REG 0x23
346 #define AD717X_SETUPCON4_REG 0x24
347 #define AD717X_SETUPCON5_REG 0x25
348 #define AD717X_SETUPCON6_REG 0x26
349 #define AD717X_SETUPCON7_REG 0x27
350 #define AD717X_FILTCON0_REG 0x28
351 #define AD717X_FILTCON1_REG 0x29
352 #define AD717X_FILTCON2_REG 0x2A
353 #define AD717X_FILTCON3_REG 0x2B
354 #define AD717X_FILTCON4_REG 0x2C
355 #define AD717X_FILTCON5_REG 0x2D
356 #define AD717X_FILTCON6_REG 0x2E
357 #define AD717X_FILTCON7_REG 0x2F
358 #define AD717X_OFFSET0_REG 0x30
359 #define AD717X_OFFSET1_REG 0x31
360 #define AD717X_OFFSET2_REG 0x32
361 #define AD717X_OFFSET3_REG 0x33
362 #define AD717X_OFFSET4_REG 0x34
363 #define AD717X_OFFSET5_REG 0x35
364 #define AD717X_OFFSET6_REG 0x36
365 #define AD717X_OFFSET7_REG 0x37
366 #define AD717X_GAIN0_REG 0x38
367 #define AD717X_GAIN1_REG 0x39
368 #define AD717X_GAIN2_REG 0x3A
369 #define AD717X_GAIN3_REG 0x3B
370 #define AD717X_GAIN4_REG 0x3C
371 #define AD717X_GAIN5_REG 0x3D
372 #define AD717X_GAIN6_REG 0x3E
373 #define AD717X_GAIN7_REG 0x3F
374 
375 /* Communication Register bits */
376 #define AD717X_COMM_REG_WEN (0 << 7)
377 #define AD717X_COMM_REG_WR (0 << 6)
378 #define AD717X_COMM_REG_RD (1 << 6)
379 #define AD717X_COMM_REG_RA(x) ((x) & 0x3F)
380 
381 /* Status Register bits */
382 #define AD717X_STATUS_REG_RDY (1 << 7)
383 #define AD717X_STATUS_REG_ADC_ERR (1 << 6)
384 #define AD717X_STATUS_REG_CRC_ERR (1 << 5)
385 #define AD717X_STATUS_REG_REG_ERR (1 << 4)
386 #define AD717X_STATUS_REG_CH(x) ((x) & 0x0F)
387 
388 /* ADC Mode Register bits */
389 #define AD717X_ADCMODE_REG_REF_EN (1 << 15)
390 #define AD717X_ADCMODE_SING_CYC (1 << 13)
391 #define AD717X_ADCMODE_REG_DELAY(x) (((x) & 0x7) << 8)
392 #define AD717X_ADCMODE_REG_MODE(x) (((x) & 0x7) << 4)
393 #define AD717X_ADCMODE_REG_CLKSEL(x) (((x) & 0x3) << 2)
394 
395 /* ADC Mode Register additional bits for AD7172-2, AD7172-4, AD4111 and AD4112 */
396 #define AD717X_ADCMODE_REG_HIDE_DELAY (1 << 14)
397 
398 /* Interface Mode Register bits */
399 #define AD717X_IFMODE_REG_ALT_SYNC (1 << 12)
400 #define AD717X_IFMODE_REG_IOSTRENGTH (1 << 11)
401 #define AD717X_IFMODE_REG_DOUT_RESET (1 << 8)
402 #define AD717X_IFMODE_REG_CONT_READ (1 << 7)
403 #define AD717X_IFMODE_REG_DATA_STAT (1 << 6)
404 #define AD717X_IFMODE_REG_REG_CHECK (1 << 5)
405 #define AD717X_IFMODE_REG_XOR_EN (0x01 << 2)
406 #define AD717X_IFMODE_REG_CRC_EN (0x02 << 2)
407 #define AD717X_IFMODE_REG_XOR_STAT(x) (((x) & AD717X_IFMODE_REG_XOR_EN) == AD717X_IFMODE_REG_XOR_EN)
408 #define AD717X_IFMODE_REG_CRC_STAT(x) (((x) & AD717X_IFMODE_REG_CRC_EN) == AD717X_IFMODE_REG_CRC_EN)
409 #define AD717X_IFMODE_REG_DATA_WL16 (1 << 0)
410 
411 /* Interface Mode Register additional bits for AD717x family, not for AD411x */
412 #define AD717X_IFMODE_REG_HIDE_DELAY (1 << 10)
413 
414 /* GPIO Configuration Register bits */
415 #define AD717X_GPIOCON_REG_MUX_IO (1 << 12)
416 #define AD717X_GPIOCON_REG_SYNC_EN (1 << 11)
417 #define AD717X_GPIOCON_REG_ERR_EN(x) (((x) & 0x3) << 9)
418 #define AD717X_GPIOCON_REG_ERR_DAT (1 << 8)
419 #define AD717X_GPIOCON_REG_IP_EN1 (1 << 5)
420 #define AD717X_GPIOCON_REG_IP_EN0 (1 << 4)
421 #define AD717X_GPIOCON_REG_OP_EN1 (1 << 3)
422 #define AD717X_GPIOCON_REG_OP_EN0 (1 << 2)
423 #define AD717X_GPIOCON_REG_DATA1 (1 << 1)
424 #define AD717X_GPIOCON_REG_DATA0 (1 << 0)
425 
426 /* GPIO Configuration Register additional bits for AD7172-4, AD7173-8 */
427 #define AD717X_GPIOCON_REG_GP_DATA3 (1 << 7)
428 #define AD717X_GPIOCON_REG_GP_DATA2 (1 << 6)
429 #define AD717X_GPIOCON_REG_GP_DATA1 (1 << 1)
430 #define AD717X_GPIOCON_REG_GP_DATA0 (1 << 0)
431 
432 /* GPIO Configuration Register additional bits for AD7173-8 */
433 #define AD717X_GPIOCON_REG_PDSW (1 << 14)
434 #define AD717X_GPIOCON_REG_OP_EN2_3 (1 << 13)
435 
436 /* GPIO Configuration Register additional bits for AD4111, AD4112, AD4114, AD4115 */
437 #define AD4111_GPIOCON_REG_OP_EN0_1 (1 << 13)
438 #define AD4111_GPIOCON_REG_DATA1 (1 << 7)
439 #define AD4111_GPIOCON_REG_DATA0 (1 << 6)
440 
441 /* GPIO Configuration Register additional bits for AD4116 */
442 #define AD4116_GPIOCON_REG_OP_EN2_3 (1 << 13)
443 #define AD4116_GPIOCON_REG_DATA3 (1 << 7)
444 #define AD4116_GPIOCON_REG_DATA2 (1 << 6)
445 
446 /* GPIO Configuration Register additional bits for AD4111 */
447 #define AD4111_GPIOCON_REG_OW_EN (1 << 12)
448 
449 /* Channel Map Register 0-3 bits */
450 #define AD717X_CHMAP_REG_CH_EN (1 << 15)
451 #define AD717X_CHMAP_REG_SETUP_SEL(x) (((x) & 0x7) << 12)
452 #define AD717X_CHMAP_REG_AINPOS(x) (((x) & 0x1F) << 5)
453 #define AD717X_CHMAP_REG_AINNEG(x) (((x) & 0x1F) << 0)
454 
455 /* Channel Map Register additional bits for AD4111, AD4112, AD4114, AD4115, AD4116 */
456 #define AD4111_CHMAP_REG_INPUT(x) (((x) & 0x3FF) << 0)
457 
458 /* Setup Configuration Register 0-3 bits */
459 #define AD717X_SETUP_CONF_REG_BI_UNIPOLAR (1 << 12)
460 #define AD717X_SETUP_CONF_REG_REF_SEL(x) (((x) & 0x3) << 4)
461 
462 /* Setup Configuration Register additional bits for AD7173-8 */
463 #define AD717X_SETUP_CONF_REG_REF_BUF(x) (((x) & 0x3) << 10)
464 #define AD717X_SETUP_CONF_REG_AIN_BUF(x) (((x) & 0x3) << 8)
465 #define AD717X_SETUP_CONF_REG_BURNOUT_EN (1 << 7)
466 #define AD717X_SETUP_CONF_REG_BUFCHOPMAX (1 << 6)
467 
468 /* Setup Configuration Register additional bits for AD7172-2, AD7172-4, AD7175-2 */
469 #define AD717X_SETUP_CONF_REG_REFBUF_P (1 << 11)
470 #define AD717X_SETUP_CONF_REG_REFBUF_N (1 << 10)
471 #define AD717X_SETUP_CONF_REG_AINBUF_P (1 << 9)
472 #define AD717X_SETUP_CONF_REG_AINBUF_N (1 << 8)
473 
474 /* Setup Configuration Register additional bits for AD4111, AD4112, AD4114, AD4115, AD4116 */
475 #define AD4111_SETUP_CONF_REG_REFPOS_BUF (1 << 11)
476 #define AD4111_SETUP_CONF_REG_REFNEG_BUF (1 << 10)
477 #define AD4111_SETUP_CONF_REG_AIN_BUF(x) (((x) & 0x3) << 8)
478 #define AD4111_SETUP_CONF_REG_BUFCHOPMAX (1 << 6)
479 
480 /* Filter Configuration Register 0-3 bits */
481 #define AD717X_FILT_CONF_REG_SINC3_MAP (1 << 15)
482 #define AD717X_FILT_CONF_REG_ENHFILTEN (1 << 11)
483 #define AD717X_FILT_CONF_REG_ENHFILT(x) (((x) & 0x7) << 8)
484 #define AD717X_FILT_CONF_REG_ORDER(x) (((x) & 0x3) << 5)
485 #define AD717X_FILT_CONF_REG_ODR(x) (((x) & 0x1F) << 0)
486 
487 /* ID register mask for relevant bits */
488 #define AD717X_ID_REG_MASK 0xFFF0
489 /* AD7172-2 ID */
490 #define AD7172_2_ID_REG_VALUE 0x00D0
491 /* AD7172-4 ID */
492 #define AD7172_4_ID_REG_VALUE 0x2050
493 /* AD7173-8 ID */
494 #define AD7173_8_ID_REG_VALUE 0x30D0
495 /* AD7175-2 ID */
496 #define AD7175_2_ID_REG_VALUE 0x0CD0
497 /* AD7175-8 ID */
498 #define AD7175_8_ID_REG_VALUE 0x3CD0
499 /* AD7176-2 ID */
500 #define AD7176_2_ID_REG_VALUE 0x0C90
501 /* AD7177-2 ID */
502 #define AD7177_2_ID_REG_VALUE 0x4FD0
503 /* AD4111, AD4112 IDs */
504 #define AD411X_ID_REG_VALUE 0x30D0
505 /* AD4114, AD4115 IDs */
506 #define AD4114_5_ID_REG_VALUE 0x31D0
507 /* AD4116 ID */
508 #define AD4116_ID_REG_VALUE 0x34D0
509 
510 /*****************************************************************************/
511 /******************* AD717X Constants ****************************************/
512 /*****************************************************************************/
513 #define AD717X_CRC8_POLYNOMIAL_REPRESENTATION 0x07 /* x8 + x2 + x + 1 */
514 /* Timeout for ADC Conversion */
515 #define AD717X_CONV_TIMEOUT 10000
516 
517 #define AD717x_CHANNEL_INPUT_MASK NO_OS_GENMASK(9,0)
518 #define AD717X_CHMAP_REG_SETUP_SEL_MSK NO_OS_GENMASK(14,12)
519 #define AD717X_CHMAP_REG_AINPOS_MSK NO_OS_GENMASK(9,5)
520 #define AD717X_CHMAP_REG_AINNEG_MSK NO_OS_GENMASK(4,0)
521 #define AD717X_ADCMODE_REG_MODE_MSK NO_OS_GENMASK(6,4)
522 #define AD717X_SETUP_CONF_REG_REF_SEL_MSK NO_OS_GENMASK(5,4)
523 #define AD717x_ODR_MSK NO_OS_GENMASK(4,0)
524 
525 /*****************************************************************************/
526 /************************ Functions Declarations *****************************/
527 /*****************************************************************************/
528 
531  uint8_t reg_address);
532 
535  uint8_t addr);
536 
539  uint8_t);
540 
542 int32_t AD717X_Reset(ad717x_dev *device);
543 
546  uint32_t timeout);
547 
550  int32_t* pData);
551 
555 
557 uint8_t AD717X_ComputeCRC8(uint8_t* pBuf,
558  uint8_t bufSize);
559 
561 uint8_t AD717X_ComputeXOR8(uint8_t * pBuf,
562  uint8_t bufSize);
563 
566 
568 int32_t AD717X_Init(ad717x_dev **device,
570 
572 int32_t AD717X_remove(ad717x_dev *dev);
573 
574 /* Enable/Disable Channels */
575 int ad717x_set_channel_status(ad717x_dev *device, uint8_t channel_id,
576  bool channel_status);
577 /* Set ADC Mode */
579 
580 /* Configure Analog inputs to channel */
581 int ad717x_connect_analog_input(ad717x_dev *device, uint8_t channel_id,
582  union ad717x_analog_inputs analog_input);
583 
584 /* Assign setup to channel */
585 int ad717x_assign_setup(ad717x_dev *device, uint8_t channel_id,
586  uint8_t setup);
587 
588 /* Assign polarity to setup*/
590  uint8_t setup_id);
591 
592 /* Assign reference source to setup */
594  enum ad717x_reference_source ref_source, uint8_t setup_id);
595 
596 /* Enable/Disable input and reference buffers to setup */
597 int ad717x_enable_buffers(ad717x_dev* device, bool inbuf_en,
598  bool refbuf_en, uint8_t setup_id);
599 
600 /* Perform single conversion and read sample */
601 int ad717x_single_read(ad717x_dev* device, uint8_t id,
602  int32_t *adc_raw_data);
603 
604 /* Configure device ODR */
605 int32_t ad717x_configure_device_odr(ad717x_dev *dev, uint8_t filtcon_id,
606  uint8_t odr_sel);
607 
608 #endif /* __AD717X_H__ */
ad717x_st_reg::value
int32_t value
Definition: ad717x.h:250
AD717X_CRC8_POLYNOMIAL_REPRESENTATION
#define AD717X_CRC8_POLYNOMIAL_REPRESENTATION
Definition: ad717x.h:513
sps_2957
@ sps_2957
Definition: ad717x.h:203
AIN2
@ AIN2
Definition: ad717x.h:116
AD717X_ADCMODE_REG_MODE
#define AD717X_ADCMODE_REG_MODE(x)
Definition: ad717x.h:392
ad717x_dev::active_device
enum ad717x_device_type active_device
Definition: ad717x.h:270
AVDD_AVSS_P
@ AVDD_AVSS_P
Definition: ad717x.h:121
ID_AD7177_2
@ ID_AD7177_2
Definition: ad717x.h:155
timeout
uint32_t timeout
Definition: ad413x.c:49
ad717x_init_param::regs
ad717x_st_reg * regs
Definition: ad717x.h:291
no_os_alloc.h
ad717x_enable_input_buffer
int ad717x_enable_input_buffer(ad717x_dev *device, bool inbuf_en, bool refbuf_en, uint8_t setup_id)
Enable Input Buffer.
Definition: ad717x.c:302
AD717X_USE_XOR
@ AD717X_USE_XOR
Definition: ad717x.h:244
ad717x_analog_inputs::pos_analog_input
enum ad717x_analog_input pos_analog_input
Definition: ad717x.h:134
IIN2P_IIN2M
@ IIN2P_IIN2M
Definition: ad717x.h:102
sps_31250_a
@ sps_31250_a
Definition: ad717x.h:194
AD717X_SETUP_CONF_REG_REF_SEL
#define AD717X_SETUP_CONF_REG_REF_SEL(x)
Definition: ad717x.h:460
AD717X_ComputeXOR8
uint8_t AD717X_ComputeXOR8(uint8_t *pBuf, uint8_t bufSize)
Computes the XOR checksum for a data buffer.
Definition: ad717x.c:693
AD717X_FILTCON0_REG
#define AD717X_FILTCON0_REG
Definition: ad717x.h:350
AD717x_MAX_CHANNELS
#define AD717x_MAX_CHANNELS
Definition: ad717x.h:53
ad717x_assign_setup
int ad717x_assign_setup(ad717x_dev *device, uint8_t channel_id, uint8_t setup)
Assign Setup to Channel.
Definition: ad717x.c:191
AD717X_SETUP_CONF_REG_AINBUF_N
#define AD717X_SETUP_CONF_REG_AINBUF_N
Definition: ad717x.h:472
ad717x_analog_input_pairs
ad717x_analog_input_pairs
Definition: ad717x.h:84
VIN5_VIN4
@ VIN5_VIN4
Definition: ad717x.h:95
sps_381
@ sps_381
Definition: ad717x.h:206
no_os_spi_write_and_read
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
INVALID_VAL
#define INVALID_VAL
Definition: ad717x.c:46
sinc5_sinc1
@ sinc5_sinc1
Definition: ad717x.h:185
ad717x_single_read
int ad717x_single_read(ad717x_dev *device, uint8_t id, int32_t *adc_raw_data)
Perform Single Conversion.
Definition: ad717x.c:346
VIN0_VIN1
@ VIN0_VIN1
Definition: ad717x.h:85
ad717x_filtcon::enhfilt
enum ad717x_enhfilt enhfilt
Definition: ad717x.h:226
ad717x_analog_inputs::neg_analog_input
enum ad717x_analog_input neg_analog_input
Definition: ad717x.h:135
ad717x_init_param::num_regs
uint8_t num_regs
Definition: ad717x.h:292
no_os_spi.h
Header file of SPI Interface.
sps_503
@ sps_503
Definition: ad717x.h:205
ID_AD7173_8
@ ID_AD7173_8
Definition: ad717x.h:151
AD717X_ReadData
int32_t AD717X_ReadData(ad717x_dev *device, int32_t *pData)
Reads the conversion result from the device.
Definition: ad717x.c:592
VIN5_VINCOM
@ VIN5_VINCOM
Definition: ad717x.h:96
ID_AD4111
@ ID_AD4111
Definition: ad717x.h:144
ad717x_filtcon::sinc3_map
bool sinc3_map
Definition: ad717x.h:224
ad717x_st_reg::size
int32_t size
Definition: ad717x.h:251
AD717X_UpdateCRCSetting
int32_t AD717X_UpdateCRCSetting(ad717x_dev *device)
Updates the CRC settings.
Definition: ad717x.c:713
ad717x_mode
ad717x_mode
Definition: ad717x.h:59
ad717x_init_param
Definition: ad717x.h:287
AD717X_SETUP_CONF_REG_REF_SEL_MSK
#define AD717X_SETUP_CONF_REG_REF_SEL_MSK
Definition: ad717x.h:522
sps31250_b
@ sps31250_b
Definition: ad717x.h:195
ad717x_channel_setup::ref_source
enum ad717x_reference_source ref_source
Definition: ad717x.h:166
AD717X_IFMODE_REG_DATA_STAT
#define AD717X_IFMODE_REG_DATA_STAT
Definition: ad717x.h:403
ID_AD4116
@ ID_AD4116
Definition: ad717x.h:148
AD717X_ID_REG
#define AD717X_ID_REG
Definition: ad717x.h:325
ad717x_set_adc_mode
int ad717x_set_adc_mode(ad717x_dev *device, enum ad717x_mode adc_mode)
Set ADC Mode.
Definition: ad717x.c:92
sps_20
@ sps_20
Definition: ad717x.h:211
VIN0_VINCOM
@ VIN0_VINCOM
Definition: ad717x.h:86
ad717x_configure_device_odr
int32_t ad717x_configure_device_odr(ad717x_dev *dev, uint8_t filtcon_id, uint8_t odr_sel)
Configure ODR for the device.
Definition: ad717x.c:743
AD717X_IFMODE_REG_XOR_STAT
#define AD717X_IFMODE_REG_XOR_STAT(x)
Definition: ad717x.h:407
TEMP_SENSOR_P
@ TEMP_SENSOR_P
Definition: ad717x.h:119
sps_59
@ sps_59
Definition: ad717x.h:209
AD717x_ODR_MSK
#define AD717x_ODR_MSK
Definition: ad717x.h:523
VIN6_VIN7
@ VIN6_VIN7
Definition: ad717x.h:97
AVDD_AVSS
@ AVDD_AVSS
Definition: ad717x.h:77
sps_16
@ sps_16
Definition: ad717x.h:212
SYS_GAIN_CALIB
@ SYS_GAIN_CALIB
Definition: ad717x.h:67
AD717X_ComputeCRC8
uint8_t AD717X_ComputeCRC8(uint8_t *pBuf, uint8_t bufSize)
Computes the CRC checksum for a data buffer.
Definition: ad717x.c:663
device
Definition: ad9361_util.h:69
sps_5
@ sps_5
Definition: ad717x.h:214
ad717x_filtcon::odr
enum ad717x_odr odr
Definition: ad717x.h:228
AD717X_CHMAP_REG_CH_EN
#define AD717X_CHMAP_REG_CH_EN
Definition: ad717x.h:450
AD717X_STATUS_REG_RDY
#define AD717X_STATUS_REG_RDY
Definition: ad717x.h:382
AD717X_CHMAP_REG_SETUP_SEL_MSK
#define AD717X_CHMAP_REG_SETUP_SEL_MSK
Definition: ad717x.h:518
ad717x_set_polarity
int ad717x_set_polarity(ad717x_dev *device, bool bipolar, uint8_t setup_id)
Set Polarity.
Definition: ad717x.c:221
AD717X_SETUP_CONF_REG_REFBUF_P
#define AD717X_SETUP_CONF_REG_REFBUF_P
Definition: ad717x.h:469
sps_10417
@ sps_10417
Definition: ad717x.h:201
AD717X_CHMAP_REG_SETUP_SEL
#define AD717X_CHMAP_REG_SETUP_SEL(x)
Definition: ad717x.h:451
sps_31250_d
@ sps_31250_d
Definition: ad717x.h:197
ad717x_crc_mode
ad717x_crc_mode
Definition: ad717x.h:241
ID_AD7175_8
@ ID_AD7175_8
Definition: ad717x.h:153
AD717X_ReadData
int32_t AD717X_ReadData(ad717x_dev *device, int32_t *pData)
Reads the conversion result from the device.
Definition: ad717x.c:592
AIN0
@ AIN0
Definition: ad717x.h:114
AD717X_ComputeCRC8
uint8_t AD717X_ComputeCRC8(uint8_t *pBuf, uint8_t bufSize)
Computes the CRC checksum for a data buffer.
Definition: ad717x.c:663
AD717X_Init
int32_t AD717X_Init(ad717x_dev **device, ad717x_init_param init_param)
Initializes the AD717X.
Definition: ad717x.c:778
ad7616_init_param::mode
enum ad7616_mode mode
Definition: ad7616.h:226
POWER_DOWN
@ POWER_DOWN
Definition: ad717x.h:63
AD4111_CHMAP_REG_INPUT
#define AD4111_CHMAP_REG_INPUT(x)
Definition: ad717x.h:456
AD717X_ReadRegister
int32_t AD717X_ReadRegister(ad717x_dev *device, uint8_t addr)
Reads the value of the specified register.
Definition: ad717x.c:411
INTERNAL_REF
@ INTERNAL_REF
Definition: ad717x.h:76
sps16p6_db82_ms60
@ sps16p6_db82_ms60
Definition: ad717x.h:177
ad717x_set_adc_mode
int ad717x_set_adc_mode(ad717x_dev *device, enum ad717x_mode mode)
Set ADC Mode.
Definition: ad717x.c:92
AD717X_ADCMODE_REG_REF_EN
#define AD717X_ADCMODE_REG_REF_EN
Definition: ad717x.h:389
sps_49
@ sps_49
Definition: ad717x.h:210
AD717X_ComputeDataregSize
int32_t AD717X_ComputeDataregSize(ad717x_dev *device)
Computes data register read size to account for bit number and status read.
Definition: ad717x.c:625
ID_AD7172_4
@ ID_AD7172_4
Definition: ad717x.h:150
ad717x_set_reference_source
int ad717x_set_reference_source(ad717x_dev *device, enum ad717x_reference_source ref_source, uint8_t setup_id)
Select the reference source.
Definition: ad717x.c:254
ad717x_dev::num_channels
uint8_t num_channels
Definition: ad717x.h:274
ad717x_channel_map::setup_sel
uint8_t setup_sel
Definition: ad717x.h:237
AD717x_CHANNEL_INPUT_MASK
#define AD717x_CHANNEL_INPUT_MASK
Definition: ad717x.h:517
sps_2p5
@ sps_2p5
Definition: ad717x.h:215
ad717x_set_channel_status
int ad717x_set_channel_status(ad717x_dev *device, uint8_t channel_id, bool channel_status)
Set channel status - Enable/Disable.
Definition: ad717x.c:58
ID_AD7175_2
@ ID_AD7175_2
Definition: ad717x.h:152
SINGLE
@ SINGLE
Definition: ad717x.h:61
CONTINUOUS
@ CONTINUOUS
Definition: ad717x.h:60
AD717X_CHMAP_REG_AINPOS_MSK
#define AD717X_CHMAP_REG_AINPOS_MSK
Definition: ad717x.h:519
no_os_error.h
Error codes definition.
ad717x_connect_analog_input
int ad717x_connect_analog_input(ad717x_dev *device, uint8_t channel_id, union ad717x_analog_inputs analog_input)
Set Analog Inputs to channel.
Definition: ad717x.c:123
ad717x_assign_setup
int ad717x_assign_setup(ad717x_dev *device, uint8_t channel_id, uint8_t setup)
Assign Setup to Channel.
Definition: ad717x.c:191
AD717X_COMM_REG_RA
#define AD717X_COMM_REG_RA(x)
Definition: ad717x.h:379
ad717x_analog_inputs::ainp
struct ad717x_analog_inputs::@3 ainp
IIN0P_IIN0M
@ IIN0P_IIN0M
Definition: ad717x.h:104
ad717x_init_param::num_setups
uint8_t num_setups
Definition: ad717x.h:300
TEMP_SENSOR_M
@ TEMP_SENSOR_M
Definition: ad717x.h:120
ad717x_reference_source
ad717x_reference_source
Definition: ad717x.h:74
sps_100
@ sps_100
Definition: ad717x.h:208
ad717x_enhfilt
ad717x_enhfilt
Definition: ad717x.h:173
ad717x_dev::num_regs
uint8_t num_regs
Definition: ad717x.h:267
AD717X_SETUP_CONF_REG_AINBUF_P
#define AD717X_SETUP_CONF_REG_AINBUF_P
Definition: ad717x.h:471
ad717x_dev::spi_desc
struct no_os_spi_desc * spi_desc
Definition: ad717x.h:264
AD717X_ComputeDataregSize
int32_t AD717X_ComputeDataregSize(ad717x_dev *device)
Computes data register read size to account for bit number and status read.
Definition: ad717x.c:625
sps31250_e
@ sps31250_e
Definition: ad717x.h:198
ad717x_device_type
ad717x_device_type
Definition: ad717x.h:143
ad717x_analog_input
ad717x_analog_input
Definition: ad717x.h:113
AD717X_CHMAP_REG_AINNEG_MSK
#define AD717X_CHMAP_REG_AINNEG_MSK
Definition: ad717x.h:520
ad717x_init_param::ref_en
bool ref_en
Definition: ad717x.h:296
ad717x_channel_map::channel_enable
bool channel_enable
Definition: ad717x.h:236
AD717X_ADCMODE_REG
#define AD717X_ADCMODE_REG
Definition: ad717x.h:320
AD717X_UpdateCRCSetting
int32_t AD717X_UpdateCRCSetting(ad717x_dev *device)
Updates the CRC settings.
Definition: ad717x.c:713
AIN4
@ AIN4
Definition: ad717x.h:118
ID_AD4114
@ ID_AD4114
Definition: ad717x.h:146
AD717x_MAX_SETUPS
#define AD717x_MAX_SETUPS
Definition: ad717x.h:51
VIN1_VIN0
@ VIN1_VIN0
Definition: ad717x.h:87
ad717x_dev::regs
ad717x_st_reg * regs
Definition: ad717x.h:266
VIN4_VINCOM
@ VIN4_VINCOM
Definition: ad717x.h:94
sps25_db62_ms40
@ sps25_db62_ms40
Definition: ad717x.h:175
ad717x_connect_analog_input
int ad717x_connect_analog_input(ad717x_dev *device, uint8_t channel_id, union ad717x_analog_inputs analog_input)
Set Analog Inputs to channel.
Definition: ad717x.c:123
REF_P
@ REF_P
Definition: ad717x.h:123
AD717X_IFMODE_REG_CRC_STAT
#define AD717X_IFMODE_REG_CRC_STAT(x)
Definition: ad717x.h:408
TEMPERATURE_SENSOR
@ TEMPERATURE_SENSOR
Definition: ad717x.h:105
ad717x_st_reg
Definition: ad717x.h:248
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
AD717X_ComputeXOR8
uint8_t AD717X_ComputeXOR8(uint8_t *pBuf, uint8_t bufSize)
Computes the XOR checksum for a data buffer.
Definition: ad717x.c:693
AD717X_SETUP_CONF_REG_BI_UNIPOLAR
#define AD717X_SETUP_CONF_REG_BI_UNIPOLAR
Definition: ad717x.h:459
VIN1_VINCOM
@ VIN1_VINCOM
Definition: ad717x.h:88
EXTERNAL_REF
@ EXTERNAL_REF
Definition: ad717x.h:75
AD717X_remove
int32_t AD717X_remove(ad717x_dev *dev)
Free the resources allocated by AD717X_Init().
Definition: ad717x.c:902
spi_init
struct no_os_spi_init_param spi_init
Definition: common_data.c:120
ID_AD4112
@ ID_AD4112
Definition: ad717x.h:145
AD717X_GetReg
ad717x_st_reg * AD717X_GetReg(ad717x_dev *device, uint8_t reg_address)
Searches through the list of registers of the driver instance and retrieves a pointer to the register...
Definition: ad717x.c:383
ad717x_dev::ref_en
bool ref_en
Definition: ad717x.h:272
AD717X_SETUPCON0_REG
#define AD717X_SETUPCON0_REG
Definition: ad717x.h:342
ad717x_single_read
int ad717x_single_read(ad717x_dev *device, uint8_t id, int32_t *adc_raw_data)
Perform Single Conversion.
Definition: ad717x.c:346
AD717X_CHMAP0_REG
#define AD717X_CHMAP0_REG
Definition: ad717x.h:326
AD717X_GPIOCON_REG
#define AD717X_GPIOCON_REG
Definition: ad717x.h:324
AD717X_USE_CRC
@ AD717X_USE_CRC
Definition: ad717x.h:243
AD717X_COMM_REG_RD
#define AD717X_COMM_REG_RD
Definition: ad717x.h:378
ad717x_dev
Definition: ad717x.h:262
AD717X_FILT_CONF_REG_ODR
#define AD717X_FILT_CONF_REG_ODR(x)
Definition: ad717x.h:485
REFERENCE
@ REFERENCE
Definition: ad717x.h:106
AIN1
@ AIN1
Definition: ad717x.h:115
ad717x_dev::useCRC
ad717x_crc_mode useCRC
Definition: ad717x.h:268
VIN7_VINCOM
@ VIN7_VINCOM
Definition: ad717x.h:100
VIN6_VINCOM
@ VIN6_VINCOM
Definition: ad717x.h:98
AD717X_COMM_REG_WEN
#define AD717X_COMM_REG_WEN
Definition: ad717x.h:376
VIN7_VIN6
@ VIN7_VIN6
Definition: ad717x.h:99
ad717x_set_reference_source
int ad717x_set_reference_source(ad717x_dev *device, enum ad717x_reference_source ref_source, uint8_t setup_id)
Select the reference source.
Definition: ad717x.c:254
COMM_ERR
#define COMM_ERR
Definition: ad717x.c:47
VIN2_VINCOM
@ VIN2_VINCOM
Definition: ad717x.h:90
no_os_malloc
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
INTERNAL_OFFSET_CALIB
@ INTERNAL_OFFSET_CALIB
Definition: ad717x.h:64
ad717x_analog_inputs::analog_input_pairs
enum ad717x_analog_input_pairs analog_input_pairs
Definition: ad717x.h:132
INTERNAL_REF
@ INTERNAL_REF
Definition: ad7124.h:379
ad717x_set_channel_status
int ad717x_set_channel_status(ad717x_dev *device, uint8_t channel_id, bool channel_status)
Set channel status - Enable/Disable.
Definition: ad717x.c:58
ad717x_st_reg::addr
int32_t addr
Definition: ad717x.h:249
sps_5208
@ sps_5208
Definition: ad717x.h:202
AD717X_CHMAP_REG_AINPOS
#define AD717X_CHMAP_REG_AINPOS(x)
Definition: ad717x.h:452
ad717x.h
AD717X header file. Devices: AD7172-2, AD7172-4, AD7173-8, AD7175-2, AD7175-8, AD7176-2,...
ad717x_channel_map::analog_inputs
union ad717x_analog_inputs analog_inputs
Definition: ad717x.h:238
ad717x_filtcon
Definition: ad717x.h:223
AD717X_OFFSET0_REG
#define AD717X_OFFSET0_REG
Definition: ad717x.h:358
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
AD717X_remove
int32_t AD717X_remove(ad717x_dev *dev)
Free the resources allocated by AD717X_Init().
Definition: ad717x.c:902
AD717X_STATUS_REG
#define AD717X_STATUS_REG
Definition: ad717x.h:319
VIN3_VINCOM
@ VIN3_VINCOM
Definition: ad717x.h:92
sinc3
@ sinc3
Definition: ad717x.h:186
AD717X_DATA_REG
#define AD717X_DATA_REG
Definition: ad717x.h:323
ad717x_configure_device_odr
int32_t ad717x_configure_device_odr(ad717x_dev *dev, uint8_t filtcon_id, uint8_t odr_sel)
Configure ODR for the device.
Definition: ad717x.c:743
ad717x_channel_map
Definition: ad717x.h:235
ad717x_filtcon::enhfilten
bool enhfilten
Definition: ad717x.h:225
INTERNAL_GAIN_CALIB
@ INTERNAL_GAIN_CALIB
Definition: ad717x.h:65
sps_1007
@ sps_1007
Definition: ad717x.h:204
VIN3_VIN2
@ VIN3_VIN2
Definition: ad717x.h:91
AD717X_WriteRegister
int32_t AD717X_WriteRegister(ad717x_dev *device, uint8_t addr)
Writes the value of the specified register.
Definition: ad717x.c:483
AD717X_COMM_REG_WR
#define AD717X_COMM_REG_WR
Definition: ad717x.h:377
ad717x_analog_inputs
Definition: ad717x.h:131
ad717x_odr
ad717x_odr
Definition: ad717x.h:193
ID_AD7172_2
@ ID_AD7172_2
Definition: ad717x.h:149
VIN2_VIN3
@ VIN2_VIN3
Definition: ad717x.h:89
ad717x_init_param::num_channels
uint8_t num_channels
Definition: ad717x.h:298
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
AD717X_WaitForReady
int32_t AD717X_WaitForReady(ad717x_dev *device, uint32_t timeout)
Waits until a new conversion result is available.
Definition: ad717x.c:557
AD717X_SETUP_CONF_REG_REFBUF_N
#define AD717X_SETUP_CONF_REG_REFBUF_N
Definition: ad717x.h:470
bipolar
@ bipolar
Definition: ad5446.h:71
AD717X_Init
int32_t AD717X_Init(ad717x_dev **device, ad717x_init_param init_param)
Initializes the AD717X.
Definition: ad717x.c:778
AD7177_2_ID_REG_VALUE
#define AD7177_2_ID_REG_VALUE
Definition: ad717x.h:502
AD717X_IFMODE_REG
#define AD717X_IFMODE_REG
Definition: ad717x.h:321
AD717X_ReadRegister
int32_t AD717X_ReadRegister(ad717x_dev *device, uint8_t addr)
Reads the value of the specified register.
Definition: ad717x.c:411
AD717X_Reset
int32_t AD717X_Reset(ad717x_dev *device)
Resets the device.
Definition: ad717x.c:533
IIN3P_IIN3M
@ IIN3P_IIN3M
Definition: ad717x.h:101
AD717X_WaitForReady
int32_t AD717X_WaitForReady(ad717x_dev *device, uint32_t timeout)
Waits until a new conversion result is available.
Definition: ad717x.c:557
no_os_spi_remove
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:116
AIN3
@ AIN3
Definition: ad717x.h:117
ad717x_order
ad717x_order
Definition: ad717x.h:184
sps_15625
@ sps_15625
Definition: ad717x.h:200
AD717X_CHMAP_REG_AINNEG
#define AD717X_CHMAP_REG_AINNEG(x)
Definition: ad717x.h:453
sps_31250_c
@ sps_31250_c
Definition: ad717x.h:196
sps27_db47_ms36p7
@ sps27_db47_ms36p7
Definition: ad717x.h:174
AD717X_IFMODE_REG_DATA_WL16
#define AD717X_IFMODE_REG_DATA_WL16
Definition: ad717x.h:409
sps_10
@ sps_10
Definition: ad717x.h:213
IIN1P_IIN1M
@ IIN1P_IIN1M
Definition: ad717x.h:103
no_os_spi_init
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
AD717X_WriteRegister
int32_t AD717X_WriteRegister(ad717x_dev *device, uint8_t)
Writes the value of the specified register.
Definition: ad717x.c:483
VIN4_VIN5
@ VIN4_VIN5
Definition: ad717x.h:93
SYS_OFFSET_CALIB
@ SYS_OFFSET_CALIB
Definition: ad717x.h:66
sps20_db86_ms50
@ sps20_db86_ms50
Definition: ad717x.h:176
no_os_util.h
Header file of utility functions.
AD717X_GetReg
ad717x_st_reg * AD717X_GetReg(ad717x_dev *device, uint8_t reg_address)
Searches through the list of registers of the driver instance and retrieves a pointer to the register...
Definition: ad717x.c:383
ID_AD7176_2
@ ID_AD7176_2
Definition: ad717x.h:154
ad717x_channel_setup
Definition: ad717x.h:162
sps_200
@ sps_200
Definition: ad717x.h:207
TIMEOUT
#define TIMEOUT
Definition: ad717x.c:48
sps_31250_f
@ sps_31250_f
Definition: ad717x.h:199
AD717X_CONV_TIMEOUT
#define AD717X_CONV_TIMEOUT
Definition: ad717x.h:515
AD717X_ID_REG_MASK
#define AD717X_ID_REG_MASK
Definition: ad717x.h:488
ad717x_set_polarity
int ad717x_set_polarity(ad717x_dev *device, bool bipolar, uint8_t setup_id)
Set Polarity.
Definition: ad717x.c:221
AD717X_Reset
int32_t AD717X_Reset(ad717x_dev *device)
Resets the device.
Definition: ad717x.c:533
ID_AD4115
@ ID_AD4115
Definition: ad717x.h:147
ad717x_channel_setup::input_buff
bool input_buff
Definition: ad717x.h:165
REF_M
@ REF_M
Definition: ad717x.h:124
sps_1p25
@ sps_1p25
Definition: ad717x.h:216
AD717X_ADCMODE_REG_MODE_MSK
#define AD717X_ADCMODE_REG_MODE_MSK
Definition: ad717x.h:521
AVDD_AVSS_M
@ AVDD_AVSS_M
Definition: ad717x.h:122
AD717X_DISABLE
@ AD717X_DISABLE
Definition: ad717x.h:242
STANDBY
@ STANDBY
Definition: ad717x.h:62
ad717x_channel_setup::ref_buff
bool ref_buff
Definition: ad717x.h:164
ad717x_filtcon::oder
enum ad717x_order oder
Definition: ad717x.h:227
ad717x_enable_buffers
int ad717x_enable_buffers(ad717x_dev *device, bool inbuf_en, bool refbuf_en, uint8_t setup_id)
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
ad717x_channel_setup::bi_unipolar
bool bi_unipolar
Definition: ad717x.h:163