?? descriptors.h
字號(hào):
/**********************************************************************/
/*File: descriptors.h */
/*Author: duanlifeng */
/* */
/*描述: Defines USB descriptor table constants */
/* */
/* 版權(quán)(c) 2003- 北京合眾達(dá)電子技術(shù)有限責(zé)任公司 */
/**********************************************************************/
#ifndef __DESCRIPTORS_H__
#define __DESCRIPTORS_H__
#define DSCR_DEVICE 1 /* 描述表的類型: Device */
#define DSCR_CONFIG 2 /* 描述表的類型: Configuration */
#define DSCR_STRING 3 /* 描述表的類型: String */
#define DSCR_INTRFC 4 /* 描述表的類型: Interface */
#define DSCR_ENDPNT 5 /* 描述表的類型: Endpoint */
#define DSCR_DEVQUAL 6 /* 描述表的類型: Device Qualifier */
#define DSCR_DEVICE_LEN 18
#define DSCR_CONFIG_LEN 9
#define DSCR_INTRFC_LEN 9
#define DSCR_ENDPNT_LEN 7
#define DSCR_DEVQUAL_LEN 10
#define ET_CONTROL 0 /* 節(jié)點(diǎn)的類型: Control */
#define ET_ISO 1 /* 節(jié)點(diǎn)的類型: Isochronous */
#define ET_BULK 2 /* 節(jié)點(diǎn)的類型: Bulk */
#define ET_INT 3 /* 節(jié)點(diǎn)的類型: Interrupt */
#define DESCTBL_LEN DSCR_DEVICE_LEN + \
DSCR_DEVQUAL_LEN + \
DSCR_CONFIG_LEN + \
DSCR_INTRFC_LEN + \
(4*DSCR_ENDPNT_LEN) + \
DSCR_CONFIG_LEN + \
DSCR_INTRFC_LEN + \
(4*DSCR_ENDPNT_LEN) + \
2+2+2+(2*7)+2+(2*10)
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -