完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
是否有可能使用XFelDATA()来找出从一个IN端点提取多少字节? 谢谢你 以上来自于百度翻译 以下为原文 Hi, Is it possible to find out how many bytes are available for pick-up from an IN endpoint using XferData() ? Thank you |
|
相关推荐
4个回答
|
|
我想补充一下,我有一个设备,它正在向主机发送未知量的数据。该设备还使用PKTAN(SLaveFIFO模式)来发送部分包。它还可以发送与完整数据包混合的部分数据包。
怎么可以确定有多少数据需要从端点读? 以上来自于百度翻译 以下为原文 I would like to add that I have a device which is sending an unknown amount of data to the host. The device is also using PKTEND (in SlaveFIFO mode) to send partial packets. It might also send partial packets intermixed with full packets. How can the host determine how much data needs to be read from the endpoint? |
|
|
|
我越想越觉得我越了解USB和CyUSB.NET的作品。(我对USB是全新的,所以请轻松一点)。
我想有一个设备使用批量传输到电脑上,我想这是发生了什么: 1。设备发送全部或部分通过USB数据包到PC 2。在PC端有FIFO缓冲区(也叫PCbuf)会慢慢填充数据。 三。xferdata()是用来抓取数据从pcbuf转移到应用程序。 这是怎么回事?如果是这样的话,我有个问题。这个PC侧缓冲区PCbuf有多大?人们如何知道它是否溢出?和USB设备并知道它不能发送更多的数据,因为pcbuf是满的? 还是我错了?实际上没有PC侧缓冲区。每当我执行xferdata() USB请求直接派遣到设备要求一个特定的数据量?这实际上会更有意义,我想,因为这可以解释为什么没有函数告诉我有多少数据是用于提取。因为PC根本不知道。 所以另一个问题就变成了。可以告诉xferdata()只是给我所有可用的数据缓冲区中没有任何超时。类似这样的事情: XFLLEN=512; bFult= InEndot.xFelDATA(REF InDATA,REF XFLLEN); 但我不想等待超时,只要给我你得到了什么,但现在给我。 谢谢你的帮助。 以上来自于百度翻译 以下为原文 The more I think about it the less I understand how USB and CyUSB.NET works. (I'm brand new to USB, so please go easy). I'm trying to have a device use BULK transfer to the PC. I imagine this is what's happening: 1. The device sends full or partial packets across the USB to the PC 2. On the PC side some FIFO buffer (call it PCbuf) gets slowly filled with the data. 3. XferData() is used to grab the data from PCbuf and transfer it to the application. Is that what's happening? If so I have a question. How big is this PC side buffer PCbuf? And how does one know if it overflows? And how does the USB device know it can't send more data because the PCbuf is full? Or do I have that all wrong? Is there in fact no PC side buffer at all. And whenever I execute XferData() a USB request is direclty dispatched to the device asking for a specific amount of data? That would actually make more sense I guess, because it would explain why there is no function to tell me how much data is availabe for pick-up. Because the PC simply doesn't know. So the other question then becomes. Is it possible to tell XferData() to just give me all the data available in the buffer without any timout. Something like this: XferLen = 512; bResult = inEndpoint.XferData(ref inData, ref xferLen); But I don't want to wait for timeout, just give me what you got available, but give it to me now. Thank you for any helpful insight. |
|
|
|
撞线
有人吗? 有一些CYUSB驱动程序的体系结构文档吗?我必须阅读什么才能真正理解如何有效地使用这个驱动程序? 以上来自于百度翻译 以下为原文 Bumping the thread. Anybody? Is there some architectural documentation of the CyUSB drivers available? What do I have to read to actually understand how to use this driver efficiently? |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
751个成员聚集在这个小组
加入小组2064 浏览 1 评论
1824 浏览 1 评论
3632 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1508 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
502浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
354浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
409浏览 2评论
354浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
851浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 23:25 , Processed in 0.979102 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号