打印

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

[复制链接]
2682|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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

粉丝