阅读:1018回复:3
关于端点描述符中的bDesscriptorType字段
我看到程序中:
EP1_TXDescr中bEndpointAddress = 0x81; EP1_RXDescr中bEndpointAddress = 0x1; EP2_TXDescr中 bEndpointAddress = 0x82; EP2_RXDescr中 bEndpointAddress = 0x2; 请问其中bEndpointAddress的值是自己定义呢还是D12定义的呢? 我是不知道它为什么是这个值。 谢啦! :P |
|
沙发#
发布于:2003-01-06 16:45
USB 1.1协议标准第九章标准描述表有详细定义.
|
|
|
板凳#
发布于:2003-01-07 17:28
根据硬件实际的端点定义.最高位表示 in/out.
|
|
|
地板#
发布于:2003-01-11 00:51
EP1_TXDescr中bEndpointAddress = 0x81;
EP1_RXDescr中bEndpointAddress = 0x1; EP2_TXDescr中 bEndpointAddress = 0x82; EP2_RXDescr中 bEndpointAddress = 0x2; 0x81 means it is a IN End Point and it\'s number is 0x01. 0x01 means it is a OUT End Point and it\'s number is 0x01. 0x82, 0x01 ........ :D |
|