lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*********************************************************************
|
| 2 | * °æÈ¨ËùÓÐ (C)2003, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
|
| 3 | *
|
| 4 | * ÎļþÃû³Æ£º drvs_bits.h
|
| 5 | * ÄÚÈÝÕªÒª£º ΪÑÚÂ붨Òå
|
| 6 | * ×÷ Õߣº ÖÐÐËͨѶ £º¹Ù»ª²®
|
| 7 | * Íê³ÉÈÕÆÚ£º 2006Äê04ÔÂ18ÈÕ
|
| 8 | **********************************************************************/
|
| 9 |
|
| 10 | /*ÐÞ¸ÄÀúÊ·£º
|
| 11 | 2006-04-18: hbguan,´´½¨
|
| 12 | */
|
| 13 |
|
| 14 | #ifndef _BITS_H
|
| 15 | #define _BITS_H
|
| 16 |
|
| 17 | #ifdef __cplusplus
|
| 18 | extern "C"
|
| 19 | {
|
| 20 | #endif
|
| 21 |
|
| 22 | typedef unsigned long WORD32;
|
| 23 |
|
| 24 | /* ¶¨ÒåλÑÚÂë*/
|
| 25 | #define bit01 ((WORD32)0x00000001)
|
| 26 | #define bit02 ((WORD32)0x00000003)
|
| 27 | #define bit03 ((WORD32)0x00000007)
|
| 28 | #define bit04 ((WORD32)0x0000000f)
|
| 29 | #define bit05 ((WORD32)0x0000001f)
|
| 30 | #define bit06 ((WORD32)0x0000003f)
|
| 31 | #define bit07 ((WORD32)0x0000007f)
|
| 32 | #define bit08 ((WORD32)0x000000ff)
|
| 33 | #define bit09 ((WORD32)0x000001ff)
|
| 34 | #define bit10 ((WORD32)0x000003ff)
|
| 35 | #define bit11 ((WORD32)0x000007ff)
|
| 36 | #define bit12 ((WORD32)0x00000fff)
|
| 37 | #define bit13 ((WORD32)0x00001fff)
|
| 38 | #define bit14 ((WORD32)0x00003fff)
|
| 39 | #define bit15 ((WORD32)0x00007fff)
|
| 40 | #define bit16 ((WORD32)0x0000ffff)
|
| 41 | #define bit17 ((WORD32)0x0001ffff)
|
| 42 | #define bit18 ((WORD32)0x0003ffff)
|
| 43 | #define bit19 ((WORD32)0x0007ffff)
|
| 44 | #define bit20 ((WORD32)0x000fffff)
|
| 45 | #define bit21 ((WORD32)0x001fffff)
|
| 46 | #define bit22 ((WORD32)0x003fffff)
|
| 47 | #define bit23 ((WORD32)0x007fffff)
|
| 48 | #define bit24 ((WORD32)0x00ffffff)
|
| 49 | #define bit25 ((WORD32)0x01ffffff)
|
| 50 | #define bit26 ((WORD32)0x03ffffff)
|
| 51 | #define bit27 ((WORD32)0x07ffffff)
|
| 52 | #define bit28 ((WORD32)0x0fffffff)
|
| 53 | #define bit29 ((WORD32)0x1fffffff)
|
| 54 | #define bit30 ((WORD32)0x3fffffff)
|
| 55 | #define bit31 ((WORD32)0x7fffffff)
|
| 56 | #define bit32 ((WORD32)0xffffffff)
|
| 57 |
|
| 58 |
|
| 59 | #ifdef __cplusplus
|
| 60 | }
|
| 61 | #endif
|
| 62 |
|
| 63 | #endif /* _BITS_H */
|
| 64 |
|
| 65 |
|