XilinxProcessorIPLib/drivers/usbps/examples/xusbps_ch9_audio.c
void XUsbPs_SetConfigurationApp(XUsbPs *InstancePtr,
		XUsbPs_SetupData *SetupData)
{

	XUsbPs_SetConfigDone((XUsbPs *)InstancePtr, 1U);
	if ((SetupData->wValue & 0xff) == 0) {
		/* Endpoint disables - not needed for Control EP */
		XUsbPs_EpDisable((XUsbPs *)InstancePtr, ISO_EP,
				XUSBPS_EP_DIRECTION_OUT);

		XUsbPs_EpDisable((XUsbPs *)InstancePtr, ISO_EP,
				XUSBPS_EP_DIRECTION_IN);

		XUsbPs_SetConfigDone((XUsbPs *)InstancePtr, 0U);
	}

}
/****************************************************************************/
/**
 * This function is called by Chapter9 handler when SET_CONFIGURATION command
 * is received from Host.
 *
 * @param	InstancePtr is pointer to Usb_DevData instance.
 * @param	SetupData is the setup packet received from Host.
 *
 * @return
 *		- XST_SUCCESS if successful,
 *		- XST_FAILURE if unsuccessful.
 *
 * @note
 *		Non control endpoints must be enabled after SET_CONFIGURATION
 *		command since hardware clears all previously enabled endpoints
 *		except control endpoints when this command is received.
 *
 *****************************************************************************/
This function is called by Chapter9 handler when SET_CONFIGURATION command
is received from Host.

@param       InstancePtr is pointer to Usb_DevData instance.
@param       SetupData is the setup packet received from Host.

@return
- XST_SUCCESS if successful,
- XST_FAILURE if unsuccessful.

@note
Non control endpoints must be enabled after SET_CONFIGURATION
command since hardware clears all previously enabled endpoints
except control endpoints when this command is received.
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host . @param InstancePtr is pointer to Usb_DevData instance . @param SetupData is the setup packet received from Host . @return - XST_SUCCESS if successful - XST_FAILURE if unsuccessful . @note Non control endpoints must be enabled after SET_CONFIGURATION command since hardware clears all previously enabled endpoints except control endpoints when this command is received .
void XUsbPs_SetConfigurationApp(XUsbPs *InstancePtr,
		XUsbPs_SetupData *SetupData)
{
	XUsbPs_SetConfigDone((XUsbPs *)InstancePtr, 1U);
	if ((SetupData->wValue & 0xff) == 0) {
		XUsbPs_EpDisable((XUsbPs *)InstancePtr, ISO_EP,
				XUSBPS_EP_DIRECTION_OUT);
		XUsbPs_EpDisable((XUsbPs *)InstancePtr, ISO_EP,
				XUSBPS_EP_DIRECTION_IN);
		XUsbPs_SetConfigDone((XUsbPs *)InstancePtr, 0U);
	}
}
void XUsbPs_SetConfigurationApp ( XUsbPs * InstancePtr , XUsbPs_SetupData * SetupData ) { XUsbPs_SetConfigDone ( ( XUsbPs * ) InstancePtr , 1U ) ; if ( ( SetupData -> wValue & 0xff ) == 0 ) { XUsbPs_EpDisable ( ( XUsbPs * ) InstancePtr , ISO_EP , XUSBPS_EP_DIRECTION_OUT ) ; XUsbPs_EpDisable ( ( XUsbPs * ) InstancePtr , ISO_EP , XUSBPS_EP_DIRECTION_IN ) ; XUsbPs_SetConfigDone ( ( XUsbPs * ) InstancePtr , 0U ) ; } }
This function is called by Chapter9 handler when SET_CONFIGURATION command
 is received from Host.
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host .
/* Endpoint disables - not needed for Control EP */