XilinxProcessorIPLib/drivers/usbps/examples/xusbps_ch9_audio.c
void XUsbPs_SetConfiguration(XUsbPs *InstancePtr, int ConfigIdx)
{
	u8 State;

	State = InstancePtr->AppData->State;
	XUsbPs_SetConfigDone(InstancePtr, 0U);

	switch (State) {
		case XUSBPS_STATE_DEFAULT:
			break;

		case XUSBPS_STATE_ADDRESS:
			InstancePtr->AppData->State = XUSBPS_STATE_CONFIGURED;
			break;

		case XUSBPS_STATE_CONFIGURED:
			break;

		default:
			break;
	}

}
/****************************************************************************/
/**
 * Changes State of Core to USB configured State.
 *
 * @param	InstancePtr is a pointer to the Usb_DevData instance.
 * @param	Ctrl is a pointer to the Setup packet data.
 *
 * @return	XST_SUCCESS else XST_FAILURE
 *
 * @note	None.
 *
 *****************************************************************************/
Changes State of Core to USB configured State.
@param       InstancePtr is a pointer to the Usb_DevData instance.
@param       Ctrl is a pointer to the Setup packet data.



@note        None.
Changes State of Core to USB configured State . @param InstancePtr is a pointer to the Usb_DevData instance . @param Ctrl is a pointer to the Setup packet data . @note None .
void XUsbPs_SetConfiguration(XUsbPs *InstancePtr, int ConfigIdx)
{
	u8 State;
	State = InstancePtr->AppData->State;
	XUsbPs_SetConfigDone(InstancePtr, 0U);
	switch (State) {
		case XUSBPS_STATE_DEFAULT:
			break;
		case XUSBPS_STATE_ADDRESS:
			InstancePtr->AppData->State = XUSBPS_STATE_CONFIGURED;
			break;
		case XUSBPS_STATE_CONFIGURED:
			break;
		default:
			break;
	}
}
void XUsbPs_SetConfiguration ( XUsbPs * InstancePtr , int ConfigIdx ) { u8 State ; State = InstancePtr -> AppData -> State ; XUsbPs_SetConfigDone ( InstancePtr , 0U ) ; switch ( State ) { case XUSBPS_STATE_DEFAULT : break ; case XUSBPS_STATE_ADDRESS : InstancePtr -> AppData -> State = XUSBPS_STATE_CONFIGURED ; break ; case XUSBPS_STATE_CONFIGURED : break ; default : break ; } }
Changes State of Core to USB configured State.
Changes State of Core to USB configured State .