class requests

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

cross mob
Anonymous
Not applicable

 I am building an audio device and the host sends some class specific requests. I have added some code to CyFxUVCApplnUSBSetupCB () to handle these. The host sends two requests but only the first gets handled by the function (I have a print statement so I can see when it gets called). Do I have to do anything special apart from set isHandled = CyTrue.

   

 

   

Thanks

   

 

   

Jon

0 Likes
4 Replies
Anonymous
Not applicable

Hi Jon,

   

Could you please add that piece of code (or entire source project, if possible) to this thread.

   

Thanks,

   

Sai Krishna.

0 Likes
Anonymous
Not applicable

 There was some code left in from the example project.

   

   

        while (bType == bType)

   

        {

   

            CyU3PBusyWait (10);

   

        }

   

This was stopping it working.

   

 

   

Thanks

   

 

   

Jon

0 Likes
Anonymous
Not applicable

Hi Jon,

   

 

   

while (bType == bType)

   

Are you trying to implement a while(1) loop using the above code.

   

 

   

Thanks,

   

Sai Krishna.

0 Likes
Anonymous
Not applicable

 I didnt add that code, it was from a Cypress example firmware project.

   

Jon

0 Likes