precision-converters-firmware
ad717x_menu_defines.h
Go to the documentation of this file.
1 
17 #ifndef AD717X_MENU_DEFINES_H_
18 #define AD717X_MENU_DEFINES_H_
19 
20 /******************************************************************************/
21 /***************************** Include Files **********************************/
22 /******************************************************************************/
23 
24 #include "adi_console_menu.h"
25 
26 /******************************************************************************/
27 /********************** Macros and Constants Definitions **********************/
28 /******************************************************************************/
29 
30 // Prototypes for the console menu functions defined in ad717x_console_app.c file
31 void display_main_menu_header(void);
32 int32_t menu_read_id(uint32_t menu_id);
33 int32_t menu_read_status(uint32_t menu_id);
34 int32_t menu_sample_channels(uint32_t menu_id);
35 int32_t menu_chn_enable_disable_display(uint32_t menu_id);
36 int32_t menu_input_chn_connect_display(uint32_t menu_id);
37 int32_t menu_config_and_assign_setup(uint32_t menu_id);
38 int32_t menu_display_setup(uint32_t menu_id);
39 int32_t menu_read_temperature(uint32_t menu_id);
40 int32_t menu_calibrate_adc(uint32_t menu_id);
41 int32_t menu_read_write_device_regs(uint32_t menu_id);
42 int32_t menu_channels_enable_disable(uint32_t action);
43 int32_t menu_analog_input_connect(uint32_t user_analog_input);
44 int32_t menu_input_type_selection(uint32_t input_type_id);
45 int32_t menu_select_chn_pair(uint32_t user_channel_pair);
46 int32_t menu_select_input_pair(uint32_t user_input_pair);
47 int32_t menu_open_wire_detection(uint32_t menu_id);
48 int32_t menu_rw_ad717x_register(uint32_t rw_id);
49 int32_t menu_single_conversion(uint32_t channel_id);
50 int32_t menu_continuous_conversion_tabular(uint32_t channel_id);
51 int32_t menu_continuous_conversion_stream(uint32_t channel_id);
52 int32_t menu_filter_select(uint32_t user_input_filter_type);
53 int32_t menu_postfiler_enable_disable(uint32_t user_action);
54 int32_t menu_postfiler_select(uint32_t user_input_post_filter_type);
55 int32_t menu_odr_select(uint32_t user_input_odr_val);
56 int32_t menu_polarity_select(uint32_t user_input_polarity);
57 int32_t menu_reference_source_select(uint32_t user_input_reference);
58 int32_t menu_ref_buffer_enable_disable(uint32_t user_action);
59 int32_t menu_input_buffer_enable_disable(uint32_t user_action);
60 
61 
62 // Define the standard ODR values for the AD717x/AD414x devices
63 // ODRx value, ODRx string name and ODRx bits
64 
65 #define ODR_250000 250000.00
66 #define ODR_250000_STR "250000.00"
67 #define ODR_250000_BITS 0x00
68 
69 #define ODR_125000 125000.00
70 #define ODR_125000_STR "125000.00"
71 #define ODR_125000_BITS 0x01
72 
73 #define ODR_62500 62500.00
74 #define ODR_62500_STR "62500.00"
75 #define ODR_62500_BITS 0x02
76 
77 #define ODR_50000 50000.00
78 #define ODR_50000_STR "50000.00"
79 #define ODR_50000_BITS 0x03
80 
81 #define ODR_31250 31250.00
82 #define ODR_31250_STR "31250.00"
83 #define ODR_31250_BITS 0x04
84 
85 #define ODR_25000 25000.00
86 #define ODR_25000_STR "25000.00"
87 #define ODR_25000_BITS 0x05
88 
89 #define ODR_15625 15625.00
90 #define ODR_15625_STR "15625.00"
91 #define ODR_15625_BITS 0x06
92 
93 #define ODR_10417 10417.00
94 #define ODR_10417_STR "10417.00"
95 #define ODR_10417_BITS 0x07
96 
97 #define ODR_10000 10000.00
98 #define ODR_10000_STR "10000.00"
99 #define ODR_10000_BITS 0x07
100 
101 #define ODR_5208 5208.00
102 #define ODR_5208_STR "5208.00"
103 #define ODR_5208_BITS 0x08
104 
105 #define ODR_5000 5000.00
106 #define ODR_5000_STR "5000.00"
107 #define ODR_5000_BITS 0x08
108 
109 #define ODR_5194 5194
110 #define ODR_5194_STR "5194.00"
111 #define ODR_5194_BITS 0x08
112 
113 #define ODR_3906 3906.00
114 #define ODR_3906_STR "3906.00"
115 #define ODR_3906_BITS 0x09
116 
117 #define ODR_2604 2604.00
118 #define ODR_2604_STR "2604.00"
119 #define ODR_2604_BITS 0x09
120 
121 #define ODR_2597 2597.00
122 #define ODR_2597_STR "2597.00"
123 #define ODR_2597_BITS 0x09
124 
125 #define ODR_2500 2500.00
126 #define ODR_2500_STR "2500.00"
127 #define ODR_2500_BITS 0x09
128 
129 #define ODR_2496 2496.00
130 #define ODR_2496_STR "2496.00"
131 #define ODR_2496_BITS 0x09
132 
133 #define ODR_1157 1157.00
134 #define ODR_1157_STR "1157.00"
135 #define ODR_1157_BITS 0x0A
136 
137 #define ODR_1008 1008.00
138 #define ODR_1008_STR "1008.00"
139 #define ODR_1008_BITS 0x0A
140 
141 #define ODR_1007 1007.00
142 #define ODR_1007_STR "1007.00"
143 #define ODR_1007_BITS 0x0A
144 
145 #define ODR_1000 1000.00
146 #define ODR_1000_STR "1000.00"
147 #define ODR_1000_BITS 0x0A
148 
149 #define ODR_539 539.00
150 #define ODR_539_STR "539.00"
151 #define ODR_539_BITS 0x0B
152 
153 #define ODR_504 504.00
154 #define ODR_504_STR "504.00"
155 #define ODR_504_BITS 0x0B
156 
157 #define ODR_503_8 503.80
158 #define ODR_503_8_STR "503.80"
159 #define ODR_503_8_BITS 0x0B
160 
161 #define ODR_500 500.00
162 #define ODR_500_STR "500.00"
163 #define ODR_500_BITS 0x0B
164 
165 #define ODR_499 499.9
166 #define ODR_499_STR "499.9"
167 #define ODR_499_BITS 0x0B
168 
169 #define ODR_401 401.00
170 #define ODR_401_STR "401.00"
171 #define ODR_401_BITS 0x0C
172 
173 #define ODR_400_6 400.60
174 #define ODR_400_6_STR "400.60"
175 #define ODR_400_6_BITS 0x0C
176 
177 #define ODR_400 400.00
178 #define ODR_400_STR "400.00"
179 #define ODR_400_BITS 0x0C
180 
181 #define ODR_397_5 397.50
182 #define ODR_397_5_STR "397.50"
183 #define ODR_397_5_BITS 0x0C
184 
185 #define ODR_397 397.00
186 #define ODR_397_STR "397.00"
187 #define ODR_397_BITS 0x0C
188 
189 #define ODR_390 390.6
190 #define ODR_390_STR "390.60"
191 #define ODR_390_BITS 0x0C
192 
193 #define ODR_381 381.00
194 #define ODR_381_STR "381.00"
195 #define ODR_381_BITS 0x0C
196 
197 #define ODR_206 206.00
198 #define ODR_206_STR "206.00"
199 #define ODR_206_BITS 0x0D
200 
201 #define ODR_200_3 200.3
202 #define ODR_200_3_STR "200.30"
203 #define ODR_200_3_BITS 0x0D
204 
205 #define ODR_200 200.00
206 #define ODR_200_STR "200.00"
207 #define ODR_200_BITS 0x0D
208 
209 #define ODR_102 102.00
210 #define ODR_102_STR "102.00"
211 #define ODR_102_BITS 0x0E
212 
213 #define ODR_100_2 100.20
214 #define ODR_100_2_STR "100.20"
215 #define ODR_100_2_BITS 0x0E
216 
217 #define ODR_100 100.00
218 #define ODR_100_STR "100.00"
219 #define ODR_100_BITS 0x0E
220 
221 #define ODR_60 60.00
222 #define ODR_60_STR "60.00"
223 #define ODR_60_BITS 0x0F
224 
225 #define ODR_59_98 59.98
226 #define ODR_59_98_STR "59.98"
227 #define ODR_59_98_BITS 0x0F
228 
229 #define ODR_59_94 59.94
230 #define ODR_59_94_STR "59.94"
231 #define ODR_59_94_BITS 0x0F
232 
233 #define ODR_59_75 59.75
234 #define ODR_59_75_STR "59.75"
235 #define ODR_59_75_BITS 0x0F
236 
237 #define ODR_59_52 59.52
238 #define ODR_59_52_STR "59.52"
239 #define ODR_59_52_BITS 0x0F
240 
241 #define ODR_50 50.00
242 #define ODR_50_STR "50.00"
243 #define ODR_50_BITS 0x10
244 
245 #define ODR_49_96 49.96
246 #define ODR_49_96_STR "49.96"
247 #define ODR_49_96_BITS 0x10
248 
249 #define ODR_49_84 49.84
250 #define ODR_49_84_STR "49.84"
251 #define ODR_49_84_BITS 0x10
252 
253 #define ODR_49_68 49.68
254 #define ODR_49_68_STR "49.68"
255 #define ODR_49_68_BITS 0x10
256 
257 #define ODR_20_01 20.01
258 #define ODR_20_01_STR "20.01"
259 #define ODR_20_01_BITS 0x11
260 
261 #define ODR_20 20.00
262 #define ODR_20_STR "20.00"
263 #define ODR_20_BITS 0x11
264 
265 #define ODR_16_63 16.63
266 #define ODR_16_63_STR "16.63"
267 #define ODR_16_63_BITS 0x12
268 
269 #define ODR_16_67 16.67
270 #define ODR_16_67_STR "16.67"
271 #define ODR_16_67_BITS 0x12
272 
273 #define ODR_16_65 16.65
274 #define ODR_16_65_STR "16.65"
275 #define ODR_16_65_BITS 0x12
276 
277 #define ODR_10 10.00
278 #define ODR_10_STR "10.00"
279 #define ODR_10_BITS 0x13
280 
281 #define ODR_5 5.00
282 #define ODR_5_STR "5.00"
283 #define ODR_5_BITS 0x14
284 
285 #define ODR_2_5 2.50
286 #define ODR_2_5_STR "2.50"
287 #define ODR_2_5_BITS 0x15
288 
289 #define ODR_1_25 1.25
290 #define ODR_1_25_STR "1.25"
291 #define ODR_1_25_BITS 0x16
292 
293 #define ODR_RES_STR "RES"
294 #define ODR_RES_BITS 0x17
295 
296 
297 // Analog input bits (0:9) for the AD717x/AD414x devices
298 #define VIN0_INPUT_BITS 0x00
299 #define VIN1_INPUT_BITS 0x01
300 #define VIN2_INPUT_BITS 0x02
301 #define VIN3_INPUT_BITS 0x03
302 #define VIN4_INPUT_BITS 0x04
303 #define VIN5_INPUT_BITS 0x05
304 #define VIN6_INPUT_BITS 0x06
305 #define VIN7_INPUT_BITS 0x07
306 #define VIN8_INPUT_BITS 0x08
307 #define VIN9_INPUT_BITS 0x09
308 #define VIN10_INPUT_BITS 0x0A
309 #define VIN11_INPUT_BITS 0x0B
310 #define VIN12_INPUT_BITS 0x0C
311 #define VIN13_INPUT_BITS 0x0D
312 #define VIN14_INPUT_BITS 0x0E
313 #define VIN15_INPUT_BITS 0x0F
314 #define VIN16_INPUT_BITS 0x10
315 #define VINCOM_INPUT_BITS 0x10
316 #define IN0N_INPUT_BITS 0x08
317 #define IN1N_INPUT_BITS 0x09
318 #define IN2N_INPUT_BITS 0x0A
319 #define IN3N_INPUT_BITS 0x0B
320 #define IN3P_INPUT_BITS 0x0C
321 #define IN2P_INPUT_BITS 0x0D
322 #define IN1P_INPUT_BITS 0x0E
323 #define IN0P_INPUT_BITS 0x0F
324 #define TEMP_SENSOR_POS_INP_BITS 0x11
325 #define TEMP_SENSOR_NEG_INP_BITS 0x12
326 #define AVDD1_AVSS_P_BITS 0x13
327 #define AVDD1_AVSS_N_BITS 0x14
328 #define REFP_INPUT_BITS 0x15
329 #define REFN_INPUT_BITS 0x16
330 #define ADCIN11_12_INPUT_BITS 0x16C
331 #define ADCIN12_11_INPUT_BITS 0x18B
332 #define ADCIN13_14_INPUT_BITS 0x1AE
333 #define ADCIN14_13_INPUT_BITS 0x1CD
334 #define ADCIN11_15_INPUT_BITS 0x16F
335 #define ADCIN12_15_INPUT_BITS 0x18F
336 #define ADCIN13_15_INPUT_BITS 0x1AF
337 #define ADCIN14_15_INPUT_BITS 0x1CF
338 
339 // Offset to form VIN+ and VIN- pairs
340 #define VIN_PAIR_OFFSET 5
341 
342 
343 // Channels define for the AD717x/AD414x devices
344 #define ADC_CHN(x) (x)
345 
346 // Offset to form Channel pairs
347 #define CHN_PAIR_OFFSET 4
348 #define CHN_PAIR_MASK 0x0F
349 
350 
351 // Device register read/write identifiers
352 #define DEVICE_REG_READ_ID (uint32_t)1
353 #define DEVICE_REG_WRITE_ID (uint32_t)2
354 
355 // Enable/Disable selection identifiers
356 #define SELECT_DISBLE (uint32_t)0
357 #define SELECT_ENABLE (uint32_t)1
358 
359 // Input Type selection identifiers
360 #define SINGLE_ENDED_INPUT (uint32_t)0
361 #define DIFF_ENDED_INPUT (uint32_t)1
362 
363 // Analog input select identifiers
364 #define ANALOG_INP_PAIR_SELECT (uint32_t)0
365 #define POS_ANALOG_INP_SELECT (uint32_t)1
366 #define NEG_ANALOG_INP_SELECT (uint32_t)2
367 
368 
369 // Digital filter type (ORDER0) bits
370 #define SINC5_SINC1_FILTER (uint32_t)0
371 #define SINC3_FILTER (uint32_t)1
372 
373 // SINC5+SINC1 post filter type bits
374 #define POST_FILTER_NA (uint32_t)0
375 #define POST_FLTR_27_SPS (uint32_t)2
376 #define POST_FLTR_25_SPS (uint32_t)3
377 #define POST_FLTR_20_SPS (uint32_t)5
378 #define POST_FLTR_16_67_SPS (uint32_t)6
379 
380 // Reference source type bits
381 #define EXTERNAL (uint32_t)0
382 #define INTERNAL (uint32_t)2
383 #define AVDD_AVSS (uint32_t)3
384 
385 // Polarity selection bits
386 #define UNIPOLAR (uint32_t)0
387 #define BIPOLAR (uint32_t)1
388 
389 /******************************************************************************/
390 /********************** Variables and User Defined Data Types *****************/
391 /******************************************************************************/
392 
393 // Enable/Disable status names
394 const char *enable_disable_status[] = {
395  "Disable",
396  "Enable"
397 };
398 
399 // Polarity names
400 const char *polarity_status[] = {
401  "Unipolar",
402  "Bipolar"
403 };
404 
405 // Filter names
406 const char *filter_name[] = {
407  "Sinc5+1",
408  "Sinc3",
409 };
410 
411 // Post filter names
412 const char *postfilter_name[] = {
413  "NA",
414  "NA",
415  "27_SPS",
416  "25_SPS",
417  "NA",
418  "20_SPS",
419  "16_SPS",
420 };
421 
422 // Reference source names
423 const char *reference_name[] = {
424  "External",
425  "External",
426  "Internal",
427  "AVDD-AVSS"
428 };
429 
430 
431 // Analog Input pin map
432 const char *input_pin_map[] = {
433 #if defined(DEV_AD4111) || defined(DEV_AD4112)
434  "VIN0", "VIN1", "VIN2", "VIN3", "VIN4", "VIN5",
435  "VIN6", "VIN7", "IN0-", "IN1-", "IN2-", "IN3-",
436  "IN3+", "IN2+", "IN1+", "IN0+", "VINCOM",
437  "TEMP+", "TEMP-", "RES", "RES", "REF+", "REF-"
438 #elif defined(DEV_AD4114) || defined(DEV_AD4115) || defined(DEV_AD4116)
439  "VIN0", "VIN1", "VIN2", "VIN3", "VIN4", "VIN5",
440  "VIN6", "VIN7", "VIN8", "VIN9", "VIN10",
441 #if !defined (DEV_AD4116)
442  "VIN11", "VIN12", "VIN13", "VIN14", "VIN15",
443 #endif
444  "VINCOM",
445  "TEMP+", "TEMP-", "RES", "RES", "REF+", "REF-"
446 #elif defined(DEV_AD7173_8) || defined(DEV_AD7175_8)
447  "AIN0", "AIN1", "AIN2", "AIN3", "AIN4", "AIN5",
448  "AIN6", "AIN7", "AIN8", "AIN9", "AIN10", "AIN11",
449  "AIN12", "AIN13", "AIN14", "AIN15", "AIN16",
450  "TEMP+", "TEMP-",
451 #if defined(DEV_AD7173_8)
452  "RES", "RES",
453 #else
454  "((AVDD1 ? AVSS)/5)+", "((AVDD1 ? AVSS)/5)-",
455 #endif
456  "REF+", "REF-"
457 #elif defined(DEV_AD7172_2) || defined(DEV_AD7177_2) || defined(DEV_AD7175_2)
458  "AIN0", "AIN1", "AIN2", "AIN3", "AIN4",
459  "RES", "RES", "RES", "RES", "RES", "RES",
460  "RES", "RES", "RES", "RES", "RES", "RES",
461  "TEMP+", "TEMP-", "((AVDD1 ? AVSS)/5)+", "((AVDD1 ? AVSS)/5)-",
462  "REF+", "REF-"
463 #elif defined(DEV_AD7172_4)
464  "AIN0", "AIN1", "AIN2", "AIN3", "AIN4",
465  "AIN5", "AIN6", "AIN7", "AIN8",
466  "RES", "RES", "RES", "RES", "RES", "RES",
467  "TEMP+", "TEMP-", "((AVDD1 ? AVSS)/5)+", "((AVDD1 ? AVSS)/5)-",
468  "REF+", "REF-"
469 #elif defined(DEV_AD7176_2)
470  "AIN0", "AIN1", "AIN2", "AIN3", "AIN4",
471  "RES", "RES", "RES", "RES", "RES", "RES",
472  "RES", "RES", "RES", "RES", "RES", "RES",
473  "RES", "RES", "RES", "RES", "REF+", "REF-"
474 #endif
475 #if defined (DEV_AD4116)
476  "ADCIN11", "ADCIN12", "ADCIN13", "ADCIN14", "ADCIN15"
477 #endif
478 };
479 
480 
481 // SIN5+SINC1 Filter ODR map
482 const float sinc5_sinc1_odr_map[] = {
483 #if defined(DEV_AD4115)
489 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
490  defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
495 #elif defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8) ||\
496  defined(DEV_AD7177_2)
497 #if defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8)
499 #endif
502 #elif defined (DEV_AD4116)
507 #endif
508 };
509 
510 const float sinc3_odr_map[] = {
511 #if defined(DEV_AD4115)
517 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
518  defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
522 #if defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114)
525 #else
528 #endif
531  ODR_2_5, ODR_1_25,
532 #elif defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8) ||\
533  defined(DEV_AD7177_2)
534 #if defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8)
537  ODR_15625,
538 #endif
541 #elif defined (DEV_AD4116)
547 #endif
548 };
549 
550 
551 /*
552  * Definition of the channel enable/disable menu items and menu itself
553  */
555  { "Enable Channels", 'E', menu_channels_enable_disable, NULL, SELECT_ENABLE },
556  { "Disable Channels", 'D', menu_channels_enable_disable, NULL, SELECT_DISBLE },
557 };
558 
560  .title = "Channel Enable/Disable Menu",
561  .items = chn_enable_disable_items,
562  .itemCount = ARRAY_SIZE(chn_enable_disable_items),
563  .headerItem = NULL,
564  .footerItem = NULL,
565  .enableEscapeKey = true
566 };
567 
568 
569 /*
570  * Definition of the analog input connection menu items and menu itself
571  */
573 #if defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || defined(DEV_AD4115) || defined (DEV_AD4116)
574  // Input pin name/pair Key Menu Function AINP/AINM Bits
575  //
576  { "VIN0, VIN1", 'A', menu_analog_input_connect, NULL, ((VIN0_INPUT_BITS << VIN_PAIR_OFFSET) | VIN1_INPUT_BITS) },
577  { "VIN0, VINCOM", 'B', menu_analog_input_connect, NULL, ((VIN0_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
578  { "VIN1, VIN0", 'C', menu_analog_input_connect, NULL, ((VIN1_INPUT_BITS << VIN_PAIR_OFFSET) | VIN0_INPUT_BITS) },
579  { "VIN1, VINCOM", 'D', menu_analog_input_connect, NULL, ((VIN1_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
580  { "VIN2, VIN3", 'E', menu_analog_input_connect, NULL, ((VIN2_INPUT_BITS << VIN_PAIR_OFFSET) | VIN3_INPUT_BITS) },
581  { "VIN2, VINCOM", 'F', menu_analog_input_connect, NULL, ((VIN2_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
582  { "VIN3, VIN2", 'G', menu_analog_input_connect, NULL, ((VIN3_INPUT_BITS << VIN_PAIR_OFFSET) | VIN2_INPUT_BITS) },
583  { "VIN3, VINCOM", 'H', menu_analog_input_connect, NULL, ((VIN3_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
584  { "VIN4, VIN5", 'I', menu_analog_input_connect, NULL, ((VIN4_INPUT_BITS << VIN_PAIR_OFFSET) | VIN5_INPUT_BITS) },
585  { "VIN4, VINCOM", 'J', menu_analog_input_connect, NULL, ((VIN4_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
586  { "VIN5, VIN4", 'K', menu_analog_input_connect, NULL, ((VIN5_INPUT_BITS << VIN_PAIR_OFFSET) | VIN4_INPUT_BITS) },
587  { "VIN5, VINCOM", 'L', menu_analog_input_connect, NULL, ((VIN5_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
588  { "VIN6, VIN7", 'M', menu_analog_input_connect,NULL, ((VIN6_INPUT_BITS << VIN_PAIR_OFFSET) | VIN7_INPUT_BITS) },
589  { "VIN6, VINCOM", 'N', menu_analog_input_connect,NULL, ((VIN6_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
590  { "VIN7, VIN6", 'O', menu_analog_input_connect, NULL, ((VIN7_INPUT_BITS << VIN_PAIR_OFFSET) | VIN6_INPUT_BITS) },
591  { "VIN7, VINCOM", 'P', menu_analog_input_connect, NULL, ((VIN7_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
592 #if defined(DEV_AD4111) || defined(DEV_AD4112)
593  { "IN3+, IN3-", 'Q', menu_analog_input_connect, NULL, ((IN3P_INPUT_BITS << VIN_PAIR_OFFSET) | IN3N_INPUT_BITS) },
594  { "IN2+, IN2-", 'R', menu_analog_input_connect, NULL, ((IN2P_INPUT_BITS << VIN_PAIR_OFFSET) | IN2N_INPUT_BITS) },
595  { "IN1+, IN1-", 'S', menu_analog_input_connect, NULL, ((IN1P_INPUT_BITS << VIN_PAIR_OFFSET) | IN1N_INPUT_BITS) },
596  { "IN0+, IN0-", 'T', menu_analog_input_connect, NULL, ((IN0P_INPUT_BITS << VIN_PAIR_OFFSET) | IN0N_INPUT_BITS) },
597 #else // mapping for AD4114/15/16
598  { "VIN8, VIN9", 'Q', menu_analog_input_connect, NULL, ((VIN8_INPUT_BITS << VIN_PAIR_OFFSET) | VIN9_INPUT_BITS) },
599  { "VIN8, VINCOM", 'R', menu_analog_input_connect, NULL, ((VIN8_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
600  { "VIN9, VIN8", 'S', menu_analog_input_connect, NULL, ((VIN9_INPUT_BITS << VIN_PAIR_OFFSET) | VIN8_INPUT_BITS) },
601  { "VIN9, VINCOM", 'T', menu_analog_input_connect, NULL, ((VIN9_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
602  { "VIN10, VIN11", 'U', menu_analog_input_connect, NULL, ((VIN10_INPUT_BITS << VIN_PAIR_OFFSET) | VIN11_INPUT_BITS) },
603  { "VIN10, VINCOM", 'V', menu_analog_input_connect, NULL, ((VIN10_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
604 #if !defined (DEV_AD4116)
605  { "VIN11, VIN10", 'W', menu_analog_input_connect, NULL, ((VIN11_INPUT_BITS << VIN_PAIR_OFFSET) | VIN10_INPUT_BITS) },
606  { "VIN11, VINCOM", 'X', menu_analog_input_connect, NULL, ((VIN11_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
607  { "VIN12, VIN13", 'Y', menu_analog_input_connect, NULL, ((VIN12_INPUT_BITS << VIN_PAIR_OFFSET) | VIN13_INPUT_BITS) },
608  { "VIN12, VINCOM", 'Z', menu_analog_input_connect, NULL, ((VIN12_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
609  { "VIN13, VIN12", '1', menu_analog_input_connect, NULL, ((VIN13_INPUT_BITS << VIN_PAIR_OFFSET) | VIN12_INPUT_BITS) },
610  { "VIN13, VINCOM", '2', menu_analog_input_connect, NULL, ((VIN13_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
611  { "VIN14, VIN15", '3', menu_analog_input_connect, NULL, ((VIN14_INPUT_BITS << VIN_PAIR_OFFSET) | VIN15_INPUT_BITS) },
612  { "VIN14, VINCOM", '4', menu_analog_input_connect, NULL, ((VIN14_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
613  { "VIN15, VIN14", '5', menu_analog_input_connect, NULL, ((VIN15_INPUT_BITS << VIN_PAIR_OFFSET) | VIN14_INPUT_BITS) },
614  { "VIN15, VINCOM", '6', menu_analog_input_connect, NULL, ((VIN15_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
615 #else
616  { "ADCIN11, ADCIN12", 'W', menu_analog_input_connect, NULL, ADCIN11_12_INPUT_BITS },
617  { "ADCIN12, ADCIN11", 'X', menu_analog_input_connect, NULL, ADCIN12_11_INPUT_BITS },
618  { "ADCIN13, ADCIN14", 'Y', menu_analog_input_connect, NULL, ADCIN13_14_INPUT_BITS },
619  { "ADCIN14, ADCIN13", 'Z', menu_analog_input_connect, NULL, ADCIN14_13_INPUT_BITS },
620  { "ADCIN11, ADCIN15", '1', menu_analog_input_connect, NULL, ADCIN11_15_INPUT_BITS },
621  { "ADCIN12, ADCIN15", '2', menu_analog_input_connect, NULL, ADCIN12_15_INPUT_BITS },
622  { "ADCIN13, ADCIN15", '3', menu_analog_input_connect, NULL, ADCIN13_15_INPUT_BITS },
623  { "ADCIN14, ADCIN15", '4', menu_analog_input_connect, NULL, ADCIN14_15_INPUT_BITS },
624 #endif
625 #endif
627  { "Reference", '8', menu_analog_input_connect, NULL, ((REFP_INPUT_BITS << VIN_PAIR_OFFSET) | REFN_INPUT_BITS) },
628 #else
629  { "AIN0", 'A', menu_analog_input_connect, NULL, VIN0_INPUT_BITS },
630  { "AIN1", 'B', menu_analog_input_connect, NULL, VIN1_INPUT_BITS },
631  { "AIN2", 'C', menu_analog_input_connect, NULL, VIN2_INPUT_BITS },
632  { "AIN3", 'D', menu_analog_input_connect, NULL, VIN3_INPUT_BITS },
633  { "AIN4", 'E', menu_analog_input_connect, NULL, VIN4_INPUT_BITS },
634 #if defined(DEV_AD7172_2) || defined(DEV_AD7177_2) || defined(DEV_AD7175_2)
635  { "Temperature Sensor+", 'F', menu_analog_input_connect, NULL, TEMP_SENSOR_POS_INP_BITS },
636  { "Temperature Sensor-", 'G', menu_analog_input_connect, NULL, TEMP_SENSOR_NEG_INP_BITS },
637  { "((AVDD1 - AVSS)/5)+ ", 'H', menu_analog_input_connect, NULL, AVDD1_AVSS_P_BITS },
638  { "((AVDD1 - AVSS)/5)-", 'I', menu_analog_input_connect, NULL, AVDD1_AVSS_N_BITS },
639  { "REF+", 'J', menu_analog_input_connect, NULL, REFP_INPUT_BITS },
640  { "REF-", 'K', menu_analog_input_connect, NULL, REFN_INPUT_BITS },
641 #elif defined(DEV_AD7172_4)
642  { "AIN5", 'F', menu_analog_input_connect, NULL, VIN5_INPUT_BITS },
643  { "AIN6", 'G', menu_analog_input_connect, NULL, VIN6_INPUT_BITS },
644  { "AIN7", 'H', menu_analog_input_connect, NULL, VIN7_INPUT_BITS },
645  { "AIN8", 'I', menu_analog_input_connect, NULL, VIN8_INPUT_BITS },
646  { "((AVDD1 - AVSS)/5)+ ", 'J', menu_analog_input_connect, NULL, AVDD1_AVSS_P_BITS },
647  { "((AVDD1 - AVSS)/5)-", 'K', menu_analog_input_connect, NULL, AVDD1_AVSS_N_BITS },
648  { "REF+", 'L', menu_analog_input_connect, NULL, REFP_INPUT_BITS },
649  { "REF-", 'M', menu_analog_input_connect, NULL, REFN_INPUT_BITS },
650 #elif defined(DEV_AD7176_2)
651  { "REF+", 'F', menu_analog_input_connect, NULL, REFP_INPUT_BITS },
652  { "REF-", 'G', menu_analog_input_connect, NULL, REFN_INPUT_BITS },
653 #elif defined(DEV_AD7173_8) || defined(DEV_AD7175_8)
654  { "AIN5", 'F', menu_analog_input_connect, NULL, VIN5_INPUT_BITS },
655  { "AIN6", 'G', menu_analog_input_connect, NULL, VIN6_INPUT_BITS },
656  { "AIN7", 'H', menu_analog_input_connect, NULL, VIN7_INPUT_BITS },
657  { "AIN8", 'I', menu_analog_input_connect, NULL, VIN8_INPUT_BITS },
658  { "AIN9", 'J', menu_analog_input_connect, NULL, VIN9_INPUT_BITS },
659  { "AIN10", 'K', menu_analog_input_connect, NULL, VIN10_INPUT_BITS },
660  { "AIN11", 'L', menu_analog_input_connect, NULL, VIN11_INPUT_BITS },
661  { "AIN12", 'M', menu_analog_input_connect, NULL, VIN12_INPUT_BITS },
662  { "AIN13", 'N', menu_analog_input_connect, NULL, VIN13_INPUT_BITS },
663  { "AIN14", 'O', menu_analog_input_connect, NULL, VIN14_INPUT_BITS },
664  { "AIN15", 'P', menu_analog_input_connect, NULL, VIN15_INPUT_BITS },
665  { "AIN16", 'Q', menu_analog_input_connect, NULL, VIN16_INPUT_BITS },
666  { "Temperature Sensor+", 'R', menu_analog_input_connect, NULL, TEMP_SENSOR_POS_INP_BITS },
667  { "Temperature Sensor-", 'S', menu_analog_input_connect, NULL, TEMP_SENSOR_NEG_INP_BITS },
668 #if defined(DEV_AD7175_8)
669  { "((AVDD1 - AVSS)/5)+ ", 'T', menu_analog_input_connect, NULL, AVDD1_AVSS_P_BITS },
670  { "((AVDD1 - AVSS)/5)-", 'U', menu_analog_input_connect, NULL, AVDD1_AVSS_N_BITS },
671 #endif
672  { "REF+", 'V', menu_analog_input_connect, NULL, REFP_INPUT_BITS },
673  { "REF-", 'W', menu_analog_input_connect, NULL, REFN_INPUT_BITS },
674 #endif
675 #endif
676 };
677 
679  .title = "Select Analog Input",
682  .headerItem = NULL,
683  .footerItem = NULL,
684  .enableEscapeKey = true
685 };
686 
687 
688 /*
689  * Definition of the open wire detect inputs type menu items and menu itself
690  */
692  { "Single Ended Input", 'S', menu_input_type_selection, NULL, SINGLE_ENDED_INPUT },
693  { "Differential Ended Input", 'D', menu_input_type_selection, NULL, DIFF_ENDED_INPUT },
694 };
695 
697  .title = "Select Analog Input Type",
700  .headerItem = NULL,
701  .footerItem = NULL,
702  .enableEscapeKey = true
703 };
704 
705 
706 /*
707  * Definition of the open wire detect single ended input channel pair menu items and menu itself
708  */
710  { "CHN0, CHN15", 'A', menu_select_chn_pair, NULL, ((ADC_CHN(0) << CHN_PAIR_OFFSET) | ADC_CHN(15)) },
711  { "CHN1, CHN2", 'B', menu_select_chn_pair, NULL, ((ADC_CHN(1) << CHN_PAIR_OFFSET) | ADC_CHN(2)) },
712  { "CHN3, CHN4", 'C', menu_select_chn_pair, NULL, ((ADC_CHN(3) << CHN_PAIR_OFFSET) | ADC_CHN(4)) },
713  { "CHN5, CHN6", 'D', menu_select_chn_pair, NULL, ((ADC_CHN(5) << CHN_PAIR_OFFSET) | ADC_CHN(6)) },
714  { "CHN7, CHN8", 'E', menu_select_chn_pair, NULL, ((ADC_CHN(7) << CHN_PAIR_OFFSET) | ADC_CHN(8)) },
715  { "CHN9, CHN10", 'F', menu_select_chn_pair, NULL, ((ADC_CHN(9) << CHN_PAIR_OFFSET) | ADC_CHN(10)) },
716  { "CHN11, CHN12", 'G', menu_select_chn_pair, NULL, ((ADC_CHN(11) << CHN_PAIR_OFFSET) | ADC_CHN(12)) },
717  { "CHN13, CHN14", 'H', menu_select_chn_pair, NULL, ((ADC_CHN(13) << CHN_PAIR_OFFSET) | ADC_CHN(14)) },
718 };
719 
721  .title = "Select Channel Pair",
724  .headerItem = NULL,
725  .footerItem = NULL,
726  .enableEscapeKey = true
727 };
728 
729 
730 /*
731  * Definition of the open wire detect differential ended input channel pair menu items and menu itself
732  */
734  { "CHN1, CHN2", 'A', menu_select_chn_pair, NULL, ((ADC_CHN(1) << CHN_PAIR_OFFSET) | ADC_CHN(2)) },
735  { "CHN5, CHN6", 'B', menu_select_chn_pair, NULL, ((ADC_CHN(5) << CHN_PAIR_OFFSET) | ADC_CHN(6)) },
736  { "CHN9, CHN10", 'C', menu_select_chn_pair, NULL, ((ADC_CHN(9) << CHN_PAIR_OFFSET) | ADC_CHN(10)) },
737  { "CHN13, CHN14", 'D', menu_select_chn_pair, NULL, ((ADC_CHN(13) << CHN_PAIR_OFFSET) | ADC_CHN(14)) },
738 };
739 
741  .title = "Select Channel Pair",
744  .headerItem = NULL,
745  .footerItem = NULL,
746  .enableEscapeKey = true
747 };
748 
749 
750 /*
751  * Definition of the open wire detect single ended analog inputs menu items and menu itself
752  */
754  { "VIN0, VINCOM", 'A', menu_select_input_pair, NULL, ((VIN0_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
755  { "VIN1, VINCOM", 'B', menu_select_input_pair, NULL, ((VIN1_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
756  { "VIN2, VINCOM", 'C', menu_select_input_pair, NULL, ((VIN2_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
757  { "VIN3, VINCOM", 'D', menu_select_input_pair, NULL, ((VIN3_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
758  { "VIN4, VINCOM", 'E', menu_select_input_pair, NULL, ((VIN4_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
759  { "VIN5, VINCOM", 'F', menu_select_input_pair, NULL, ((VIN5_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
760  { "VIN6, VINCOM", 'G', menu_select_input_pair, NULL, ((VIN6_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
761  { "VIN7, VINCOM", 'H', menu_select_input_pair, NULL, ((VIN7_INPUT_BITS << VIN_PAIR_OFFSET) | VINCOM_INPUT_BITS) },
762 };
763 
765  .title = "Select Analog Inputs",
768  .headerItem = NULL,
769  .footerItem = NULL,
770  .enableEscapeKey = true
771 };
772 
773 
774 /*
775  * Definition of the open wire detect differential ended analog inputs menu items and menu itself
776  */
778  { "VIN0, VIN1", 'A', menu_select_input_pair, NULL, ((VIN0_INPUT_BITS << VIN_PAIR_OFFSET) | VIN1_INPUT_BITS) },
779  { "VIN2, VIN3", 'B', menu_select_input_pair, NULL, ((VIN2_INPUT_BITS << VIN_PAIR_OFFSET) | VIN3_INPUT_BITS) },
780  { "VIN4, VIN5", 'C', menu_select_input_pair, NULL, ((VIN4_INPUT_BITS << VIN_PAIR_OFFSET) | VIN5_INPUT_BITS) },
781  { "VIN6, VIN7", 'D', menu_select_input_pair, NULL, ((VIN6_INPUT_BITS << VIN_PAIR_OFFSET) | VIN7_INPUT_BITS) },
782 };
783 
785  .title = "Select Analog Inputs",
788  .headerItem = NULL,
789  .footerItem = NULL,
790  .enableEscapeKey = true
791 };
792 
793 
794 /*
795  * Definition of the adc register read/write menu items and menu itself
796  */
798  { "Read Device Register", 'R', menu_rw_ad717x_register, NULL, DEVICE_REG_READ_ID },
799  { "Write Device Register", 'W', menu_rw_ad717x_register, NULL, DEVICE_REG_WRITE_ID },
800 };
801 
803  .title = "Register Read/Write Menu",
804  .items = reg_read_write_items,
805  .itemCount = ARRAY_SIZE(reg_read_write_items),
806  .headerItem = NULL,
807  .footerItem = NULL,
808  .enableEscapeKey = true
809 };
810 
811 
812 /*
813  * Definition of the sampling menu items and menu itself
814  */
816  { "Single Conversion Mode", 'S', menu_single_conversion },
817  { "Continuous Conversion Mode - Table View", 'T', menu_continuous_conversion_tabular },
818  { "Continuous Conversion Mode - Stream Data", 'C', menu_continuous_conversion_stream },
819 };
820 
822  .title = "Data Acquisition Menu",
823  .items = acquisition_menu_items,
824  .itemCount = ARRAY_SIZE(acquisition_menu_items),
825  .headerItem = NULL,
826  .footerItem = NULL,
827  .enableEscapeKey = true
828 };
829 
830 
831 /*
832  * Definition of the filter select menu items and menu itself
833  */
835  { "Sinc5+1", 'A', menu_filter_select, NULL, SINC5_SINC1_FILTER },
836  { "Sinc3", 'B', menu_filter_select, NULL, SINC3_FILTER },
837 };
838 
840  .title = "Filter Selection Menu",
841  .items = filter_select_items,
842  .itemCount = ARRAY_SIZE(filter_select_items),
843  .headerItem = NULL,
844  .footerItem = NULL,
845  .enableEscapeKey = true
846 };
847 
848 
849 /*
850  * Definition of the postfilter enable/disable menu items and menu itself
851  */
853  { "Enable", 'E', menu_postfiler_enable_disable, NULL, SELECT_ENABLE },
854  { "Disable", 'D', menu_postfiler_enable_disable, NULL, SELECT_DISBLE },
855 };
856 
858  .title = "Post-filter Enable/Disable Menu",
861  .headerItem = NULL,
862  .footerItem = NULL,
863  .enableEscapeKey = true
864 };
865 
866 
867 /*
868  * Definition of the post-filter select menu items and menu itself
869  */
871  { "27 SPS, 47 dB reject, 36.7 ms settling ",'A', menu_postfiler_select, NULL, POST_FLTR_27_SPS },
872  { "25 SPS, 62 dB reject, 40 ms settling", 'B', menu_postfiler_select, NULL, POST_FLTR_25_SPS },
873  { "20 SPS, 86 dB reject, 50 ms settling", 'C', menu_postfiler_select, NULL, POST_FLTR_20_SPS },
874  { "16.67 SPS, 92 dB reject, 60 ms settling",'D', menu_postfiler_select, NULL, POST_FLTR_16_67_SPS },
875 };
876 
878  .title = "Post-filter Selection Menu",
879  .items = postfilter_select_items,
880  .itemCount = ARRAY_SIZE(postfilter_select_items),
881  .headerItem = NULL,
882  .footerItem = NULL,
883  .enableEscapeKey = true
884 };
885 
886 
887 /*
888  * Definition of the SINC5+SINC1 ODR select menu items and menu itself
889  */
891 #if defined(DEV_AD4115)
898  { ODR_5000_STR, 'G', menu_odr_select, NULL, ODR_5000_BITS },
899  { ODR_2500_STR, 'H', menu_odr_select, NULL, ODR_2500_BITS },
900  { ODR_1000_STR, 'I', menu_odr_select, NULL, ODR_1000_BITS },
901  { ODR_500_STR, 'J', menu_odr_select, NULL, ODR_500_BITS },
903  { ODR_200_STR, 'L', menu_odr_select, NULL, ODR_200_BITS },
904  { ODR_100_STR, 'M', menu_odr_select, NULL, ODR_100_BITS },
907  { ODR_20_STR, 'P', menu_odr_select, NULL, ODR_20_BITS },
909  { ODR_10_STR, 'R', menu_odr_select, NULL, ODR_10_BITS },
910  { ODR_5_STR, 'S', menu_odr_select, NULL, ODR_5_BITS },
911  { ODR_2_5_STR, 'T', menu_odr_select, NULL, ODR_2_5_BITS },
912 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
913  defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
917  { ODR_5208_STR, 'D', menu_odr_select, NULL, ODR_5208_BITS },
918  { ODR_2597_STR, 'E', menu_odr_select, NULL, ODR_2597_BITS },
919  { ODR_1007_STR, 'F', menu_odr_select, NULL, ODR_1007_BITS },
921  { ODR_381_STR, 'H', menu_odr_select, NULL, ODR_381_BITS },
928  { ODR_10_STR, 'O', menu_odr_select, NULL, ODR_10_BITS },
929  { ODR_5_STR, 'P', menu_odr_select, NULL, ODR_5_BITS },
930  { ODR_2_5_STR, 'Q', menu_odr_select, NULL, ODR_2_5_BITS },
931  { ODR_1_25_STR, 'R', menu_odr_select, NULL, ODR_1_25_BITS },
932 #elif defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || \
933  defined(DEV_AD7175_8) || defined(DEV_AD7177_2)
934 #if defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8)
942 #endif
944  { ODR_5000_STR, 'I', menu_odr_select, NULL, ODR_5000_BITS },
945  { ODR_2500_STR, 'J', menu_odr_select, NULL, ODR_2500_BITS },
946  { ODR_1000_STR, 'K', menu_odr_select, NULL, ODR_1000_BITS },
947  { ODR_500_STR, 'L', menu_odr_select, NULL, ODR_500_BITS },
949  { ODR_200_STR, 'N', menu_odr_select, NULL, ODR_200_BITS },
950  { ODR_100_STR, 'O', menu_odr_select, NULL, ODR_100_BITS },
953  { ODR_20_STR, 'R', menu_odr_select, NULL, ODR_20_BITS },
955  { ODR_10_STR, 'T', menu_odr_select, NULL, ODR_10_BITS },
956  { ODR_5_STR, 'U', menu_odr_select, NULL, ODR_5_BITS },
957 #elif defined (DEV_AD4116)
962  { ODR_5194_STR, 'E', menu_odr_select, NULL, ODR_5194_BITS },
963  { ODR_2496_STR, 'F', menu_odr_select, NULL, ODR_2496_BITS },
964  { ODR_1007_STR, 'G', menu_odr_select, NULL, ODR_1007_BITS },
965  { ODR_499_STR, 'H', menu_odr_select, NULL, ODR_499_BITS },
966  { ODR_390_STR, 'I', menu_odr_select, NULL, ODR_390_BITS },
968  { ODR_100_STR, 'K', menu_odr_select, NULL, ODR_100_BITS },
971  { ODR_20_STR, 'N', menu_odr_select, NULL, ODR_20_BITS },
973  { ODR_10_STR, 'P', menu_odr_select, NULL, ODR_10_BITS },
974  { ODR_5_STR, 'Q', menu_odr_select, NULL, ODR_5_BITS },
975  { ODR_2_5_STR, 'R', menu_odr_select, NULL, ODR_2_5_BITS },
977 #endif
978 };
979 
981  .title = "ODR Selection Menu",
984  .headerItem = NULL,
985  .footerItem = NULL,
986  .enableEscapeKey = true
987 };
988 
989 
990 /*
991  * Definition of the SINC3 ODR select menu items and menu itself
992  */
994 #if defined(DEV_AD4115)
1000  { ODR_10417_STR, 'F', menu_odr_select, NULL, ODR_10417_BITS },
1001  { ODR_5000_STR, 'G', menu_odr_select, NULL, ODR_5000_BITS },
1002  { ODR_3906_STR, 'H', menu_odr_select, NULL, ODR_3906_BITS },
1003  { ODR_1157_STR, 'I', menu_odr_select, NULL, ODR_1157_BITS },
1004  { ODR_539_STR, 'J', menu_odr_select, NULL, ODR_539_BITS },
1005  { ODR_401_STR, 'K', menu_odr_select, NULL, ODR_401_BITS },
1006  { ODR_206_STR, 'L', menu_odr_select, NULL, ODR_206_BITS },
1007  { ODR_102_STR, 'M', menu_odr_select, NULL, ODR_102_BITS },
1008  { ODR_59_98_STR, 'N', menu_odr_select, NULL, ODR_59_98_BITS },
1009  { ODR_50_STR, 'O', menu_odr_select, NULL, ODR_50_BITS },
1010  { ODR_20_STR, 'P', menu_odr_select, NULL, ODR_20_BITS },
1011  { ODR_16_67_STR, 'Q', menu_odr_select, NULL, ODR_16_67_BITS },
1012  { ODR_10_STR, 'R', menu_odr_select, NULL, ODR_10_BITS },
1013  { ODR_5_STR, 'S', menu_odr_select, NULL, ODR_5_BITS },
1014  { ODR_2_5_STR, 'T', menu_odr_select, NULL, ODR_2_5_BITS },
1015 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
1016  defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
1017  { ODR_31250_STR, 'A', menu_odr_select, NULL, ODR_31250_BITS },
1018  { ODR_15625_STR, 'B', menu_odr_select, NULL, ODR_15625_BITS },
1019  { ODR_10417_STR, 'C', menu_odr_select, NULL, ODR_10417_BITS },
1020  { ODR_5208_STR, 'D', menu_odr_select, NULL, ODR_5208_BITS },
1021 #if defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114)
1022  { ODR_3906_STR, 'E', menu_odr_select, NULL, ODR_3906_BITS },
1023  { ODR_1157_STR, 'F', menu_odr_select, NULL, ODR_1157_BITS },
1024  { ODR_539_STR, 'G', menu_odr_select, NULL, ODR_539_BITS },
1025  { ODR_401_STR, 'H', menu_odr_select, NULL, ODR_401_BITS },
1026  { ODR_206_STR, 'H', menu_odr_select, NULL, ODR_206_BITS },
1027  { ODR_102_STR, 'I', menu_odr_select, NULL, ODR_102_BITS },
1028 #else
1029  { ODR_2604_STR, 'E', menu_odr_select, NULL, ODR_2604_BITS },
1030  { ODR_1008_STR, 'F', menu_odr_select, NULL, ODR_1008_BITS },
1031  { ODR_504_STR, 'G', menu_odr_select, NULL, ODR_504_BITS },
1032  { ODR_400_6_STR, 'H', menu_odr_select, NULL, ODR_400_6_BITS },
1033  { ODR_200_3_STR, 'H', menu_odr_select, NULL, ODR_200_3_BITS },
1034  { ODR_100_2_STR, 'I', menu_odr_select, NULL, ODR_100_2_BITS },
1035 #endif
1036  { ODR_59_98_STR, 'J', menu_odr_select, NULL, ODR_59_98_BITS },
1037  { ODR_50_STR, 'K', menu_odr_select, NULL, ODR_50_BITS },
1038  { ODR_20_01_STR, 'L', menu_odr_select, NULL, ODR_20_01_BITS },
1039  { ODR_16_67_STR, 'M', menu_odr_select, NULL, ODR_16_67_BITS },
1040  { ODR_10_STR, 'N', menu_odr_select, NULL, ODR_10_BITS },
1041  { ODR_5_STR, 'O', menu_odr_select, NULL, ODR_5_BITS },
1042  { ODR_2_5_STR, 'P', menu_odr_select, NULL, ODR_2_5_BITS },
1043  { ODR_1_25_STR, 'Q', menu_odr_select, NULL, ODR_1_25_BITS },
1044 #elif defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || \
1045  defined(DEV_AD7175_8) || defined(DEV_AD7177_2)
1046 #if defined(DEV_AD7176_2) || defined(DEV_AD7175_2) || defined(DEV_AD7175_8)
1049  { ODR_62500_STR, 'C', menu_odr_select, NULL, ODR_62500_BITS },
1050  { ODR_50000_STR, 'D', menu_odr_select, NULL, ODR_50000_BITS },
1051  { ODR_31250_STR, 'E', menu_odr_select, NULL, ODR_31250_BITS },
1052  { ODR_25000_STR, 'F', menu_odr_select, NULL, ODR_25000_BITS },
1053  { ODR_15625_STR, 'G', menu_odr_select, NULL, ODR_15625_BITS },
1054 #endif
1055  { ODR_10000_STR, 'H', menu_odr_select, NULL, ODR_10000_BITS },
1056  { ODR_5000_STR, 'I', menu_odr_select, NULL, ODR_5000_BITS },
1057  { ODR_2500_STR, 'J', menu_odr_select, NULL, ODR_2500_BITS },
1058  { ODR_1000_STR, 'K', menu_odr_select, NULL, ODR_1000_BITS },
1059  { ODR_500_STR, 'L', menu_odr_select, NULL, ODR_500_BITS },
1060  { ODR_400_STR , 'M', menu_odr_select, NULL, ODR_400_BITS },
1061  { ODR_200_STR, 'N', menu_odr_select, NULL, ODR_200_BITS },
1062  { ODR_100_STR, 'O', menu_odr_select, NULL, ODR_100_BITS },
1063  { ODR_60_STR, 'P', menu_odr_select, NULL, ODR_60_BITS },
1064  { ODR_50_STR, 'Q', menu_odr_select, NULL, ODR_50_BITS },
1065  { ODR_20_STR, 'R', menu_odr_select, NULL, ODR_20_BITS },
1066  { ODR_16_67_STR, 'S', menu_odr_select, NULL, ODR_16_67_BITS },
1067  { ODR_10_STR, 'T', menu_odr_select, NULL, ODR_10_BITS },
1068  { ODR_5_STR, 'U', menu_odr_select, NULL, ODR_5_BITS },
1069 #elif defined (DEV_AD4116)
1070  { ODR_62500_STR, 'A', menu_odr_select, NULL, ODR_62500_BITS },
1071  { ODR_31250_STR, 'B', menu_odr_select, NULL, ODR_31250_BITS },
1072  { ODR_15625_STR, 'C', menu_odr_select, NULL, ODR_15625_BITS },
1073  { ODR_10417_STR, 'D', menu_odr_select, NULL, ODR_10417_BITS },
1074  { ODR_5208_STR, 'E', menu_odr_select, NULL, ODR_5208_BITS },
1075  { ODR_2500_STR, 'F', menu_odr_select, NULL, ODR_2500_BITS },
1076  { ODR_1008_STR, 'G', menu_odr_select, NULL, ODR_1008_BITS },
1077  { ODR_500_STR, 'H', menu_odr_select, NULL, ODR_500_BITS },
1078  { ODR_400_STR, 'I', menu_odr_select, NULL, ODR_400_BITS },
1079  { ODR_200_STR, 'J', menu_odr_select, NULL, ODR_200_BITS },
1080  { ODR_100_STR, 'K', menu_odr_select, NULL, ODR_100_BITS },
1081  { ODR_59_98_STR, 'L', menu_odr_select, NULL, ODR_59_98_BITS },
1082  { ODR_50_STR, 'M', menu_odr_select, NULL, ODR_50_BITS },
1083  { ODR_20_STR, 'N', menu_odr_select, NULL, ODR_20_BITS },
1084  { ODR_16_67_STR, 'O', menu_odr_select, NULL, ODR_16_67_BITS },
1085  { ODR_10_STR, 'P', menu_odr_select, NULL, ODR_10_BITS },
1086  { ODR_5_STR, 'Q', menu_odr_select, NULL, ODR_5_BITS },
1087  { ODR_2_5_STR, 'R', menu_odr_select, NULL, ODR_2_5_BITS },
1088  { ODR_1_25_STR, 'S', menu_odr_select, NULL, ODR_1_25_BITS }
1089 #endif
1090 };
1091 
1093  .title = "ODR Selection Menu",
1096  .headerItem = NULL,
1097  .footerItem = NULL,
1098  .enableEscapeKey = true
1099 };
1100 
1101 
1102 /*
1103  * Definition of the polarity select menu items and menu itself
1104  */
1106  { "Unipolar", 'U', menu_polarity_select, NULL, UNIPOLAR },
1107  { "Bipolar", 'B', menu_polarity_select, NULL, BIPOLAR },
1108 };
1109 
1111  .title = "Polarity Selection Menu",
1112  .items = polarity_select_items,
1113  .itemCount = ARRAY_SIZE(polarity_select_items),
1114  .headerItem = NULL,
1115  .footerItem = NULL,
1116  .enableEscapeKey = true
1117 };
1118 
1119 
1120 /*
1121  * Definition of the refernce source selection menu items and menu itself
1122  */
1124  { "External", 'A', menu_reference_source_select, NULL, EXTERNAL },
1125  { "Internal", 'B', menu_reference_source_select, NULL, INTERNAL },
1126  { "AVDD-AVSS", 'C', menu_reference_source_select, NULL, AVDD_AVSS },
1127 };
1128 
1130  .title = "Reference Selection Menu",
1131  .items = reference_select_items,
1132  .itemCount = ARRAY_SIZE(reference_select_items),
1133  .headerItem = NULL,
1134  .footerItem = NULL,
1135  .enableEscapeKey = true
1136 };
1137 
1138 
1139 /*
1140  * Definition of the reference buffer enable/disable menu items and menu itself
1141  */
1143  { "Enable", 'E', menu_ref_buffer_enable_disable, NULL, SELECT_ENABLE },
1144  { "Disable", 'D', menu_ref_buffer_enable_disable, NULL, SELECT_DISBLE },
1145 };
1146 
1148  .title = "Reference Buffer Enable/Disable Menu",
1151  .headerItem = NULL,
1152  .footerItem = NULL,
1153  .enableEscapeKey = true
1154 };
1155 
1156 
1157 /*
1158  * Definition of the reference buffer enable/disable menu items and menu itself
1159  */
1161  { "Enable", 'E', menu_input_buffer_enable_disable, NULL, SELECT_ENABLE },
1162  { "Disable", 'D', menu_input_buffer_enable_disable, NULL, SELECT_DISBLE },
1163 };
1164 
1166  .title = "Input Buffer Enable/Disable Menu",
1169  .headerItem = NULL,
1170  .footerItem = NULL,
1171  .enableEscapeKey = true
1172 };
1173 
1174 
1175 /*
1176  * Definition of the Main Menu Items and menu itself
1177  */
1179  { "Read Device ID", 'A', menu_read_id },
1180  { "" },
1181  { "Read Status Register", 'B', menu_read_status },
1182  { "" },
1183  { "Sample Channels", 'C', menu_sample_channels },
1184  { "" },
1185  { "Enable/Disable Channels", 'D', menu_chn_enable_disable_display },
1186  { "" },
1187  { "Connect Analog Inputs to Channel", 'E', menu_input_chn_connect_display },
1188  { "" },
1189  { "Configure and Assign Setup", 'F', menu_config_and_assign_setup },
1190  { "" },
1191  { "Display setup", 'G', menu_display_setup },
1192  { "" },
1193  { "Read Temperature", 'H', menu_read_temperature },
1194  { "" },
1195  { "Calibrate ADC (Internal)", 'I', menu_calibrate_adc },
1196  { "" },
1197 #if defined(DEV_AD4111)
1198  { "Open Wire Detection", 'J', menu_open_wire_detection },
1199  { "" },
1200 #endif
1201  { "Read/Write Device Registers", 'K', menu_read_write_device_regs },
1202 };
1203 
1205  .title = "Main Menu",
1206  .items = main_menu_items,
1207  .itemCount = ARRAY_SIZE(main_menu_items),
1208  .headerItem = display_main_menu_header,
1209  .footerItem = NULL,
1210  .enableEscapeKey = false
1211 };
1212 
1213 /******************************************************************************/
1214 /************************ Public Declarations *********************************/
1215 /******************************************************************************/
1216 
1217 #endif /* AD717X_MENU_DEFINES_H_ */
#define ODR_100_STR
Definition: ad717x_menu_defines.h:218
#define ODR_62500_BITS
Definition: ad717x_menu_defines.h:75
#define INTERNAL
Definition: ad717x_menu_defines.h:382
#define VIN3_INPUT_BITS
Definition: ad717x_menu_defines.h:301
console_menu reference_select_menu
Definition: ad717x_menu_defines.h:1129
#define ODR_16_67_BITS
Definition: ad717x_menu_defines.h:271
#define ODR_499_BITS
Definition: ad717x_menu_defines.h:167
#define ODR_397_5_STR
Definition: ad717x_menu_defines.h:182
#define ODR_10
Definition: ad717x_menu_defines.h:277
#define ODR_49_96_STR
Definition: ad717x_menu_defines.h:246
#define ODR_5208_BITS
Definition: ad717x_menu_defines.h:103
#define ODR_10000_STR
Definition: ad717x_menu_defines.h:98
#define SINC3_FILTER
Definition: ad717x_menu_defines.h:371
#define REFP_INPUT_BITS
Definition: ad717x_menu_defines.h:328
#define ADC_CHN(x)
Definition: ad717x_menu_defines.h:344
#define ODR_59_94
Definition: ad717x_menu_defines.h:229
#define ODR_10417_STR
Definition: ad717x_menu_defines.h:94
#define ODR_125000
Definition: ad717x_menu_defines.h:69
#define ODR_49_84
Definition: ad717x_menu_defines.h:249
#define ODR_500_STR
Definition: ad717x_menu_defines.h:162
console_menu_item sinc5_1_data_rate_select_items[]
Definition: ad717x_menu_defines.h:890
#define ODR_200
Definition: ad717x_menu_defines.h:205
int32_t menu_display_setup(uint32_t menu_id)
Handle the menu to display device setup.
Definition: ad717x_console_app.c:1318
int32_t menu_reference_source_select(uint32_t user_input_reference)
Handle the menu to select the reference source.
Definition: ad717x_console_app.c:1103
#define ODR_499
Definition: ad717x_menu_defines.h:165
#define ODR_100_2_BITS
Definition: ad717x_menu_defines.h:215
console_menu_item analog_input_connect_items[]
Definition: ad717x_menu_defines.h:572
#define ODR_60_STR
Definition: ad717x_menu_defines.h:222
#define ODR_10417_BITS
Definition: ad717x_menu_defines.h:95
console_menu open_wire_detect_de_analog_input_menu
Definition: ad717x_menu_defines.h:784
#define ADCIN11_15_INPUT_BITS
Definition: ad717x_menu_defines.h:334
#define ODR_2597_BITS
Definition: ad717x_menu_defines.h:123
#define AVDD_AVSS
Definition: ad717x_menu_defines.h:383
int32_t menu_rw_ad717x_register(uint32_t rw_id)
Definition: ad717x_console_app.c:1976
#define ODR_250000
Definition: ad717x_menu_defines.h:65
int32_t menu_config_and_assign_setup(uint32_t menu_id)
Handle the menu to configure and assign the device setup.
Definition: ad717x_console_app.c:1222
#define ODR_200_3_BITS
Definition: ad717x_menu_defines.h:203
#define ODR_50000_STR
Definition: ad717x_menu_defines.h:78
#define ODR_2_5_BITS
Definition: ad717x_menu_defines.h:287
#define ODR_539_STR
Definition: ad717x_menu_defines.h:150
int32_t menu_analog_input_connect(uint32_t user_analog_input)
Handle the menu to connect input to channel.
Definition: ad717x_console_app.c:859
#define ODR_206_BITS
Definition: ad717x_menu_defines.h:199
#define ODR_50
Definition: ad717x_menu_defines.h:241
#define SINC5_SINC1_FILTER
Definition: ad717x_menu_defines.h:370
#define ODR_59_75
Definition: ad717x_menu_defines.h:233
#define VIN_PAIR_OFFSET
Definition: ad717x_menu_defines.h:340
#define ODR_16_63_STR
Definition: ad717x_menu_defines.h:266
#define ODR_10_STR
Definition: ad717x_menu_defines.h:278
console_menu chn_enable_disable_menu
Definition: ad717x_menu_defines.h:559
#define ODR_5194_BITS
Definition: ad717x_menu_defines.h:111
#define ODR_49_96_BITS
Definition: ad717x_menu_defines.h:247
#define ODR_49_84_STR
Definition: ad717x_menu_defines.h:250
#define SELECT_DISBLE
Definition: ad717x_menu_defines.h:356
#define ODR_504_BITS
Definition: ad717x_menu_defines.h:155
const float sinc3_odr_map[]
Definition: ad717x_menu_defines.h:510
console_menu_item input_buffer_enable_disable_items[]
Definition: ad717x_menu_defines.h:1160
#define ODR_102_STR
Definition: ad717x_menu_defines.h:210
#define ODR_1007_BITS
Definition: ad717x_menu_defines.h:143
#define ODR_390
Definition: ad717x_menu_defines.h:189
#define ODR_59_52
Definition: ad717x_menu_defines.h:237
#define ODR_250000_BITS
Definition: ad717x_menu_defines.h:67
#define ODR_16_65_STR
Definition: ad717x_menu_defines.h:274
console_menu_item acquisition_menu_items[]
Definition: ad717x_menu_defines.h:815
#define ODR_31250_BITS
Definition: ad717x_menu_defines.h:83
#define ODR_2597
Definition: ad717x_menu_defines.h:121
#define IN1N_INPUT_BITS
Definition: ad717x_menu_defines.h:317
#define VINCOM_INPUT_BITS
Definition: ad717x_menu_defines.h:315
int32_t menu_input_chn_connect_display(uint32_t menu_id)
Display the menu selections to connect analog input pins to a channel.
Definition: ad717x_console_app.c:925
console_menu_item open_wire_detect_de_channel_items[]
Definition: ad717x_menu_defines.h:733
#define ODR_2604_BITS
Definition: ad717x_menu_defines.h:119
#define ADCIN14_13_INPUT_BITS
Definition: ad717x_menu_defines.h:333
#define VIN5_INPUT_BITS
Definition: ad717x_menu_defines.h:303
#define CHN_PAIR_OFFSET
Definition: ad717x_menu_defines.h:347
#define ODR_2_5_STR
Definition: ad717x_menu_defines.h:286
#define VIN12_INPUT_BITS
Definition: ad717x_menu_defines.h:310
#define ODR_390_BITS
Definition: ad717x_menu_defines.h:191
const char * enable_disable_status[]
Definition: ad717x_menu_defines.h:394
#define ODR_59_94_STR
Definition: ad717x_menu_defines.h:230
#define ODR_401_BITS
Definition: ad717x_menu_defines.h:171
#define DEVICE_REG_WRITE_ID
Definition: ad717x_menu_defines.h:353
#define ODR_60_BITS
Definition: ad717x_menu_defines.h:223
#define IN2P_INPUT_BITS
Definition: ad717x_menu_defines.h:321
#define ODR_381_STR
Definition: ad717x_menu_defines.h:194
#define ODR_503_8
Definition: ad717x_menu_defines.h:157
#define ODR_125000_STR
Definition: ad717x_menu_defines.h:70
void display_main_menu_header(void)
Display the header info for main menu.
Definition: ad717x_console_app.c:294
#define ODR_49_68_BITS
Definition: ad717x_menu_defines.h:255
#define ODR_49_68
Definition: ad717x_menu_defines.h:253
console_menu_item open_wire_detect_input_type_items[]
Definition: ad717x_menu_defines.h:691
#define ODR_10_BITS
Definition: ad717x_menu_defines.h:279
#define ODR_504
Definition: ad717x_menu_defines.h:153
#define AVDD1_AVSS_N_BITS
Definition: ad717x_menu_defines.h:327
#define ODR_5208
Definition: ad717x_menu_defines.h:101
#define ODR_200_3
Definition: ad717x_menu_defines.h:201
#define ODR_20
Definition: ad717x_menu_defines.h:261
#define ODR_3906_BITS
Definition: ad717x_menu_defines.h:115
#define ODR_1007_STR
Definition: ad717x_menu_defines.h:142
console_menu_item reference_select_items[]
Definition: ad717x_menu_defines.h:1123
#define ODR_401
Definition: ad717x_menu_defines.h:169
#define ODR_49_68_STR
Definition: ad717x_menu_defines.h:254
const char * polarity_status[]
Definition: ad717x_menu_defines.h:400
#define ODR_539
Definition: ad717x_menu_defines.h:149
console_menu open_wire_detect_input_type_menu
Definition: ad717x_menu_defines.h:696
console_menu sinc5_1_data_rate_select_menu
Definition: ad717x_menu_defines.h:980
#define VIN9_INPUT_BITS
Definition: ad717x_menu_defines.h:307
#define ODR_1_25_BITS
Definition: ad717x_menu_defines.h:291
#define VIN10_INPUT_BITS
Definition: ad717x_menu_defines.h:308
#define ODR_503_8_STR
Definition: ad717x_menu_defines.h:158
#define ODR_1008_STR
Definition: ad717x_menu_defines.h:138
#define ODR_206_STR
Definition: ad717x_menu_defines.h:198
const char * postfilter_name[]
Definition: ad717x_menu_defines.h:412
#define ODR_2496_STR
Definition: ad717x_menu_defines.h:130
int32_t menu_postfiler_select(uint32_t user_input_post_filter_type)
Handle the menu to select the post filter.
Definition: ad717x_console_app.c:1014
#define ODR_3906_STR
Definition: ad717x_menu_defines.h:114
#define ODR_16_65
Definition: ad717x_menu_defines.h:273
#define ODR_206
Definition: ad717x_menu_defines.h:197
#define IN3P_INPUT_BITS
Definition: ad717x_menu_defines.h:320
#define VIN0_INPUT_BITS
Definition: ad717x_menu_defines.h:298
#define ODR_62500_STR
Definition: ad717x_menu_defines.h:74
#define ODR_400
Definition: ad717x_menu_defines.h:177
int32_t menu_read_id(uint32_t menu_id)
Handle the menu to read device ID.
Definition: ad717x_console_app.c:306
#define ODR_400_6_STR
Definition: ad717x_menu_defines.h:174
#define ODR_1_25
Definition: ad717x_menu_defines.h:289
console_menu acquisition_menu
Definition: ad717x_menu_defines.h:821
#define ODR_200_BITS
Definition: ad717x_menu_defines.h:207
#define ODR_1000_STR
Definition: ad717x_menu_defines.h:146
#define ODR_2496_BITS
Definition: ad717x_menu_defines.h:131
#define ODR_5000_STR
Definition: ad717x_menu_defines.h:106
#define VIN2_INPUT_BITS
Definition: ad717x_menu_defines.h:300
#define POST_FLTR_16_67_SPS
Definition: ad717x_menu_defines.h:378
console_menu_item chn_enable_disable_items[]
Definition: ad717x_menu_defines.h:554
#define ODR_2604_STR
Definition: ad717x_menu_defines.h:118
#define ODR_59_75_STR
Definition: ad717x_menu_defines.h:234
#define ODR_5
Definition: ad717x_menu_defines.h:281
#define VIN13_INPUT_BITS
Definition: ad717x_menu_defines.h:311
#define ADCIN11_12_INPUT_BITS
Definition: ad717x_menu_defines.h:330
#define VIN15_INPUT_BITS
Definition: ad717x_menu_defines.h:313
int32_t menu_open_wire_detection(uint32_t menu_id)
Handle the menu to perform open wire detection.
Definition: ad717x_console_app.c:1843
#define ODR_539_BITS
Definition: ad717x_menu_defines.h:151
#define ODR_20_01
Definition: ad717x_menu_defines.h:257
int32_t menu_channels_enable_disable(uint32_t action)
Definition: ad717x_console_app.c:797
#define VIN1_INPUT_BITS
Definition: ad717x_menu_defines.h:299
#define ODR_381
Definition: ad717x_menu_defines.h:193
#define AVDD1_AVSS_P_BITS
Definition: ad717x_menu_defines.h:326
#define ODR_1000_BITS
Definition: ad717x_menu_defines.h:147
#define ODR_1_25_STR
Definition: ad717x_menu_defines.h:290
#define ODR_50_BITS
Definition: ad717x_menu_defines.h:243
console_menu ref_buffer_enable_disable_menu
Definition: ad717x_menu_defines.h:1147
#define ODR_15625_BITS
Definition: ad717x_menu_defines.h:91
#define ODR_5_BITS
Definition: ad717x_menu_defines.h:283
#define ODR_2597_STR
Definition: ad717x_menu_defines.h:122
console_menu postfilter_enable_disable_menu
Definition: ad717x_menu_defines.h:857
int32_t menu_read_temperature(uint32_t menu_id)
Handle the menu to read die temperature of device.
Definition: ad717x_console_app.c:1458
#define ODR_15625
Definition: ad717x_menu_defines.h:89
#define ODR_16_63_BITS
Definition: ad717x_menu_defines.h:267
#define ODR_1008
Definition: ad717x_menu_defines.h:137
#define DIFF_ENDED_INPUT
Definition: ad717x_menu_defines.h:361
console_menu_item filter_select_items[]
Definition: ad717x_menu_defines.h:834
const char * reference_name[]
Definition: ad717x_menu_defines.h:423
#define ODR_397_5_BITS
Definition: ad717x_menu_defines.h:183
#define ODR_1157_BITS
Definition: ad717x_menu_defines.h:135
#define ODR_50_STR
Definition: ad717x_menu_defines.h:242
int32_t menu_sample_channels(uint32_t menu_id)
Handle the menu to sample the channels.
Definition: ad717x_console_app.c:787
#define ODR_49_84_BITS
Definition: ad717x_menu_defines.h:251
#define IN0P_INPUT_BITS
Definition: ad717x_menu_defines.h:323
console_menu_item open_wire_detect_se_channel_items[]
Definition: ad717x_menu_defines.h:709
#define IN3N_INPUT_BITS
Definition: ad717x_menu_defines.h:319
#define ODR_59_98
Definition: ad717x_menu_defines.h:225
#define VIN14_INPUT_BITS
Definition: ad717x_menu_defines.h:312
#define REFN_INPUT_BITS
Definition: ad717x_menu_defines.h:329
#define ODR_25000
Definition: ad717x_menu_defines.h:85
#define POST_FLTR_20_SPS
Definition: ad717x_menu_defines.h:377
#define BIPOLAR
Definition: ad717x_menu_defines.h:387
#define ODR_500_BITS
Definition: ad717x_menu_defines.h:163
#define UNIPOLAR
Definition: ad717x_menu_defines.h:386
#define ODR_100_2
Definition: ad717x_menu_defines.h:213
#define ODR_31250_STR
Definition: ad717x_menu_defines.h:82
#define ODR_5194
Definition: ad717x_menu_defines.h:109
#define ODR_499_STR
Definition: ad717x_menu_defines.h:166
#define ODR_5194_STR
Definition: ad717x_menu_defines.h:110
#define ODR_16_63
Definition: ad717x_menu_defines.h:265
#define ODR_200_3_STR
Definition: ad717x_menu_defines.h:202
console_menu ad717x_main_menu
Definition: ad717x_menu_defines.h:1204
console_menu open_wire_detect_de_channel_menu
Definition: ad717x_menu_defines.h:740
console_menu polarity_select_menu
Definition: ad717x_menu_defines.h:1110
#define DEVICE_REG_READ_ID
Definition: ad717x_menu_defines.h:352
#define ODR_59_94_BITS
Definition: ad717x_menu_defines.h:231
#define ODR_400_BITS
Definition: ad717x_menu_defines.h:179
console_menu filter_select_menu
Definition: ad717x_menu_defines.h:839
const char * filter_name[]
Definition: ad717x_menu_defines.h:406
int32_t menu_input_type_selection(uint32_t input_type_id)
Handle the menu to select input type for open wire detection.
Definition: ad717x_console_app.c:1729
int32_t menu_input_buffer_enable_disable(uint32_t user_action)
Handle the menu to enable/disable the input buffers.
Definition: ad717x_console_app.c:1185
#define ODR_1157_STR
Definition: ad717x_menu_defines.h:134
#define ADCIN12_15_INPUT_BITS
Definition: ad717x_menu_defines.h:335
int32_t menu_polarity_select(uint32_t user_input_polarity)
Handle the menu to select the polarity.
Definition: ad717x_console_app.c:1072
#define ADCIN12_11_INPUT_BITS
Definition: ad717x_menu_defines.h:331
#define ODR_1007
Definition: ad717x_menu_defines.h:141
int32_t menu_ref_buffer_enable_disable(uint32_t user_action)
Handle the menu to enable/disable the reference buffers.
Definition: ad717x_console_app.c:1148
console_menu_item postfilter_enable_disable_items[]
Definition: ad717x_menu_defines.h:852
#define ODR_381_BITS
Definition: ad717x_menu_defines.h:195
#define ODR_102
Definition: ad717x_menu_defines.h:209
#define IN0N_INPUT_BITS
Definition: ad717x_menu_defines.h:316
#define ODR_5208_STR
Definition: ad717x_menu_defines.h:102
#define SINGLE_ENDED_INPUT
Definition: ad717x_menu_defines.h:360
#define TEMP_SENSOR_NEG_INP_BITS
Definition: ad717x_menu_defines.h:325
#define ODR_16_65_BITS
Definition: ad717x_menu_defines.h:275
int32_t menu_calibrate_adc(uint32_t menu_id)
Handle the menu to calibrate the device.
Definition: ad717x_console_app.c:1613
console_menu_item sinc3_data_rate_select_items[]
Definition: ad717x_menu_defines.h:993
#define ODR_15625_STR
Definition: ad717x_menu_defines.h:90
#define ODR_10417
Definition: ad717x_menu_defines.h:93
console_menu postfilter_select_menu
Definition: ad717x_menu_defines.h:877
#define ODR_390_STR
Definition: ad717x_menu_defines.h:190
#define ODR_1008_BITS
Definition: ad717x_menu_defines.h:139
int32_t menu_single_conversion(uint32_t channel_id)
Samples all enabled channels once in Single Conversion mode.
Definition: ad717x_console_app.c:657
int32_t menu_continuous_conversion_stream(uint32_t channel_id)
Samples all enabled channels and displays on the console.
Definition: ad717x_console_app.c:638
#define ODR_397_5
Definition: ad717x_menu_defines.h:181
int32_t menu_filter_select(uint32_t user_input_filter_type)
Handle the menu to select the filter type.
Definition: ad717x_console_app.c:948
console_menu open_wire_detect_se_channel_menu
Definition: ad717x_menu_defines.h:720
#define ODR_59_75_BITS
Definition: ad717x_menu_defines.h:235
#define ODR_400_STR
Definition: ad717x_menu_defines.h:178
#define ODR_400_6
Definition: ad717x_menu_defines.h:173
console_menu analog_input_connect_menu
Definition: ad717x_menu_defines.h:678
#define ODR_5000_BITS
Definition: ad717x_menu_defines.h:107
console_menu_item ref_buffer_enable_disable_items[]
Definition: ad717x_menu_defines.h:1142
#define VIN6_INPUT_BITS
Definition: ad717x_menu_defines.h:304
#define ODR_1157
Definition: ad717x_menu_defines.h:133
#define ODR_200_STR
Definition: ad717x_menu_defines.h:206
#define SELECT_ENABLE
Definition: ad717x_menu_defines.h:357
int32_t menu_select_input_pair(uint32_t user_input_pair)
Handle the menu to select input pair for open wire detection.
Definition: ad717x_console_app.c:1757
#define VIN11_INPUT_BITS
Definition: ad717x_menu_defines.h:309
#define ODR_5_STR
Definition: ad717x_menu_defines.h:282
#define ODR_20_BITS
Definition: ad717x_menu_defines.h:263
int32_t menu_odr_select(uint32_t user_input_odr_val)
Handle the menu to select the ODR value.
Definition: ad717x_console_app.c:1043
console_menu_item main_menu_items[]
Definition: ad717x_menu_defines.h:1178
#define ODR_50000
Definition: ad717x_menu_defines.h:77
console_menu reg_read_write_menu
Definition: ad717x_menu_defines.h:802
int32_t menu_chn_enable_disable_display(uint32_t menu_id)
Display the menu to enable/disable channel selection.
Definition: ad717x_console_app.c:848
#define ODR_16_67_STR
Definition: ad717x_menu_defines.h:270
#define ODR_102_BITS
Definition: ad717x_menu_defines.h:211
#define ODR_49_96
Definition: ad717x_menu_defines.h:245
#define ODR_2_5
Definition: ad717x_menu_defines.h:285
int32_t menu_postfiler_enable_disable(uint32_t user_action)
Handle the menu to enable/disable the post filter.
Definition: ad717x_console_app.c:983
#define IN2N_INPUT_BITS
Definition: ad717x_menu_defines.h:318
int32_t menu_select_chn_pair(uint32_t user_channel_pair)
Handle the menu to select channel pair for open wire detection.
Definition: ad717x_console_app.c:1743
#define ODR_2500_STR
Definition: ad717x_menu_defines.h:126
console_menu open_wire_detect_se_analog_input_menu
Definition: ad717x_menu_defines.h:764
#define ODR_503_8_BITS
Definition: ad717x_menu_defines.h:159
console_menu input_buffer_enable_disable_menu
Definition: ad717x_menu_defines.h:1165
#define ODR_5000
Definition: ad717x_menu_defines.h:105
#define ODR_400_6_BITS
Definition: ad717x_menu_defines.h:175
#define ADCIN13_14_INPUT_BITS
Definition: ad717x_menu_defines.h:332
#define ODR_2500
Definition: ad717x_menu_defines.h:125
#define ODR_60
Definition: ad717x_menu_defines.h:221
#define ADCIN14_15_INPUT_BITS
Definition: ad717x_menu_defines.h:337
#define ODR_59_52_STR
Definition: ad717x_menu_defines.h:238
#define ODR_401_STR
Definition: ad717x_menu_defines.h:170
#define POST_FLTR_27_SPS
Definition: ad717x_menu_defines.h:375
#define VIN4_INPUT_BITS
Definition: ad717x_menu_defines.h:302
int32_t menu_read_write_device_regs(uint32_t menu_id)
Handle the menu to read/write device registers.
Definition: ad717x_console_app.c:2019
#define ODR_125000_BITS
Definition: ad717x_menu_defines.h:71
#define ODR_62500
Definition: ad717x_menu_defines.h:73
#define ODR_500
Definition: ad717x_menu_defines.h:161
#define ADCIN13_15_INPUT_BITS
Definition: ad717x_menu_defines.h:336
int32_t menu_read_status(uint32_t menu_id)
Handle the menu to read device status register.
Definition: ad717x_console_app.c:331
#define ODR_100
Definition: ad717x_menu_defines.h:217
#define ODR_20_01_BITS
Definition: ad717x_menu_defines.h:259
#define IN1P_INPUT_BITS
Definition: ad717x_menu_defines.h:322
#define ODR_50000_BITS
Definition: ad717x_menu_defines.h:79
#define ODR_20_01_STR
Definition: ad717x_menu_defines.h:258
console_menu_item open_wire_detect_de_analog_input_items[]
Definition: ad717x_menu_defines.h:777
#define ODR_100_BITS
Definition: ad717x_menu_defines.h:219
#define ODR_20_STR
Definition: ad717x_menu_defines.h:262
console_menu_item polarity_select_items[]
Definition: ad717x_menu_defines.h:1105
#define ODR_16_67
Definition: ad717x_menu_defines.h:269
const char * input_pin_map[]
Definition: ad717x_menu_defines.h:432
#define VIN7_INPUT_BITS
Definition: ad717x_menu_defines.h:305
#define VIN16_INPUT_BITS
Definition: ad717x_menu_defines.h:314
const float sinc5_sinc1_odr_map[]
Definition: ad717x_menu_defines.h:482
#define ODR_59_98_STR
Definition: ad717x_menu_defines.h:226
#define ODR_2604
Definition: ad717x_menu_defines.h:117
#define TEMP_SENSOR_POS_INP_BITS
Definition: ad717x_menu_defines.h:324
#define ODR_31250
Definition: ad717x_menu_defines.h:81
#define ODR_3906
Definition: ad717x_menu_defines.h:113
console_menu_item reg_read_write_items[]
Definition: ad717x_menu_defines.h:797
#define VIN8_INPUT_BITS
Definition: ad717x_menu_defines.h:306
#define ODR_1000
Definition: ad717x_menu_defines.h:145
console_menu_item postfilter_select_items[]
Definition: ad717x_menu_defines.h:870
#define ODR_2500_BITS
Definition: ad717x_menu_defines.h:127
console_menu_item open_wire_detect_se_analog_input_items[]
Definition: ad717x_menu_defines.h:753
console_menu sinc3_data_rate_select_menu
Definition: ad717x_menu_defines.h:1092
int32_t menu_continuous_conversion_tabular(uint32_t channel_id)
Samples all enabled channels and displays in tabular form.
Definition: ad717x_console_app.c:620
#define EXTERNAL
Definition: ad717x_menu_defines.h:381
#define POST_FLTR_25_SPS
Definition: ad717x_menu_defines.h:376
#define ODR_10000_BITS
Definition: ad717x_menu_defines.h:99
#define ODR_504_STR
Definition: ad717x_menu_defines.h:154
#define ODR_59_52_BITS
Definition: ad717x_menu_defines.h:239
#define ODR_10000
Definition: ad717x_menu_defines.h:97
#define ODR_25000_BITS
Definition: ad717x_menu_defines.h:87
#define ODR_59_98_BITS
Definition: ad717x_menu_defines.h:227
#define ODR_100_2_STR
Definition: ad717x_menu_defines.h:214
#define ODR_250000_STR
Definition: ad717x_menu_defines.h:66
#define ODR_25000_STR
Definition: ad717x_menu_defines.h:86
: A simple console menu manager handler
#define ARRAY_SIZE(x)
Definition: adi_console_menu.h:49
Definition: adi_console_menu.h:75
Definition: adi_console_menu.h:89
char * title
Definition: adi_console_menu.h:91