Added enum for setting output routing of pfi pins on 660x boards.
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 17 Aug 2007 19:49:48 +0000 (19:49 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 17 Aug 2007 19:49:48 +0000 (19:49 +0000)
include/linux/comedi.h

index 4f7a6950f1458ccf3c16b84c1c32e11c8d31c3ee..d9b592098de7b768900b1236023d01ce9269cdbf 100644 (file)
@@ -762,6 +762,18 @@ static inline unsigned NI_PFI_OUTPUT_RTSI(unsigned rtsi_channel)
        return NI_PFI_OUTPUT_RTSI0 + rtsi_channel;
 }
 
+/* Signals which can be routed to output on a NI PFI pin on a 660x board
+ with INSN_CONFIG_SET_ROUTING.  The numbers assigned are
+ not arbitrary, they correspond to the bits required
+ to program the board.  Lines 0 to 7 can only be set to
+ NI_660X_PFI_OUTPUT_DIO.  Lines 32 to 39 can only be set to
+ NI_660X_PFI_OUTPUT_COUNTER. */
+enum ni_660x_pfi_routing
+{
+       NI_660X_PFI_OUTPUT_COUNTER = 1, // counter
+       NI_660X_PFI_OUTPUT_DIO = 2,     // static digital output
+};
+
 /* NI External Trigger lines.  These values are not arbitrary, but are related to
        the bits required to program the board (offset by 1 for historical reasons). */
 static inline unsigned NI_EXT_PFI(unsigned pfi_channel)