1 // SPDX-License-Identifier: GPL-2.0+
3 * comedi/drivers/ni_routing/ni_device_routes/pxi-6251.c
4 * List of valid routes for specific NI boards.
6 * COMEDI - Linux Control and Measurement Device Interface
7 * Copyright (C) 2016 Spencer E. Olson <olsonse@umich.edu>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * The contents of this file are generated using the tools in
22 * comedi/drivers/ni_routing/tools
24 * Please use those tools to help maintain the contents of this file.
27 #include "../ni_device_routes.h"
30 struct ni_device_routes ni_pxi_6251_device_routes = {
32 .routes = (struct ni_route_set[]){
47 NI_CtrInternalOutput(0),
48 NI_CtrInternalOutput(1),
52 NI_AI_ReferenceTrigger,
59 NI_ChangeDetectionEvent,
60 NI_AnalogComparisonEvent,
78 NI_CtrInternalOutput(0),
79 NI_CtrInternalOutput(1),
83 NI_AI_ReferenceTrigger,
90 NI_ChangeDetectionEvent,
91 NI_AnalogComparisonEvent,
109 NI_CtrInternalOutput(0),
110 NI_CtrInternalOutput(1),
114 NI_AI_ReferenceTrigger,
121 NI_ChangeDetectionEvent,
122 NI_AnalogComparisonEvent,
140 NI_CtrInternalOutput(0),
141 NI_CtrInternalOutput(1),
145 NI_AI_ReferenceTrigger,
152 NI_ChangeDetectionEvent,
153 NI_AnalogComparisonEvent,
171 NI_CtrInternalOutput(0),
172 NI_CtrInternalOutput(1),
176 NI_AI_ReferenceTrigger,
183 NI_ChangeDetectionEvent,
184 NI_AnalogComparisonEvent,
202 NI_CtrInternalOutput(0),
203 NI_CtrInternalOutput(1),
207 NI_AI_ReferenceTrigger,
214 NI_ChangeDetectionEvent,
215 NI_AnalogComparisonEvent,
233 NI_CtrInternalOutput(0),
234 NI_CtrInternalOutput(1),
238 NI_AI_ReferenceTrigger,
245 NI_ChangeDetectionEvent,
246 NI_AnalogComparisonEvent,
264 NI_CtrInternalOutput(0),
265 NI_CtrInternalOutput(1),
269 NI_AI_ReferenceTrigger,
276 NI_ChangeDetectionEvent,
277 NI_AnalogComparisonEvent,
295 NI_CtrInternalOutput(0),
296 NI_CtrInternalOutput(1),
300 NI_AI_ReferenceTrigger,
307 NI_ChangeDetectionEvent,
308 NI_AnalogComparisonEvent,
326 NI_CtrInternalOutput(0),
327 NI_CtrInternalOutput(1),
331 NI_AI_ReferenceTrigger,
338 NI_ChangeDetectionEvent,
339 NI_AnalogComparisonEvent,
357 NI_CtrInternalOutput(0),
358 NI_CtrInternalOutput(1),
362 NI_AI_ReferenceTrigger,
369 NI_ChangeDetectionEvent,
370 NI_AnalogComparisonEvent,
388 NI_CtrInternalOutput(0),
389 NI_CtrInternalOutput(1),
393 NI_AI_ReferenceTrigger,
400 NI_ChangeDetectionEvent,
401 NI_AnalogComparisonEvent,
419 NI_CtrInternalOutput(0),
420 NI_CtrInternalOutput(1),
424 NI_AI_ReferenceTrigger,
431 NI_ChangeDetectionEvent,
432 NI_AnalogComparisonEvent,
450 NI_CtrInternalOutput(0),
451 NI_CtrInternalOutput(1),
455 NI_AI_ReferenceTrigger,
462 NI_ChangeDetectionEvent,
463 NI_AnalogComparisonEvent,
481 NI_CtrInternalOutput(0),
482 NI_CtrInternalOutput(1),
486 NI_AI_ReferenceTrigger,
493 NI_ChangeDetectionEvent,
494 NI_AnalogComparisonEvent,
512 NI_CtrInternalOutput(0),
513 NI_CtrInternalOutput(1),
517 NI_AI_ReferenceTrigger,
524 NI_ChangeDetectionEvent,
525 NI_AnalogComparisonEvent,
530 .dest = TRIGGER_LINE(0),
541 NI_CtrInternalOutput(0),
542 NI_CtrInternalOutput(1),
545 NI_AI_ReferenceTrigger,
551 NI_ChangeDetectionEvent,
552 NI_AnalogComparisonEvent,
557 .dest = TRIGGER_LINE(1),
568 NI_CtrInternalOutput(0),
569 NI_CtrInternalOutput(1),
572 NI_AI_ReferenceTrigger,
578 NI_ChangeDetectionEvent,
579 NI_AnalogComparisonEvent,
584 .dest = TRIGGER_LINE(2),
595 NI_CtrInternalOutput(0),
596 NI_CtrInternalOutput(1),
599 NI_AI_ReferenceTrigger,
605 NI_ChangeDetectionEvent,
606 NI_AnalogComparisonEvent,
611 .dest = TRIGGER_LINE(3),
622 NI_CtrInternalOutput(0),
623 NI_CtrInternalOutput(1),
626 NI_AI_ReferenceTrigger,
632 NI_ChangeDetectionEvent,
633 NI_AnalogComparisonEvent,
638 .dest = TRIGGER_LINE(4),
649 NI_CtrInternalOutput(0),
650 NI_CtrInternalOutput(1),
653 NI_AI_ReferenceTrigger,
659 NI_ChangeDetectionEvent,
660 NI_AnalogComparisonEvent,
665 .dest = TRIGGER_LINE(5),
676 NI_CtrInternalOutput(0),
677 NI_CtrInternalOutput(1),
680 NI_AI_ReferenceTrigger,
686 NI_ChangeDetectionEvent,
687 NI_AnalogComparisonEvent,
692 .dest = TRIGGER_LINE(6),
703 NI_CtrInternalOutput(0),
704 NI_CtrInternalOutput(1),
707 NI_AI_ReferenceTrigger,
713 NI_ChangeDetectionEvent,
714 NI_AnalogComparisonEvent,
719 .dest = TRIGGER_LINE(7),
730 NI_CtrInternalOutput(0),
731 NI_CtrInternalOutput(1),
734 NI_AI_ReferenceTrigger,
740 NI_ChangeDetectionEvent,
741 NI_AnalogComparisonEvent,
746 .dest = NI_CtrSource(0),
777 NI_AnalogComparisonEvent,
782 .dest = NI_CtrSource(1),
814 NI_AnalogComparisonEvent,
819 .dest = NI_CtrGate(0),
846 NI_CtrInternalOutput(1),
849 NI_AI_ReferenceTrigger,
850 NI_AnalogComparisonEvent,
855 .dest = NI_CtrGate(1),
882 NI_CtrInternalOutput(0),
885 NI_AI_ReferenceTrigger,
886 NI_AnalogComparisonEvent,
891 .dest = NI_CtrAux(0),
919 NI_CtrInternalOutput(1),
922 NI_AI_ReferenceTrigger,
923 NI_AnalogComparisonEvent,
928 .dest = NI_CtrAux(1),
956 NI_CtrInternalOutput(0),
959 NI_AI_ReferenceTrigger,
960 NI_AnalogComparisonEvent,
992 NI_AnalogComparisonEvent,
1024 NI_AnalogComparisonEvent,
1025 0, /* Termination */
1056 NI_AnalogComparisonEvent,
1057 0, /* Termination */
1088 NI_AnalogComparisonEvent,
1089 0, /* Termination */
1120 NI_AnalogComparisonEvent,
1121 0, /* Termination */
1152 NI_AnalogComparisonEvent,
1153 0, /* Termination */
1157 .dest = NI_CtrArmStartTrigger(0),
1183 NI_CtrInternalOutput(1),
1186 NI_AI_ReferenceTrigger,
1187 NI_AnalogComparisonEvent,
1188 0, /* Termination */
1192 .dest = NI_CtrArmStartTrigger(1),
1218 NI_CtrInternalOutput(0),
1221 NI_AI_ReferenceTrigger,
1222 NI_AnalogComparisonEvent,
1223 0, /* Termination */
1227 .dest = NI_AI_SampleClock,
1253 NI_CtrInternalOutput(0),
1254 NI_CtrInternalOutput(1),
1256 NI_AI_SampleClockTimebase,
1257 NI_AnalogComparisonEvent,
1258 0, /* Termination */
1262 .dest = NI_AI_SampleClockTimebase,
1292 NI_AnalogComparisonEvent,
1293 0, /* Termination */
1297 .dest = NI_AI_StartTrigger,
1323 NI_CtrInternalOutput(0),
1324 NI_CtrInternalOutput(1),
1326 NI_AnalogComparisonEvent,
1327 0, /* Termination */
1331 .dest = NI_AI_ReferenceTrigger,
1358 NI_AnalogComparisonEvent,
1359 0, /* Termination */
1363 .dest = NI_AI_ConvertClock,
1389 NI_CtrInternalOutput(0),
1390 NI_CtrInternalOutput(1),
1392 NI_AI_ConvertClockTimebase,
1393 NI_AnalogComparisonEvent,
1394 0, /* Termination */
1398 .dest = NI_AI_ConvertClockTimebase,
1400 NI_AI_SampleClockTimebase,
1402 0, /* Termination */
1406 .dest = NI_AI_PauseTrigger,
1433 NI_AnalogComparisonEvent,
1434 0, /* Termination */
1438 .dest = NI_AO_SampleClock,
1464 NI_CtrInternalOutput(0),
1465 NI_CtrInternalOutput(1),
1467 NI_AO_SampleClockTimebase,
1468 NI_AnalogComparisonEvent,
1469 0, /* Termination */
1473 .dest = NI_AO_SampleClockTimebase,
1503 NI_AnalogComparisonEvent,
1504 0, /* Termination */
1508 .dest = NI_AO_StartTrigger,
1536 NI_AnalogComparisonEvent,
1537 0, /* Termination */
1541 .dest = NI_AO_PauseTrigger,
1568 NI_AnalogComparisonEvent,
1569 0, /* Termination */
1573 .dest = NI_DI_SampleClock,
1599 NI_CtrInternalOutput(0),
1600 NI_CtrInternalOutput(1),
1606 NI_ChangeDetectionEvent,
1607 NI_AnalogComparisonEvent,
1608 0, /* Termination */
1612 .dest = NI_DO_SampleClock,
1638 NI_CtrInternalOutput(0),
1639 NI_CtrInternalOutput(1),
1645 NI_ChangeDetectionEvent,
1646 NI_AnalogComparisonEvent,
1647 0, /* Termination */
1650 { /* Termination of list */