From: David Schleef Date: Sat, 12 Feb 2000 22:47:41 +0000 (+0000) Subject: changed command flags to a bitfield X-Git-Tag: r0_7_40~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=442d9e8314dcfbe79cbc547e8c54e3f9659dad64;p=comedi.git changed command flags to a bitfield --- diff --git a/include/comedi.h b/include/comedi.h index 06b3a32e..d9d9921e 100644 --- a/include/comedi.h +++ b/include/comedi.h @@ -74,17 +74,17 @@ typedef unsigned short sampl_t; /* trigger sources */ -#define TRIG_ANY 0 -#define TRIG_NONE 0 /* never trigger */ -#define TRIG_NOW 1 /* trigger now + N ns */ -#define TRIG_FOLLOW 2 /* trigger on next lower level trig */ -#define TRIG_TIME 3 /* trigger at time N ns */ -#define TRIG_TIMER 4 /* trigger at rate N ns */ -#define TRIG_COUNT 5 /* trigger when count reaches N */ -#define TRIG_EXT 6 /* trigger on external signal N */ -#define TRIG_INT 7 /* trigger on comedi-internal signal N */ - -#define TRIG_INVAL 8 /* choice was invalid */ +#define TRIG_ANY 0xffffffff +#define TRIG_NONE 0x00000001 /* never trigger */ +#define TRIG_NOW 0x00000002 /* trigger now + N ns */ +#define TRIG_FOLLOW 0x00000004 /* trigger on next lower level trig */ +#define TRIG_TIME 0x00000008 /* trigger at time N ns */ +#define TRIG_TIMER 0x00000010 /* trigger at rate N ns */ +#define TRIG_COUNT 0x00000020 /* trigger when count reaches N */ +#define TRIG_EXT 0x00000040 /* trigger on external signal N */ +#define TRIG_INT 0x00000080 /* trigger on comedi-internal signal N */ + +#define TRIG_INVAL 0x00000100 /* choice was invalid */ /* subdevice flags */