1 Reply Latest reply on May 11, 2012 6:37 AM by gaya

    Send data via Isochrone transfert with Cypress API


      Hi everyone,


      The datasheet of the Cypress API can be found here :




      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[i].Status == 0)
      recvdBytes += isoPktInfos[i].Length;
      delete [] buffer;
      delete [] isoPktInfos;


      No data are sent...


      Any suggestions ?




      Thanks :)