sync with comedilib
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 7 May 2002 22:58:45 +0000 (22:58 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 7 May 2002 22:58:45 +0000 (22:58 +0000)
include/linux/comedi.h

index 8ebb5ebaa53546c6ca452b0b8e8742697ffa65ec..d1a82670ca95f818493288427f224bad6aa7f483 100644 (file)
@@ -52,11 +52,13 @@ typedef unsigned short sampl_t;
 /* packs and unpacks a channel/range number */
 
 #define CR_PACK(chan,rng,aref)         ( (((aref)&0x3)<<24) | (((rng)&0xff)<<16) | ((chan)&0xffff) )
+#define CR_PACK_FLAGS(chan, range, aref, flags)        (CR_PACK(chan, range, aref) | ((flags) & CR_FLAGS_MASK))
 
 #define CR_CHAN(a)     ((a)&0xffff)
 #define CR_RANGE(a)    (((a)>>16)&0xff)
 #define CR_AREF(a)     (((a)>>24)&0x03)
 
+#define CR_FLAGS_MASK  0xfc000000
 #define CR_ALT_FILTER  (1<<26)
 #define CR_DITHER              CR_ALT_FILTER
 #define CR_DEGLITCH            CR_ALT_FILTER