de3_drv.h
来自「linux嵌入式课程实践中的一个关于声卡驱动程序 。」· C头文件 代码 · 共 48 行
H
48 行
#ifndef __DE3_DRV_H_#define __DE3_DRV_H_#define CONTROL_EP 0x0#define BULK_IN_EP 0x1#define BULK_OUT_EP 0x2#define BULK_OUT2_EP 0x3#define MAX_DEVICES 16#define MAX_BULK_IN_EP 4#define MAX_BULK_OUT_EP 4#define MAX_ISOC_IN_EP 4#define MAX_ISOC_OUT_EP 4#define MAX_INT_IN_EP 4#define MAX_INT_IN_EP 4#define MAX_INT_BUF 5#define MAX_BULK_IN_SIZE 64#define MAX_BULK_OUT_SIZE 64 #define DE3_DEVICE_CLASS 0x0#define DE3_DEVICE_SUBCLASS 0x0#define DE3_DEVICE_PROTOCOL 0x0#define DE3_VENDOR_ID 0x04B4#define DE3_PRODUCT_ID 0xDE04#define DE3_MANUFACTURER_STR "Cypress Semiconductor"#define DE3_PRODUCT_STR "Design Example 3"#define DE3_SERIAL_NUMBER_STR "123456789"#define HID_REPORT_SIZE 0x8#define HID_REPORT_VALID 0x1#define HID_REPORT_INVALID 0x0/* IOCTL command define(s) */#define IOCTL_GET_REPORT 123/* BOOT PROTOCOL KEYBOARD HID REPORT STRUCT */typedef struct hid_keyboard_report_struct{ int valid; unsigned char report[HID_REPORT_SIZE];} hid_keyboard_report_t;#endif /* __DE3_DRV_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?