Cypress技术论坛
直播中

白边赫

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

几个I2C从设备与CX3连接,I2C操作可以阻止UVC流吗?

亲爱的先生,
有几个I2C从设备附在我的CX3视频板上。所有I2C操作都将在EsUVCuvCppthRead()中完成。
我想知道这些耗时的I2C操作是否能阻止视频流?
例如,UVC头由CPU手动添加,这是由ESUVCUVCAPDMACARBACK()完成的,在ESUVCUVCppthRead()中进行I2C操作,阻止这个动作,然后阻止视频流吗?
最好的,
戴维

以上来自于百度翻译


     以下为原文
  Dear Sir,

There are several I2C slave devices attached with my CX3 video board. all I2C operation will done within esUVCUvcAppThread_Entry().

I want to know whether these I2C operations which are time-consuming can block video streaming?

For example,UVC header is added by CPU manually, which is done by  esUVCUvcAppDmaCallback(), do I2C operation in esUVCUvcAppThread_Entry() block this action and then block video streaming?

Best,

David

回帖(1)

李焯尤

2019-1-4 14:44:01
嗨,戴维,
您可以使用Cyu3pthReCueRead()API创建一个单独的线程来执行I2C操作。您可以使用Cyu3pthRealRebug()API来公平地调度这两个线程。
您可以参考AN779示例项目的UVC.C文件来处理两个线程。

以上来自于百度翻译


     以下为原文
  Hi David,
 
You can create a separate thread using CyU3PThreadCreate() API for performing I2C operation. You can use CyU3PThreadRelinquish() API for fair scheduling of the two threads.
You can refer to uvc.c file of AN75779 example project for working with two threads.
 
举报

更多回帖

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