Send data via Isochrone transfert with Cypress API

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

cross mob
Anonymous
Not applicable

Hi everyone,

   

The datasheet of the Cypress API can be found here :

   

http://www.mikrocontroller.net/attachment/34631/CyAPI.pdf

   

I want to send data via USB using Isochone transfert. But the example does not work :

   

CCyUSBDevice *USBDevice = new CCyUSBDevice();
CCyIsocEndPoint *IsoIn = USBDevice->IsocInEndPt;
if (IsoIn) {
LONG bufSize = 4096;
PUCHAR buffer = new UCHAR[bufSize];
CCyIsoPktInfo *isoPktInfos;
int pkts;
// Allocate the IsoPktInfo objects, and find-out how many were allocated
isoPktInfos = IsoIn->CreatePktInfos(bufSize, pkts);
if (IsoIn->XferData(buffer, bufSize, isoPktInfos)) {
LONG recvdBytes = 0;
for (int i=0; i<pkts; i++)
if (isoPktInfos.Status == 0)
recvdBytes += isoPktInfos.Length;
}
delete [] buffer;
delete [] isoPktInfos;
}

   

No data are sent...

   

Any suggestions ?

   

 

   

Thanks 🙂

0 Likes
1 Reply
Anonymous
Not applicable

 Hi,

   

 

   

Please take a look at the Streamer exaple that comes as part of Cypress SUiteUSB. You can find that at the location "C:\Cypress\Cypress Suite USB 3.4.4\CyAPI\examples\Streamer" after installing SuiteUSB (http://www.cypress.com/?rID=34870). 

   

 

   

Regards,

   

Gayathri

0 Likes