added GPCTR constants.
authorTim Ousley <tim.ousley@ni.com>
Fri, 20 Apr 2001 19:47:54 +0000 (19:47 +0000)
committerTim Ousley <tim.ousley@ni.com>
Fri, 20 Apr 2001 19:47:54 +0000 (19:47 +0000)
include/comedi.h

index 81f51bfbf81967af6bb94ac12f3773f7c458efe7..740deaa3c13769c0182c323c2425dc9ef35abc10 100644 (file)
@@ -62,6 +62,27 @@ typedef unsigned short sampl_t;
 #define AREF_DIFF      0x02            /* analog ref = differential */
 #define AREF_OTHER     0x03            /* analog ref = other (undefined) */
 
+/* GPCTR options */
+#define GPCTR_RESET            0x0001
+#define GPCTR_SET_SOURCE       0x0002
+#define GPCTR_SET_GATE         0x0004
+#define GPCTR_SET_DIRECTION    0x0008
+#define GPCTR_SET_OPERATION    0x0010
+#define GPCTR_ARM              0x0020
+#define GPCTR_DISARM           0x0040
+
+#define GPCTR_INT_CLOCK                0x0001
+#define GPCTR_EXT_PIN          0x0002
+#define GPCTR_NO_GATE          0x0004
+#define GPCTR_UP               0x0008
+#define GPCTR_DOWN             0x0010
+#define GPCTR_HWUD             0x0020
+#define GPCTR_SIMPLE_EVENT     0x0040
+#define GPCTR_SINGLE_PERIOD    0x0080
+#define GPCTR_SINGLE_PW                0x0100
+#define GPCTR_CONT_PULSE_OUT   0x0200
+#define GPCTR_SINGLE_PULSE_OUT 0x0400
+
 /* instructions */
 
 #define INSN_MASK_WRITE                0x8000000