XilinxProcessorIPLib/drivers/usbpsu/examples/xusb_poll_example.c
void BulkInHandler(void *CallBackRef, u32 RequestedBytes,
						   u32 BytesTxed)
{
	struct Usb_DevData *InstancePtr = (struct Usb_DevData *)CallBackRef;

	if (Phase == USB_EP_STATE_DATA_IN) {
		/* Send the status */
		SendCSW(InstancePtr, 0U);
	} else if (Phase == USB_EP_STATE_STATUS) {
		Phase = USB_EP_STATE_COMMAND;
		/* Receive next CBW */
		EpBufferRecv(InstancePtr->PrivateData, 1U,
							(u8*)&CBW, sizeof(CBW));
	}
}
/****************************************************************************/
/**
* This function is Bulk In Endpoint handler/Callback called by driver when
* data is sent.
*
* @param	CallBackRef is pointer to Usb_DevData instance.
* @param	RequestedBytes is number of bytes requested to send.
* @param	BytesTxed is actual number of bytes sent to Host.
*
* @return	None
*
* @note		None.
*
*****************************************************************************/
This function is Bulk In Endpoint handler/Callback called by driver when
data is sent.
This function is Bulk In Endpoint handler / Callback called by driver when data is sent .
void BulkInHandler(void *CallBackRef, u32 RequestedBytes,
						   u32 BytesTxed)
{
	struct Usb_DevData *InstancePtr = (struct Usb_DevData *)CallBackRef;
	if (Phase == USB_EP_STATE_DATA_IN) {
		SendCSW(InstancePtr, 0U);
	} else if (Phase == USB_EP_STATE_STATUS) {
		Phase = USB_EP_STATE_COMMAND;
		EpBufferRecv(InstancePtr->PrivateData, 1U,
							(u8*)&CBW, sizeof(CBW));
	}
}
void BulkInHandler ( void * CallBackRef , u32 RequestedBytes , u32 BytesTxed ) { struct Usb_DevData * InstancePtr = ( struct Usb_DevData * ) CallBackRef ; if ( Phase == USB_EP_STATE_DATA_IN ) { SendCSW ( InstancePtr , 0U ) ; } else if ( Phase == USB_EP_STATE_STATUS ) { Phase = USB_EP_STATE_COMMAND ; EpBufferRecv ( InstancePtr -> PrivateData , 1U , ( u8 * ) & CBW , sizeof ( CBW ) ) ; } }
This function is Bulk In Endpoint handler/Callback called by driver when
data is sent.
This function is Bulk In Endpoint handler / Callback called by driver when data is sent .
/* Send the status */ /* Receive next CBW */