added GPCTR constants.

This commit is contained in:
Tim Ousley 2001-04-20 19:47:54 +00:00
parent d99990a666
commit 09acff74e9

View 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