Hi, i am using cypress api with multiple threads.
i have tried those threads one by one.
they can individually work perfectly.
the problem is, i could not run two thread at the same time.
currently, i initial TWO CcyUSBdevice instances. they point to the same one usb device.
for example,
In thread 1, i have:
Ccyusbdevice1->endpoint[0]->xferdata...blablabla
In thread 2. i have:
CCyusbdevice2->endpoint[1]->xferdata...blablabla
both two transfers are delayed.
(actually, if i initial ONE CcyUSBdevice instance, and visit its endpoint[0]and endpoint[1] in two separated threads, would lead the same delay problem.)
my co-worker assure me that these two bulk endpoints have two separate buffers.
and i cam make sure these two threads have no common buffer.
so, is there anything i missed?
__________________________________________another question____________________
can i transfer data with 1000hz? i am using it to transfer IMU data.
i found, in most case the transfer costs 1ms, but sometimes costs 6ms and more.
Thanks~~~~~