USB论坛-百合电子工作室USB专题站

 找回密码
 我要注册
搜索
热搜: USB学习板
楼主: 强强
打印 上一主题 下一主题

in,out,setup数据类型以及四种传输类型的区别

[复制链接]

0

主题

0

好友

10

积分

产品用户

Rank: 4

楼主
发表于 2015-8-28 11:16:49 |显示全部楼层
楼主,我在看USB的书,看完之后发现又有其他的见解了。
Bulk、Control、Interrupt和Isochronous这些叫Transaction(事务),IN、OUT、Setup这些叫transfer。一个transfer通常包括多个Transaction。

Each transfer consists of one or more transactions, and each transaction
inturn consists of one, two, or three packets.

The  three  transaction  types  are  defined  by  their  purpose  and  direction  of
data  flow.  Setup  transactions  send  control-transfer  requests  to  a  device.
OUT transactions send other data or status information to the device. IN
transactions send data or status information to the host.

The USB specification defines a transaction as the delivery of service to an
endpoint. Service in this case can mean either the host’s sending information
to the device, or the host’s requesting and receiving information from the
device.

Each  transaction  includes  identifying,  error-checking,  status,  and  control
information as well as any data to be exchanged. A complete transfer may
take place over multiple frames or microframes, but a transaction must com-
plete uninterrupted. No other communication on the bus can break into the
middle of a transaction. Devices thus must be able to respond quickly with
requested data or status information in a transaction. Device firmware typi-
cally configures, or arms, an endpoint to respond to received packets, and
the hardware responds to the packets when they arrive.

A  transfer  with  a  small  amount  of  data  may  require  just  one  transaction.
Other transfers require multiple transactions with a portion of the data in
each.
回复

使用道具 举报

0

主题

0

好友

10

积分

产品用户

Rank: 4

沙发
发表于 2015-8-28 11:52:33 |显示全部楼层
多谢楼主                  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 我要注册

USB开发网 (渝ICP备09006681号-4)

GMT+8, 2024-5-7 07:06 , Processed in 0.042093 second(s), 25 queries .

百合电子工作室版权所有
回顶部