stm32的USB的同步断点的双缓冲问题

[复制链接]
 楼主| icer1 发表于 2010-2-21 14:44 | 显示全部楼层 |阅读模式
在学习stm32的usb,资料上面说,双缓冲是批量和同步模式下使用的。

在看资料有几个问题不明白:

1.工作在批量模式下,端点可以通过设置EP-KIND进入双缓存模式,使用SetEPDoubleBuff()函数。问题是,在同步模式下,怎么进入双缓存模式呢

2.同步模式下,是不是必须使用双缓存呢
STARM 发表于 2013-6-16 11:43 | 显示全部楼层
Isochronous endpoints implement double-buffering
to ease application software development, using both ‘transmission’ and ‘reception’ packet
memory areas to manage buffer swapping on each successful transaction in order to have
always a complete buffer to be used by the application, while the USB peripheral fills the
other.
The memory buffer which is currently used by the USB peripheral is defined by the DTOG
bit related to the endpoint direction (DTOG_RX for ‘reception’ isochronous endpoints,
DTOG_TX for ‘transmission’ isochronous endpoints, both in the related USB_EPnR
register) according to Table 171.

同步模式下,必须使用双缓存
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

26

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

8

主题

26

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部