📄 chap9.h
字号:
#ifndef CHAP9_H_#define CHAP9_H_/*usb request define*/#define CLEAR_FEATURE 0x1#define GET_CONFIGURATION 0x8#define GET_DESCRIPTOR 0x6#define GET_INTERFACE 0xa#define GET_STATUS 0x0#define SET_ADDRESS 0x5#define SET_CONFIGURATION 0x9#define SET_DESCRIPTOR 0x7#define SET_FEATURE 0x3#define SET_INTERFACE 0xb#define SYNCH_FRAME 0xc/**/typedef struct usbDeviceRequestS{char bmRequestType;char bRequest;short wValue;short wLength;} usbDeviceRequest;typedef struct usbEnuFsmS{char *rxBuf;char *txBuf;char fsmStatus;char usbRequest;} usbEnuFsm;/* function definition*/int analyseUsbRequest(usbDeviceRequest* request);#endif /*CHAP9_H_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -