gbitdefs.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gbitdefs.h
  5. **
  6. ** \brief General bit constants.
  7. **
  8. ** (C) Copyright 2012-2013 by Goke Microelectronics Shanghai Branch
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \version \$Revision: 1.0 $
  15. **
  16. ******************************************************************************/
  17. #ifndef _GBITDEFS_H_
  18. #define _GBITDEFS_H_
  19. #define BIT0 0x0001 //!< Bit 0.
  20. #define BIT1 0x0002 //!< Bit 1.
  21. #define BIT2 0x0004 //!< Bit 2.
  22. #define BIT3 0x0008 //!< Bit 3.
  23. #define BIT4 0x0010 //!< Bit 4.
  24. #define BIT5 0x0020 //!< Bit 5.
  25. #define BIT6 0x0040 //!< Bit 6.
  26. #define BIT7 0x0080 //!< Bit 7.
  27. #define BIT8 0x0100 //!< Bit 8.
  28. #define BIT9 0x0200 //!< Bit 9.
  29. #define BIT10 0x0400 //!< Bit 10.
  30. #define BIT11 0x0800 //!< Bit 11.
  31. #define BIT12 0x1000 //!< Bit 12.
  32. #define BIT13 0x2000 //!< Bit 13.
  33. #define BIT14 0x4000 //!< Bit 14.
  34. #define BIT15 0x8000 //!< Bit 15.
  35. #define BIT16 0x00010000 //!< Bit 16.
  36. #define BIT17 0x00020000 //!< Bit 17.
  37. #define BIT18 0x00040000 //!< Bit 18.
  38. #define BIT19 0x00080000 //!< Bit 19.
  39. #define BIT20 0x00100000 //!< Bit 20.
  40. #define BIT21 0x00200000 //!< Bit 21.
  41. #define BIT22 0x00400000 //!< Bit 22.
  42. #define BIT23 0x00800000 //!< Bit 23.
  43. #define BIT24 0x01000000 //!< Bit 24.
  44. #define BIT25 0x02000000 //!< Bit 25.
  45. #define BIT26 0x04000000 //!< Bit 26.
  46. #define BIT27 0x08000000 //!< Bit 27.
  47. #define BIT28 0x10000000 //!< Bit 28.
  48. #define BIT29 0x20000000 //!< Bit 29.
  49. #define BIT30 0x40000000 //!< Bit 30.
  50. #define BIT31 0x80000000 //!< Bit 31.
  51. #define BIT16IH 0x0001
  52. #define BIT17IH 0x0002
  53. #define BIT18IH 0x0004
  54. #define BIT19IH 0x0008
  55. #define BIT20IH 0x0010
  56. #define BIT21IH 0x0020
  57. #define BIT22IH 0x0040
  58. #define BIT23IH 0x0080
  59. #define BIT24IH 0x0100
  60. #define BIT25IH 0x0200
  61. #define BIT26IH 0x0400
  62. #define BIT27IH 0x0800
  63. #define BIT28IH 0x1000
  64. #define BIT29IH 0x2000
  65. #define BIT30IH 0x4000
  66. #define BIT31IH 0x8000
  67. #endif /* _GBITDEFS_H_ */