cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

I Register a PIB callback as shown below.But the CYUSB3014 did't work ,I can't find it in  Device Manager anymore.I used it in slavefifosync project .what happened to it?

   

CyU3PPibRegisterCallback (gpif_err_cb,CYU3P_PIB_INTR_ERROR );

   


Define the function gpif_err_cb as follows
static void
gpif_err_cb(CyU3PPibIntrType cbType,uint16_t  cbArg)
{
if(cbType == CYU3P_PIB_INTR_ERROR)
{
glPIBErroCount ++;
}

}

0 Likes
3 Replies
wuHa_1344001
New Contributor II

Hi,

   

Are you call back the function of " CyU3PPibRegisterCallback(gpif_error_cb, 0xffff);" after Start the USB functionality in the function of "void CyFxSlFifoApplnInit()"  ?

0 Likes
Anonymous
Not applicable

Hi,

   

   I have try it as you say,but it didn't work!Thanks!

   

   I also find another  phenomenon , if the  intMask in function CyU3PPibRegisterCallback (gpif_err_cb,intMask) is less than 0x0004,like 0x0003,it works!but I need to enable  CYU3P_PIB_INT_ERROR,which the intMask is 0x0004.

0 Likes
Anonymous
Not applicable

I have solved it by rebulid a new project,thanks,it maybe the old cyfxgpif2xonfig.h file has something wrong!

0 Likes