![]() |
usbpsu
Vitis Drivers API Documentation
|
This file contains the implementation of the Mass Storage specific class code for the example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 sg 06/06/16 First release ms 04/10/17 Modified filename tag to include the file in doxygen examples. 1.4 BK 12/01/18 Renamed the file and added changes to have a common example for all USB IPs. 1.5 vak 13/02/19 Added support for versal 1.5 vak 03/25/19 Fixed incorrect data_alignment pragma directive for IAR 1.8 pm 15/09/20 Fixed C++ Compilation error.
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.