📄 usb_class_requests.h
字号:
//-----------------------------------------------------------------------------
// USB_Class_Requests.h
//-----------------------------------------------------------------------------
#ifndef USB_CLASS_REQUEST_H
#define USB_CLASS_REQUEST_H
//-----------------------------------------------------------------------------
// Definition of Class specific request for CDC
//-----------------------------------------------------------------------------
// CDC ACM class specifc requests
#define SEND_ENCAPSULATED_COMMAND 0x00
#define GET_ENCAPSULATED_RESPONSE 0x01
#define SET_LINE_CODING 0x20
#define GET_LINE_CODING 0x21
#define SET_CONTROL_LINE_STATE 0x22
#define SEND_BREAK 0x23
//-----------------------------------------------------------------------------
// Definition of Class specific request for HID
//-----------------------------------------------------------------------------
// HID class specifc requests
#define HID_REQ_GET_REPORT 0x01
#define HID_REQ_GET_IDLE 0x02
#define HID_REQ_GET_PROTOCOL 0x03
#define HID_REQ_SET_REPORT 0x09
#define HID_REQ_SET_IDLE 0x0A
#define HID_REQ_SET_PROTOCOL 0x0B
// HID report type
#define HID_REPORT_TYPE_INPUT 0x01
#define HID_REPORT_TYPE_OUTPUT 0x02
#define HID_REPORT_TYPE_FEATURE 0x03
// Protocol type definition
#define HID_PROTOCOL_BOOT 0
#define HID_PROTOCOL_REPORT 1
//-----------------------------------------------------------------------------
// Global variables
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
void Class_Request( void );
#endif // USB_CLASS_REQUEST_H
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -