/********************************************************************* | |
* °æÈ¨ËùÓÐ (C)2003, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
* | |
* ÎļþÃû³Æ£º drvs_bits.h | |
* ÄÚÈÝÕªÒª£º ΪÑÚÂ붨Òå | |
* ×÷ Õߣº ÖÐÐËͨѶ £º¹Ù»ª²® | |
* Íê³ÉÈÕÆÚ£º 2006Äê04ÔÂ18ÈÕ | |
**********************************************************************/ | |
/*ÐÞ¸ÄÀúÊ·£º | |
2006-04-18: hbguan,´´½¨ | |
*/ | |
#ifndef _BITS_H | |
#define _BITS_H | |
#ifdef __cplusplus | |
extern "C" | |
{ | |
#endif | |
typedef unsigned long WORD32; | |
/* ¶¨ÒåλÑÚÂë*/ | |
#define bit01 ((WORD32)0x00000001) | |
#define bit02 ((WORD32)0x00000003) | |
#define bit03 ((WORD32)0x00000007) | |
#define bit04 ((WORD32)0x0000000f) | |
#define bit05 ((WORD32)0x0000001f) | |
#define bit06 ((WORD32)0x0000003f) | |
#define bit07 ((WORD32)0x0000007f) | |
#define bit08 ((WORD32)0x000000ff) | |
#define bit09 ((WORD32)0x000001ff) | |
#define bit10 ((WORD32)0x000003ff) | |
#define bit11 ((WORD32)0x000007ff) | |
#define bit12 ((WORD32)0x00000fff) | |
#define bit13 ((WORD32)0x00001fff) | |
#define bit14 ((WORD32)0x00003fff) | |
#define bit15 ((WORD32)0x00007fff) | |
#define bit16 ((WORD32)0x0000ffff) | |
#define bit17 ((WORD32)0x0001ffff) | |
#define bit18 ((WORD32)0x0003ffff) | |
#define bit19 ((WORD32)0x0007ffff) | |
#define bit20 ((WORD32)0x000fffff) | |
#define bit21 ((WORD32)0x001fffff) | |
#define bit22 ((WORD32)0x003fffff) | |
#define bit23 ((WORD32)0x007fffff) | |
#define bit24 ((WORD32)0x00ffffff) | |
#define bit25 ((WORD32)0x01ffffff) | |
#define bit26 ((WORD32)0x03ffffff) | |
#define bit27 ((WORD32)0x07ffffff) | |
#define bit28 ((WORD32)0x0fffffff) | |
#define bit29 ((WORD32)0x1fffffff) | |
#define bit30 ((WORD32)0x3fffffff) | |
#define bit31 ((WORD32)0x7fffffff) | |
#define bit32 ((WORD32)0xffffffff) | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif /* _BITS_H */ | |