XilinxProcessorIPLib/drivers/usbpsu/examples/xusb_class_composite.c
void SendCSW(struct Usb_DevData *InstancePtr, struct storage_if *f, u32 Length)
{
	f->csw.dCSWSignature = 0x53425355;
	f->csw.dCSWTag = f->cbw.dCBWTag;
	f->csw.dCSWDataResidue = Length;
	f->csw.bCSWStatus = 0;
	f->phase = USB_EP_STATE_STATUS;

	EpBufferSend(InstancePtr->PrivateData, STORAGE_EP, (void *) &f->csw, 13);
}
/****************************************************************************/
/**
* This function is used to send SCSI Command Status Wrapper to Host.
*
* @param	InstancePtr is pointer to Usb_DevData instance.
* @param	Length is the data residue.
*
* @return	None
*
* @note		None
*
*****************************************************************************/
This function is used to send SCSI Command Status Wrapper to Host.
This function is used to send SCSI Command Status Wrapper to Host .
void SendCSW(struct Usb_DevData *InstancePtr, struct storage_if *f, u32 Length)
{
	f->csw.dCSWSignature = 0x53425355;
	f->csw.dCSWTag = f->cbw.dCBWTag;
	f->csw.dCSWDataResidue = Length;
	f->csw.bCSWStatus = 0;
	f->phase = USB_EP_STATE_STATUS;
	EpBufferSend(InstancePtr->PrivateData, STORAGE_EP, (void *) &f->csw, 13);
}
void SendCSW ( struct Usb_DevData * InstancePtr , struct storage_if * f , u32 Length ) { f -> csw . dCSWSignature = 0x53425355 ; f -> csw . dCSWTag = f -> cbw . dCBWTag ; f -> csw . dCSWDataResidue = Length ; f -> csw . bCSWStatus = 0 ; f -> phase = USB_EP_STATE_STATUS ; EpBufferSend ( InstancePtr -> PrivateData , STORAGE_EP , ( void * ) & f -> csw , 13 ) ; }
This function is used to send SCSI Command Status Wrapper to Host.
This function is used to send SCSI Command Status Wrapper to Host .