Cypress技术论坛
直播中

陈小鸥

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

怎么从DMA缓冲区和转让获取图像数据ENDPOINT0

你好,
我说thegpif设计师的例子-“imagesensorinterface。cydsn”的头文件在UVC的例子-“cyfxuvcinmem”。我alsooCyfxgpIFCONtiON并启动状态机。
但是,我不知道怎么从DMA缓冲区和转让获取图像数据ENDPOINT0。是否有我可以参考的样本代码或文档?
1。我应该创建TreR0和TrAD1吗?
2。我应该自己算一下,行有效吗?
三。如何从DMA缓冲区获取图像数据?
谢谢您。

以上来自于百度翻译


     以下为原文
  Hi,
    I added the GPIF Designer example - "ImageSensorInterface.cydsn"'s  header file in UVC example - "cyfxuvcinmem". I also loaded CyFxGpifConfig and start the state machine.
    But, I don't know how to get the image data from DMA buffer and transfer to Endpoint0. Is there any sample code or document I could refer ?
    1. Should I create thread0 and therad1 ?
    2. Should I count tick by myself for line valid?
    3. How to get the image data from DMA buffer ?
    Thank you.

回帖(3)

何柳青

2019-4-28 07:34:42
你好,
EP0是控制终点。为什么要通过EP0传输图像数据?
请在你想要达到的方面增加更多信息,以便我们更好地理解需求。
雷加德,
阿南德

以上来自于百度翻译


     以下为原文
  Hi,
    EP0 is control endpoint. Why do you want to transfer the image data through EP0?
    Please add more information on what you're trying to achieve so that we can understand the requirement better.
    Regads,
    Anand
举报

陈小鸥

2019-4-28 07:48:41
我很抱歉。
我的问题是如何获取图像数据。是否有任何示例代码或文档来描述它?
谢谢您。

以上来自于百度翻译


     以下为原文
  I'm sorry.
    My question is how to get image data. Is any sample code or document to describe it ?
    Thank you.
举报

h1654155275.5814

2019-4-28 08:03:57
“UBVIEW类”和“USBVideoClass”示例项目应该给您一个关于UVC类的想法。
“SLAVEFIFOASYNC”示例项目应该给您一个想法,将GPIF端的数据传输到USB端。
当做,
西克里希纳。

以上来自于百度翻译


     以下为原文
  "USBVideoClassBulk" and "USBVideoClass" example projects should give you an idea on UVC class.
    "SlaveFifoAsync" example project should give you an idea on transfering the data on GPIF side to USB side.
    Regards,
    sai krishna.
举报

更多回帖

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