EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 105
Universal Serial Bus (USB)
{
/* First send the command to the Setup callback. Accept the request if not
handled by the callback. */
if (glUsbSetupCb)
{
isHandled = glUsbSetupCb (setupdat0, setupdat1);
if (isHandled)
break;
}
glUibDeviceInfo.usbAltSetting = wValue;
if (glUsbEvtCb != NULL)
{
glUsbEvtCb (CY_U3P_USB_EVENT_SETINTF, CY_U3P_MAKEWORD ((uint8_t)wIndex,
(uint8_t)wValue));
}
isHandled = CyTrue;
CyU3PUsbAckSetup ();
}
break;
case CY_U3P_USB_SC_SYNC_FRAME:
{
isHandled = CyTrue;
CyU3PUsbAckSetup ();
}
break;
case CY_U3P_USB_SC_SET_SEL:
{
if ((CyU3PUsbGetSpeed () == CY_U3P_SUPER_SPEED) && (wValue == 0) && (wIndex
== 0) && (wLength == 6))
{
isHandled = CyTrue;
status = CyU3PUsbGetEP0Data (32, glUibSelBuffer, 0);
if ((glUsbEvtCb != NULL) && (status == CY_U3P_SUCCESS))
{
glUsbEvtCb (CY_U3P_USB_EVENT_SET_SEL, 0x00);
}
}
else
{
isHandled = CyFalse;
}
}
break;
case CY_U3P_USB_SC_SET_ISOC_DELAY:
{
if ((CyU3PUsbGetSpeed () == CY_U3P_SUPER_SPEED) && (wIndex == 0) && (wLength
== 0))
{
isHandled = CyTrue;
CyU3PUsbAckSetup ();
}
}