1 // SPDX-License-Identifier: GPL-2.0+
3 * comedi/drivers/ni_routing/ni_device_routes/pci-6259.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_pci_6259_device_routes = {
32 .routes = (struct ni_route_set[]){
48 NI_CtrInternalOutput(0),
49 NI_CtrInternalOutput(1),
52 NI_AI_ReferenceTrigger,
59 NI_ChangeDetectionEvent,
60 NI_AnalogComparisonEvent,
79 NI_CtrInternalOutput(0),
80 NI_CtrInternalOutput(1),
83 NI_AI_ReferenceTrigger,
90 NI_ChangeDetectionEvent,
91 NI_AnalogComparisonEvent,
110 NI_CtrInternalOutput(0),
111 NI_CtrInternalOutput(1),
114 NI_AI_ReferenceTrigger,
121 NI_ChangeDetectionEvent,
122 NI_AnalogComparisonEvent,
141 NI_CtrInternalOutput(0),
142 NI_CtrInternalOutput(1),
145 NI_AI_ReferenceTrigger,
152 NI_ChangeDetectionEvent,
153 NI_AnalogComparisonEvent,
172 NI_CtrInternalOutput(0),
173 NI_CtrInternalOutput(1),
176 NI_AI_ReferenceTrigger,
183 NI_ChangeDetectionEvent,
184 NI_AnalogComparisonEvent,
203 NI_CtrInternalOutput(0),
204 NI_CtrInternalOutput(1),
207 NI_AI_ReferenceTrigger,
214 NI_ChangeDetectionEvent,
215 NI_AnalogComparisonEvent,
234 NI_CtrInternalOutput(0),
235 NI_CtrInternalOutput(1),
238 NI_AI_ReferenceTrigger,
245 NI_ChangeDetectionEvent,
246 NI_AnalogComparisonEvent,
265 NI_CtrInternalOutput(0),
266 NI_CtrInternalOutput(1),
269 NI_AI_ReferenceTrigger,
276 NI_ChangeDetectionEvent,
277 NI_AnalogComparisonEvent,
296 NI_CtrInternalOutput(0),
297 NI_CtrInternalOutput(1),
300 NI_AI_ReferenceTrigger,
307 NI_ChangeDetectionEvent,
308 NI_AnalogComparisonEvent,
327 NI_CtrInternalOutput(0),
328 NI_CtrInternalOutput(1),
331 NI_AI_ReferenceTrigger,
338 NI_ChangeDetectionEvent,
339 NI_AnalogComparisonEvent,
358 NI_CtrInternalOutput(0),
359 NI_CtrInternalOutput(1),
362 NI_AI_ReferenceTrigger,
369 NI_ChangeDetectionEvent,
370 NI_AnalogComparisonEvent,
389 NI_CtrInternalOutput(0),
390 NI_CtrInternalOutput(1),
393 NI_AI_ReferenceTrigger,
400 NI_ChangeDetectionEvent,
401 NI_AnalogComparisonEvent,
420 NI_CtrInternalOutput(0),
421 NI_CtrInternalOutput(1),
424 NI_AI_ReferenceTrigger,
431 NI_ChangeDetectionEvent,
432 NI_AnalogComparisonEvent,
451 NI_CtrInternalOutput(0),
452 NI_CtrInternalOutput(1),
455 NI_AI_ReferenceTrigger,
462 NI_ChangeDetectionEvent,
463 NI_AnalogComparisonEvent,
482 NI_CtrInternalOutput(0),
483 NI_CtrInternalOutput(1),
486 NI_AI_ReferenceTrigger,
493 NI_ChangeDetectionEvent,
494 NI_AnalogComparisonEvent,
513 NI_CtrInternalOutput(0),
514 NI_CtrInternalOutput(1),
517 NI_AI_ReferenceTrigger,
524 NI_ChangeDetectionEvent,
525 NI_AnalogComparisonEvent,
530 .dest = TRIGGER_LINE(0),
542 NI_CtrInternalOutput(0),
543 NI_CtrInternalOutput(1),
546 NI_AI_ReferenceTrigger,
554 NI_ChangeDetectionEvent,
555 NI_AnalogComparisonEvent,
560 .dest = TRIGGER_LINE(1),
572 NI_CtrInternalOutput(0),
573 NI_CtrInternalOutput(1),
576 NI_AI_ReferenceTrigger,
584 NI_ChangeDetectionEvent,
585 NI_AnalogComparisonEvent,
590 .dest = TRIGGER_LINE(2),
602 NI_CtrInternalOutput(0),
603 NI_CtrInternalOutput(1),
606 NI_AI_ReferenceTrigger,
614 NI_ChangeDetectionEvent,
615 NI_AnalogComparisonEvent,
620 .dest = TRIGGER_LINE(3),
632 NI_CtrInternalOutput(0),
633 NI_CtrInternalOutput(1),
636 NI_AI_ReferenceTrigger,
644 NI_ChangeDetectionEvent,
645 NI_AnalogComparisonEvent,
650 .dest = TRIGGER_LINE(4),
662 NI_CtrInternalOutput(0),
663 NI_CtrInternalOutput(1),
666 NI_AI_ReferenceTrigger,
674 NI_ChangeDetectionEvent,
675 NI_AnalogComparisonEvent,
680 .dest = TRIGGER_LINE(5),
692 NI_CtrInternalOutput(0),
693 NI_CtrInternalOutput(1),
696 NI_AI_ReferenceTrigger,
704 NI_ChangeDetectionEvent,
705 NI_AnalogComparisonEvent,
710 .dest = TRIGGER_LINE(6),
722 NI_CtrInternalOutput(0),
723 NI_CtrInternalOutput(1),
726 NI_AI_ReferenceTrigger,
734 NI_ChangeDetectionEvent,
735 NI_AnalogComparisonEvent,
740 .dest = TRIGGER_LINE(7),
752 NI_CtrInternalOutput(0),
753 NI_CtrInternalOutput(1),
756 NI_AI_ReferenceTrigger,
764 NI_ChangeDetectionEvent,
765 NI_AnalogComparisonEvent,
770 .dest = NI_CtrSource(0),
800 NI_AnalogComparisonEvent,
805 .dest = NI_CtrSource(1),
835 NI_AnalogComparisonEvent,
840 .dest = NI_CtrGate(0),
867 NI_CtrInternalOutput(1),
869 NI_AI_ReferenceTrigger,
870 NI_AnalogComparisonEvent,
875 .dest = NI_CtrGate(1),
902 NI_CtrInternalOutput(0),
904 NI_AI_ReferenceTrigger,
905 NI_AnalogComparisonEvent,
910 .dest = NI_CtrAux(0),
939 NI_CtrInternalOutput(1),
941 NI_AI_ReferenceTrigger,
942 NI_AnalogComparisonEvent,
947 .dest = NI_CtrAux(1),
976 NI_CtrInternalOutput(0),
978 NI_AI_ReferenceTrigger,
979 NI_AnalogComparisonEvent,
1010 NI_AnalogComparisonEvent,
1011 0, /* Termination */
1041 NI_AnalogComparisonEvent,
1042 0, /* Termination */
1072 NI_AnalogComparisonEvent,
1073 0, /* Termination */
1103 NI_AnalogComparisonEvent,
1104 0, /* Termination */
1134 NI_AnalogComparisonEvent,
1135 0, /* Termination */
1165 NI_AnalogComparisonEvent,
1166 0, /* Termination */
1170 .dest = NI_CtrArmStartTrigger(0),
1196 NI_CtrInternalOutput(1),
1198 NI_AI_ReferenceTrigger,
1199 NI_AnalogComparisonEvent,
1200 0, /* Termination */
1204 .dest = NI_CtrArmStartTrigger(1),
1230 NI_CtrInternalOutput(0),
1232 NI_AI_ReferenceTrigger,
1233 NI_AnalogComparisonEvent,
1234 0, /* Termination */
1238 .dest = NI_AI_SampleClock,
1264 NI_CtrInternalOutput(0),
1265 NI_CtrInternalOutput(1),
1266 NI_AI_SampleClockTimebase,
1267 NI_AnalogComparisonEvent,
1268 0, /* Termination */
1272 .dest = NI_AI_SampleClockTimebase,
1300 NI_AnalogComparisonEvent,
1301 0, /* Termination */
1305 .dest = NI_AI_StartTrigger,
1331 NI_CtrInternalOutput(0),
1332 NI_CtrInternalOutput(1),
1333 NI_AnalogComparisonEvent,
1334 0, /* Termination */
1338 .dest = NI_AI_ReferenceTrigger,
1364 NI_AnalogComparisonEvent,
1365 0, /* Termination */
1369 .dest = NI_AI_ConvertClock,
1395 NI_CtrInternalOutput(0),
1396 NI_CtrInternalOutput(1),
1397 NI_AI_ConvertClockTimebase,
1398 NI_AnalogComparisonEvent,
1399 0, /* Termination */
1403 .dest = NI_AI_ConvertClockTimebase,
1405 NI_AI_SampleClockTimebase,
1407 0, /* Termination */
1411 .dest = NI_AI_PauseTrigger,
1437 NI_AnalogComparisonEvent,
1438 0, /* Termination */
1442 .dest = NI_AO_SampleClock,
1468 NI_CtrInternalOutput(0),
1469 NI_CtrInternalOutput(1),
1470 NI_AO_SampleClockTimebase,
1471 NI_AnalogComparisonEvent,
1472 0, /* Termination */
1476 .dest = NI_AO_SampleClockTimebase,
1504 NI_AnalogComparisonEvent,
1505 0, /* Termination */
1509 .dest = NI_AO_StartTrigger,
1536 NI_AnalogComparisonEvent,
1537 0, /* Termination */
1541 .dest = NI_AO_PauseTrigger,
1567 NI_AnalogComparisonEvent,
1568 0, /* Termination */
1572 .dest = NI_DI_SampleClock,
1598 NI_CtrInternalOutput(0),
1599 NI_CtrInternalOutput(1),
1604 NI_ChangeDetectionEvent,
1605 NI_AnalogComparisonEvent,
1606 0, /* Termination */
1610 .dest = NI_DO_SampleClock,
1636 NI_CtrInternalOutput(0),
1637 NI_CtrInternalOutput(1),
1642 NI_ChangeDetectionEvent,
1643 NI_AnalogComparisonEvent,
1644 0, /* Termination */
1647 { /* Termination of list */