EasyManuals Logo

Cypress EZ-USB FX3 User Manual

Cypress EZ-USB FX3
660 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #105 background imageLoading...
Page #105 background image
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 ();
}
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cypress EZ-USB FX3 and is the answer not in the manual?

Cypress EZ-USB FX3 Specifications

General IconGeneral
BrandCypress
ModelEZ-USB FX3
CategoryController
LanguageEnglish

Related product manuals