usb_pwr.h
资源名称:str711USB.rar [点击查看]
上传用户:yyyd609
上传日期:2022-07-18
资源大小:183k
文件大小:1k
源码类别:
微处理器开发
开发平台:
C/C++
- /******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
- * File Name : usb_pwr.h
- * Author : MCD Application Team
- * Date First Issued : 27/10/2003
- * Description : connection/disconnection & power management
- *
- ********************************************************************************/
- typedef enum _RESUME_STATE{
- RESUME_EXTERNAL,
- RESUME_INTERNAL,
- RESUME_LATER,
- RESUME_WAIT,
- RESUME_START,
- RESUME_ON,
- RESUME_OFF,
- RESUME_ESOF
- } RESUME_STATE;
- typedef enum _DEVICE_STATE{
- UNCONNECTED,
- ATTACHED,
- POWERED,
- DEFAULT,
- ADDRESSED,
- CONFIGURED
- } DEVICE_STATE;
- extern volatile BYTE bDeviceState; /* USB device status */
- extern DWORD dwLedVal; /* alpha-display value */
- extern volatile BOOL fSuspendEnabled; /* true when suspend is possible */
- /* function prototypes */
- void SetFPGAClock(DWORD dwClkVal);
- void Suspend(void);
- void Resume_Init(void);
- void Resume(RESUME_STATE eResumeSetVal);
- void WriteAlphaDisp(DWORD dwLedVal);
- void DisplayDevState(void);