📄 usb_ep0.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -