?? 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_*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -