usb_ep0.h

来自「S3C2440ARM9开发板的USB驱动程序」· C头文件 代码 · 共 55 行

H
55
字号
/* *  Copyright (C) Intrinsyc, Inc., 2002 * *  usb_ep0.h * */#ifndef __USB_EP0_H#define __USB_EP0_H/*================================================ * USB Protocol Stuff *//* Request Codes   */enum { 	GET_STATUS		=0,	CLEAR_FEATURE		=1,	/* reserved		=2 */	SET_FEATURE		=3,	/* reserved		=4 */	SET_ADDRESS		=5,        	GET_DESCRIPTOR		=6,	SET_DESCRIPTOR		=7,	GET_CONFIGURATION	=8,	SET_CONFIGURATION	=9,	GET_INTERFACE		=10,	SET_INTERFACE		=11,	SYNCH_FRAME		=12};/* USB Device Requests */typedef struct{	__u8 bmRequestType;	__u8 bRequest;	__u16 wValue;	__u16 wIndex;	__u16 wLength;} usb_dev_request_t  __attribute__ ((packed));/* Data extraction from usb_request_t fields */enum { 	kTargetDevice	=0,	kTargetInterface=1,	kTargetEndpoint	=2 };/* Standard Feature Selectors */enum { 	fEndpoint_Halt = 0, 	fDevice_Remote_Wakeup = 1 };#endif /* _USB_EP0_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?