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 #104 background imageLoading...
Page #104 background image
EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 104
Universal Serial Bus (USB)
{
isHandled = CyTrue;
status = CyU3PUsbSendEP0Data (1, (uint8_t *)&glUibDeviceInfo.usbActiveCon-
fig);
}
break;
case CY_U3P_USB_SC_SET_CONFIGURATION:
{
{
isHandled = CyTrue;
switch (wValue)
{
case 1:
/* Make sure that all EPs are cleared from stall condition and sequence
numbers are cleared
at this stage. */
CyU3PUsbEpPrepare ((CyU3PUSBSpeed_t)glUibDeviceInfo.usbSpeed);
case 0:
glUibDeviceInfo.usbState = (wValue == 0) ? CY_U3P_USB_CONNECTED
: CY_U3P_USB_ESTABLISHED;
glUibDeviceInfo.usbActiveConfig = (uint8_t)wValue;
glUibDeviceInfo.usbDeviceStat &= CY_U3P_USB_DEVSTAT_SELFPOWER;
if (glUsbEvtCb != NULL)
{
glUsbEvtCb (CY_U3P_USB_EVENT_SETCONF, wValue);
}
CyU3PUsbAckSetup ();
break;
default:
status = CY_U3P_ERROR_BAD_ARGUMENT;
break;
}
}
}
break;
case CY_U3P_USB_SC_GET_INTERFACE:
{
if (glUsbSetupCb)
{
isHandled = glUsbSetupCb (setupdat0, setupdat1);
if (isHandled)
break;
}
isHandled = CyTrue;
status = CyU3PUsbSendEP0Data (1, (uint8_t *)&glUibDeviceInfo.usbAltSet-
ting);
}
break;
case CY_U3P_USB_SC_SET_INTERFACE:

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