Several I2C slave devices attached with CX3. I2C operation can block UVC streaming?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
dawa_2529456
Level 4
Level 4
5 sign-ins 5 solutions authored First solution authored

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

0 Likes
1 Reply
Anonymous
Not applicable

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.

0 Likes