基于OHCI的USB主机 —— OHCI(ED结构说明)-阿里云开发者社区

开发者社区> 余二五> 正文

基于OHCI的USB主机 —— OHCI(ED结构说明)

简介:
+关注继续查看
ED结构说明
节选自OHCI的规范。
Name
HC
Access
Description
FA
R
FunctionAddress
This is the USB address of the function containing the endpoint that this ED controls
EN
R
EndpointNumber
This is the USB address of the endpoint within the function
D
R
Direction
This 2-bit field indicates the direction of data flow (IN or OUT.)  If neither IN nor OUT is specified, then the direction is determined from the PID field of the TD. The encoding of the bits of this field are:
 
 
Code
Direction
 
 
 
00b
Get direction From TD
 
 
 
01b
OUT
 
 
 
10b
IN
 
 
 
11b
Get direction From TD
 
 

 
 
 
S
R
Speed
Indicates the speed of the endpoint: full-speed (S = 0) or low-speed (S = 1.)
K
R
sKip
When this bit is set, the HC continues on to the next ED on the list without attempting access to the TD queue or issuing any USB token for the endpoint
F
R
Format
This bit indicates the format of the TDs linked to this ED.  If this is a Control, Bulk, or Interrupt Endpoint, then F = 0, indicating that the General TD format is used.  If this is an Isochronous Endpoint, then F = 1, indicating that the Isochronous TD format is used.
MPS
R
MaximumPacketSize
This field indicates the maximum number of bytes that can be sent to or received from the endpoint in a single data packet
TailP
R
TDQueueTailPointer
If TailP and HeadP are the same, then the list contains no TD that the HC can process.  If TailP and HeadP are different, then the list contains a TD to be processed.
H
R/W
Halted
This bit is set by the HC to indicate that processing of the TD queue on the endpoint is halted, usually due to an error in processing a TD.
C
R/W
toggleCarry
This bit is the data toggle carry bit.  Whenever a TD is retired, this bit is written to contain the last data toggle value (LSb of data Toggle field) from the retired TD.  This field is not used for Isochronous Endpoints
HeadP
R/W
TDQueueHeadPointer
Points to the next TD to be processed for this endpoint.
NextED
R
NextED
If nonzero, then this entry points to the next ED on the list





本文转自 tywali 51CTO博客,原文链接:http://blog.51cto.com/lancelot/240821,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
10074 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
13882 0
阿里云ECS云服务器初始化设置教程方法
阿里云ECS云服务器初始化是指将云服务器系统恢复到最初状态的过程,阿里云的服务器初始化是通过更换系统盘来实现的,是免费的,阿里云百科网分享服务器初始化教程: 服务器初始化教程方法 本文的服务器初始化是指将ECS云服务器系统恢复到最初状态,服务器中的数据也会被清空,所以初始化之前一定要先备份好。
7365 0
+关注
20382
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载