usbsetup.h
资源名称:u241mon.zip [点击查看]
上传用户:hank9955
上传日期:2022-08-05
资源大小:14k
文件大小:2k
源码类别:
USB编程
开发平台:
C/C++
- /****************************************************************
- NAME: usbsetup.h
- DESC: usb setup
- HISTORY:
- Mar.25.2002:purnnamu: reuse the source of S3C2400X u24xmon
- ****************************************************************/
- #ifndef __USBSETUP_H__
- #define __USBSETUP_H__
- void Ep0Handler(void);
- void InitDescriptorTable(void);
- void PrintEp0Pkt(U8 *pt);
- #define EP0_STATE_INIT (0)
- //NOTE: The ep0State value in a same group should be added by 1.
- #define EP0_STATE_GD_DEV_0 (10) //10-10=0
- #define EP0_STATE_GD_DEV_1 (11) //11-10=1
- #define EP0_STATE_GD_DEV_2 (12) //12-10=2
- #define EP0_STATE_GD_CFG_0 (20)
- #define EP0_STATE_GD_CFG_1 (21)
- #define EP0_STATE_GD_CFG_2 (22)
- #define EP0_STATE_GD_CFG_3 (23)
- #define EP0_STATE_GD_CFG_4 (24)
- #define EP0_STATE_GD_CFG_ONLY_0 (40)
- #define EP0_STATE_GD_CFG_ONLY_1 (41)
- #define EP0_STATE_GD_IF_ONLY_0 (42)
- #define EP0_STATE_GD_IF_ONLY_1 (43)
- #define EP0_STATE_GD_EP0_ONLY_0 (44)
- #define EP0_STATE_GD_EP1_ONLY_0 (45)
- #define EP0_INTERFACE_GET (46)
- #define EP0_STATE_GD_STR_I0 (30)
- #define EP0_STATE_GD_STR_I1 (31)
- #define EP0_STATE_GD_STR_I2 (32)
- #define EP0_CONFIG_SET (33)
- #define EP0_GET_STATUS0 (35)
- #define EP0_GET_STATUS1 (36)
- #define EP0_GET_STATUS2 (37)
- #define EP0_GET_STATUS3 (38)
- #define EP0_GET_STATUS4 (39)
- #define EP0_SETUP_INIT_STATE (0)
- #define EP0_SETUP_STATE (1)
- #define EP0_IN_DATA_STATE (2)
- #define EP0_OUT_DATA_STATE (3)
- #define EP0_DATA_END_STATE (4)
- #define EP0_HANDSHAKE_STATE (5)
- extern U32 ep0State;
- #endif /*__USBSETUP_H__*/