Cypress技术论坛
直播中

h1654155275.6347

7年用户 317经验值
私信 关注
[问答]

libu***_dev_mem_alloc()API是否用于USB DMA传输的任何地方?

我有一个关于USB数据传输的要求。输入的数据必须通过USB主机控制器预先分配的缓冲区。和数据传输完成后,用户空间的应用程序将读取所有数据。
FX3芯片从柏树在主机端使用libu***数据传输和文件libu***_dev_mem_alloc() API说同样的事情我们可以做关于DMA缓冲区的数据直接保存到下游用户缓冲区。
但我没有在谷歌上找到任何单一的示例代码片段。有没有人使用这个API来进行USB数据传输?

以上来自于百度翻译


     以下为原文
  I have one requirement regarding data transfer over USB. The incoming data should pass through USB host controller to pre-allocated buffer. And after completion of data transfer, user-space app will readout all data.
FX3 chip from cypress which using libu*** at host side to for data transfer and documentation of libu***_dev_mem_alloc() API says same things regarding DMA buffer we can do by save downstream data directly into user buffer.
But I didn't find any single example snippet code on Google. Does anybody use this API for USB data transfer?

回帖(1)

王晋

2018-9-18 14:44:40
CYUSB的来源有LiPulb API。但它们似乎没有使用LuBubxDeViMeMyOLLC()API。
例如,批量数据传输是使用CysBuBulkJuffic API完成的,内部调用LiBubSulkkType()API。这调用了LIUBBUBALLOLJORACTION API,它为传输分配了一些预定义的内存。
供参考:
你可以在这里下载CyUSB Linux主机源码:
CyPAS-FX3-SDK-Linux/UTIL/CysBBLILUXX1.1.4在Master·NekdAdvo/CyPress -FX3-SDK-Linux·GITHUB
此外,LYBUB开放源代码可以在这里下载:
HTTPS:/SooSurfFuG.NET/PROSPIDS/LIUBSB/?源= Type重定向
当做,
- Madhu Sudhan

以上来自于百度翻译


     以下为原文
  The source of cyu*** has libu*** APIs. But they do not seem to use the libu***_dev_mem_alloc () API.
 
For example the bulk data transfer is done using the cyu***_bulk_transfer API which internally calls libu***_bulk_transfer () API. This calls the libu***_alloc_transfer API which allocates some predefined memory for the transfer to take place.
 
For reference:
You can download the cyu*** linux host source here:
cypress-fx3-sdk-linux/util/cyu***_linux_1.0.4 at master · nickdademo/cypress-fx3-sdk-linux · GitHub
 
Also, the libu*** open source can be donwloaded here:
https://sourceforge.net/projects/libu***/?source=typ_redirect
 
Regards,
- Madhu Sudhan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分