You are here

about control transfer | Cypress Semiconductor

about control transfer

Summary: 0 Replies, Latest post by Guoy on 29 Feb 2012 12:18 AM PST
Verified Answers: 0
Log in to post new comments.
Guoy's picture
3 posts

I want to try Control transfer in PSoc 5, but never successful

Here is my firmware

  case 0xA2:
    averageVolts=117;//averageVolates type is uint32
    requestHandled  = USBFS_1_InitControlRead();

   case 0xA3:

    requestHandled  = USBFS_1_InitControlWrite();
    In PC

 CCyControlEndPoint* CtlEndpoint;


 PUCHAR buf=new UCHAR[32];//Receive data

 long buflen=32;

 str.Format(_T("Voltagle=%4ld mV"), buf);
 dlg->SetDlgItemTextW(IDC_TEXTDEVINO, str);


Is there anything wrong with the code? What is difference between USBFS_1_currentTD.wCount=32; and


Log in to post new comments.