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