From 09acff74e9e0a21deee5889b032e63a4ba8e9b73 Mon Sep 17 00:00:00 2001 From: Tim Ousley Date: Fri, 20 Apr 2001 19:47:54 +0000 Subject: [PATCH] added GPCTR constants. --- include/comedi.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/comedi.h b/include/comedi.h index 81f51bf..740deaa 100644 --- a/include/comedi.h +++ b/include/comedi.h @@ -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 -- 2.26.2