UiUsbDevice.h
上传用户:hjhsjcl
上传日期:2020-09-25
资源大小:11378k
文件大小:2k
源码类别:

压缩解压

开发平台:

C++ Builder

  1. /*==========================================================================
  2. Copyright (c) 2004 ALi Corporation. All Rights Reserved
  3. File: UiCommon.h
  4. content: user interface for USB module
  5. History: Created by TNE 2004/8/17
  6. ==========================================================================*/
  7. #ifdef _UI_USB_H_
  8. #define EXTERN
  9. #else
  10. #define EXTERN extern
  11. #endif
  12. EXTERN API void USB_Suspend(void) large; //050610
  13. //allen051101#4
  14. #define UI_USB_IDLE 0x00
  15. #define UI_USB_READ 0x01
  16. #define UI_USB_WRITE 0x02
  17. #define UI_USB_ISP_START 0x03
  18. #define UI_USB_ISP_END 0x04
  19. #define UI_USB_BUSY 0x05
  20. //tne 2007/01/04 #2 start
  21. #define UI_USB_WAIT 0x11
  22. #define UI_USB_SEARCHING 0x12
  23. #define UI_USB_FIRST_READY 0x13
  24. #if(_PM_MTP_) //allen051101#6
  25. EXTERN API void UiDispCtrl(BYTE bStatus) large;
  26. #endif
  27. //tne 2007/01/04 #2 start
  28. #define UI_USB_RW_MAX_ICON_STEP 6
  29. #define UI_USB_RW_DELAY_NUM 2
  30. #define UI_USB_RW_ICON_COLNUM 24
  31. #define UI_USB_RW_ICON_ROWNUM 124
  32. #define UI_USB_RW_ICON_INTERVAL 15
  33. #define UI_USB_MSC_TYPE_ICON_COL 56
  34. #define UI_USB_MSC_TYPE_ICON_ROW 138
  35. //tne 2007/01/04 #2 end
  36. //Chris070521#1 MTP show Batt lv Start
  37. #if (_PM_MTP_)
  38. #define FirstDelay (0x00FF)
  39. #define StableDelay (0x03FF)
  40. EXTERN XBYTE gxbBattValue;
  41. EXTERN XBYTE gxbBattStableValue;
  42. EXTERN XBYTE gxbBattMax;
  43. EXTERN XBYTE gxbBattMin;
  44. EXTERN BOOL gfMtpEventReady;
  45. EXTERN BOOL gfBattFirstSet;
  46. EXTERN BOOL gfBattChargerEnd; //Chris070521#1
  47. EXTERN XBYTE gxbBattKeep;
  48. EXTERN XWORD gxwBattStableDelay;
  49. #endif
  50. //Chris070521#1 MTP show Batt lv end
  51. #undef EXTERN