2 Replies Latest reply on Aug 11, 2019 8:39 PM by WiLi_4402436

    Use the CYUSB3014 firmware programming registration callback function to parse the two, what is the meaning of the parameters?

      Just contact USB, there is a question I would like to ask

      There is a registration callback function in the CYUSB3014 firmware programming:

       

       

      CyU3PUsbRegisterSetupCallback(CyFxSlFIFoApplnUSBSetuPCB, CyTrue);

      There are two parameters in CyFxSlFifoApplnUSBSetupCB:

      Uint32_t setupdat0,

      Uint32_t setupdat1

      The two parameters are parsed in the function. I want to ask what these two parameters mean. What do you mean by that? ? ?

           bReqType = (setupdat0 & CY_U3P_USB_REQUEST_TYPE_MASK);

           bType = (bReqType & CY_U3P_USB_TYPE_MASK);

           bTarget = (bReqType & CY_U3P_USB_TARGET_MASK);

       

      Thank you!

      William