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