cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

dawa_2529456
Contributor

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