chap9.h
来自「网上收集的利用nios软核」· C头文件 代码 · 共 38 行
H
38 行
#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 + =
减小字号Ctrl + -
显示快捷键?