![]() |
usbpsu
Vitis Drivers API Documentation
|
This file contains definitions used in the Mass Storage class code.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 sg 06/06/16 First release 1.4 BK 12/01/18 Renamed the file and added changes to have a common example for all USB IPs.
Functions | |
void | ClassReq (struct Usb_DevData *InstancePtr, SetupPacket *SetupData) |
This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request) More... | |
void | ParseCBW (struct Usb_DevData *InstancePtr) |
This function handles Reduced Block Command (RBC) requests from the host. More... | |
void | SendCSW (struct Usb_DevData *InstancePtr, u32 Length) |
This function is used to send SCSI Command Status Wrapper to Host. More... | |
void ClassReq | ( | struct Usb_DevData * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request)
InstancePtr | is pointer to Usb_DevData instance. |
SetupData | is pointer to SetupPacket received. |
void ParseCBW | ( | struct Usb_DevData * | InstancePtr | ) |
This function handles Reduced Block Command (RBC) requests from the host.
InstancePtr | is a pointer to Usb_DevData instance of the controller. |
References IsSuperSpeed(), Usb_DevData::PrivateData, SendCSW(), and Status.
void SendCSW | ( | struct Usb_DevData * | InstancePtr, |
u32 | Length | ||
) |
This function is used to send SCSI Command Status Wrapper to Host.
InstancePtr | is pointer to Usb_DevData instance. |
Length | is the data residue. |
References Usb_DevData::PrivateData.