17 #ifndef AD717X_MENU_DEFINES_H_
18 #define AD717X_MENU_DEFINES_H_
65 #define ODR_250000 250000.00
66 #define ODR_250000_STR "250000.00"
67 #define ODR_250000_BITS 0x00
69 #define ODR_125000 125000.00
70 #define ODR_125000_STR "125000.00"
71 #define ODR_125000_BITS 0x01
73 #define ODR_62500 62500.00
74 #define ODR_62500_STR "62500.00"
75 #define ODR_62500_BITS 0x02
77 #define ODR_50000 50000.00
78 #define ODR_50000_STR "50000.00"
79 #define ODR_50000_BITS 0x03
81 #define ODR_31250 31250.00
82 #define ODR_31250_STR "31250.00"
83 #define ODR_31250_BITS 0x04
85 #define ODR_25000 25000.00
86 #define ODR_25000_STR "25000.00"
87 #define ODR_25000_BITS 0x05
89 #define ODR_15625 15625.00
90 #define ODR_15625_STR "15625.00"
91 #define ODR_15625_BITS 0x06
93 #define ODR_10417 10417.00
94 #define ODR_10417_STR "10417.00"
95 #define ODR_10417_BITS 0x07
97 #define ODR_10000 10000.00
98 #define ODR_10000_STR "10000.00"
99 #define ODR_10000_BITS 0x07
101 #define ODR_5208 5208.00
102 #define ODR_5208_STR "5208.00"
103 #define ODR_5208_BITS 0x08
105 #define ODR_5000 5000.00
106 #define ODR_5000_STR "5000.00"
107 #define ODR_5000_BITS 0x08
109 #define ODR_5194 5194
110 #define ODR_5194_STR "5194.00"
111 #define ODR_5194_BITS 0x08
113 #define ODR_3906 3906.00
114 #define ODR_3906_STR "3906.00"
115 #define ODR_3906_BITS 0x09
117 #define ODR_2604 2604.00
118 #define ODR_2604_STR "2604.00"
119 #define ODR_2604_BITS 0x09
121 #define ODR_2597 2597.00
122 #define ODR_2597_STR "2597.00"
123 #define ODR_2597_BITS 0x09
125 #define ODR_2500 2500.00
126 #define ODR_2500_STR "2500.00"
127 #define ODR_2500_BITS 0x09
129 #define ODR_2496 2496.00
130 #define ODR_2496_STR "2496.00"
131 #define ODR_2496_BITS 0x09
133 #define ODR_1157 1157.00
134 #define ODR_1157_STR "1157.00"
135 #define ODR_1157_BITS 0x0A
137 #define ODR_1008 1008.00
138 #define ODR_1008_STR "1008.00"
139 #define ODR_1008_BITS 0x0A
141 #define ODR_1007 1007.00
142 #define ODR_1007_STR "1007.00"
143 #define ODR_1007_BITS 0x0A
145 #define ODR_1000 1000.00
146 #define ODR_1000_STR "1000.00"
147 #define ODR_1000_BITS 0x0A
149 #define ODR_539 539.00
150 #define ODR_539_STR "539.00"
151 #define ODR_539_BITS 0x0B
153 #define ODR_504 504.00
154 #define ODR_504_STR "504.00"
155 #define ODR_504_BITS 0x0B
157 #define ODR_503_8 503.80
158 #define ODR_503_8_STR "503.80"
159 #define ODR_503_8_BITS 0x0B
161 #define ODR_500 500.00
162 #define ODR_500_STR "500.00"
163 #define ODR_500_BITS 0x0B
165 #define ODR_499 499.9
166 #define ODR_499_STR "499.9"
167 #define ODR_499_BITS 0x0B
169 #define ODR_401 401.00
170 #define ODR_401_STR "401.00"
171 #define ODR_401_BITS 0x0C
173 #define ODR_400_6 400.60
174 #define ODR_400_6_STR "400.60"
175 #define ODR_400_6_BITS 0x0C
177 #define ODR_400 400.00
178 #define ODR_400_STR "400.00"
179 #define ODR_400_BITS 0x0C
181 #define ODR_397_5 397.50
182 #define ODR_397_5_STR "397.50"
183 #define ODR_397_5_BITS 0x0C
185 #define ODR_397 397.00
186 #define ODR_397_STR "397.00"
187 #define ODR_397_BITS 0x0C
189 #define ODR_390 390.6
190 #define ODR_390_STR "390.60"
191 #define ODR_390_BITS 0x0C
193 #define ODR_381 381.00
194 #define ODR_381_STR "381.00"
195 #define ODR_381_BITS 0x0C
197 #define ODR_206 206.00
198 #define ODR_206_STR "206.00"
199 #define ODR_206_BITS 0x0D
201 #define ODR_200_3 200.3
202 #define ODR_200_3_STR "200.30"
203 #define ODR_200_3_BITS 0x0D
205 #define ODR_200 200.00
206 #define ODR_200_STR "200.00"
207 #define ODR_200_BITS 0x0D
209 #define ODR_102 102.00
210 #define ODR_102_STR "102.00"
211 #define ODR_102_BITS 0x0E
213 #define ODR_100_2 100.20
214 #define ODR_100_2_STR "100.20"
215 #define ODR_100_2_BITS 0x0E
217 #define ODR_100 100.00
218 #define ODR_100_STR "100.00"
219 #define ODR_100_BITS 0x0E
222 #define ODR_60_STR "60.00"
223 #define ODR_60_BITS 0x0F
225 #define ODR_59_98 59.98
226 #define ODR_59_98_STR "59.98"
227 #define ODR_59_98_BITS 0x0F
229 #define ODR_59_94 59.94
230 #define ODR_59_94_STR "59.94"
231 #define ODR_59_94_BITS 0x0F
233 #define ODR_59_75 59.75
234 #define ODR_59_75_STR "59.75"
235 #define ODR_59_75_BITS 0x0F
237 #define ODR_59_52 59.52
238 #define ODR_59_52_STR "59.52"
239 #define ODR_59_52_BITS 0x0F
242 #define ODR_50_STR "50.00"
243 #define ODR_50_BITS 0x10
245 #define ODR_49_96 49.96
246 #define ODR_49_96_STR "49.96"
247 #define ODR_49_96_BITS 0x10
249 #define ODR_49_84 49.84
250 #define ODR_49_84_STR "49.84"
251 #define ODR_49_84_BITS 0x10
253 #define ODR_49_68 49.68
254 #define ODR_49_68_STR "49.68"
255 #define ODR_49_68_BITS 0x10
257 #define ODR_20_01 20.01
258 #define ODR_20_01_STR "20.01"
259 #define ODR_20_01_BITS 0x11
262 #define ODR_20_STR "20.00"
263 #define ODR_20_BITS 0x11
265 #define ODR_16_63 16.63
266 #define ODR_16_63_STR "16.63"
267 #define ODR_16_63_BITS 0x12
269 #define ODR_16_67 16.67
270 #define ODR_16_67_STR "16.67"
271 #define ODR_16_67_BITS 0x12
273 #define ODR_16_65 16.65
274 #define ODR_16_65_STR "16.65"
275 #define ODR_16_65_BITS 0x12
278 #define ODR_10_STR "10.00"
279 #define ODR_10_BITS 0x13
282 #define ODR_5_STR "5.00"
283 #define ODR_5_BITS 0x14
286 #define ODR_2_5_STR "2.50"
287 #define ODR_2_5_BITS 0x15
289 #define ODR_1_25 1.25
290 #define ODR_1_25_STR "1.25"
291 #define ODR_1_25_BITS 0x16
293 #define ODR_RES_STR "RES"
294 #define ODR_RES_BITS 0x17
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
340 #define VIN_PAIR_OFFSET 5
344 #define ADC_CHN(x) (x)
347 #define CHN_PAIR_OFFSET 4
348 #define CHN_PAIR_MASK 0x0F
352 #define DEVICE_REG_READ_ID (uint32_t)1
353 #define DEVICE_REG_WRITE_ID (uint32_t)2
356 #define SELECT_DISBLE (uint32_t)0
357 #define SELECT_ENABLE (uint32_t)1
360 #define SINGLE_ENDED_INPUT (uint32_t)0
361 #define DIFF_ENDED_INPUT (uint32_t)1
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
370 #define SINC5_SINC1_FILTER (uint32_t)0
371 #define SINC3_FILTER (uint32_t)1
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
381 #define EXTERNAL (uint32_t)0
382 #define INTERNAL (uint32_t)2
383 #define AVDD_AVSS (uint32_t)3
386 #define UNIPOLAR (uint32_t)0
387 #define BIPOLAR (uint32_t)1
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",
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",
451 #if defined(DEV_AD7173_8)
454 "((AVDD1 ? AVSS)/5)+",
"((AVDD1 ? AVSS)/5)-",
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)-",
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)-",
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-"
475 #if defined (DEV_AD4116)
476 "ADCIN11",
"ADCIN12",
"ADCIN13",
"ADCIN14",
"ADCIN15"
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)
502 #elif defined (DEV_AD4116)
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)
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)
541 #elif defined (DEV_AD4116)
560 .
title =
"Channel Enable/Disable Menu",
565 .enableEscapeKey =
true
573 #if defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || defined(DEV_AD4115) || defined (DEV_AD4116)
592 #if defined(DEV_AD4111) || defined(DEV_AD4112)
604 #if !defined (DEV_AD4116)
634 #if defined(DEV_AD7172_2) || defined(DEV_AD7177_2) || defined(DEV_AD7175_2)
641 #elif defined(DEV_AD7172_4)
650 #elif defined(DEV_AD7176_2)
653 #elif defined(DEV_AD7173_8) || defined(DEV_AD7175_8)
668 #if defined(DEV_AD7175_8)
679 .
title =
"Select Analog Input",
684 .enableEscapeKey =
true
697 .
title =
"Select Analog Input Type",
702 .enableEscapeKey =
true
721 .
title =
"Select Channel Pair",
726 .enableEscapeKey =
true
741 .
title =
"Select Channel Pair",
746 .enableEscapeKey =
true
765 .
title =
"Select Analog Inputs",
770 .enableEscapeKey =
true
785 .
title =
"Select Analog Inputs",
790 .enableEscapeKey =
true
803 .
title =
"Register Read/Write Menu",
808 .enableEscapeKey =
true
822 .
title =
"Data Acquisition Menu",
827 .enableEscapeKey =
true
840 .
title =
"Filter Selection Menu",
845 .enableEscapeKey =
true
858 .
title =
"Post-filter Enable/Disable Menu",
863 .enableEscapeKey =
true
878 .
title =
"Post-filter Selection Menu",
883 .enableEscapeKey =
true
891 #if defined(DEV_AD4115)
912 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
913 defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
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)
957 #elif defined (DEV_AD4116)
981 .
title =
"ODR Selection Menu",
986 .enableEscapeKey =
true
994 #if defined(DEV_AD4115)
1015 #elif defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114) || \
1016 defined(DEV_AD7172_2) || defined(DEV_AD7172_4) || defined(DEV_AD7173_8)
1021 #if defined(DEV_AD4111) || defined(DEV_AD4112) || defined(DEV_AD4114)
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)
1069 #elif defined (DEV_AD4116)
1093 .
title =
"ODR Selection Menu",
1098 .enableEscapeKey =
true
1111 .
title =
"Polarity Selection Menu",
1116 .enableEscapeKey =
true
1130 .
title =
"Reference Selection Menu",
1135 .enableEscapeKey =
true
1148 .
title =
"Reference Buffer Enable/Disable Menu",
1153 .enableEscapeKey =
true
1166 .
title =
"Input Buffer Enable/Disable Menu",
1171 .enableEscapeKey =
true
1197 #if defined(DEV_AD4111)
1205 .
title =
"Main Menu",
1210 .enableEscapeKey =
false