![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
This file implements the Reduced Block Commands set of mass storage class.
Please refer to Mass storage class specification for details.
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.
Functions | |
| void | XUsbPsu_ClassReq (struct XUsbPsu *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 | XUsbPsu_BulkOutHandler (void *CallBackRef, u32 RequestedBytes, u32 BytesTxed) |
| This function is Control Endpoint handler/Callback called by driver when data is received. More... | |
| void | XUsbPsu_BulkInHandler (void *CallBackRef, u32 RequestedBytes, u32 BytesTxed) |
| This function is Control Endpoint handler/Callback called by driver when data is sent. More... | |
| void | ParseCBW (struct XUsbPsu *InstancePtr) |
| This function handles Reduced Block Command (RBC) requests from the host. More... | |
| void | SendCSW (struct XUsbPsu *InstancePtr, u32 Length) |
| This function is used to send SCSI Command Status Wrapper to Host. More... | |
| int | main (void) |
| This function is the main function of the USB mass storage example. More... | |
| int main | ( | void | ) |
This function is the main function of the USB mass storage example.
| None. |
| void ParseCBW | ( | struct XUsbPsu * | InstancePtr | ) |
This function handles Reduced Block Command (RBC) requests from the host.
| InstancePtr | is a pointer to XUsbPsu instance of the controller. |
| void SendCSW | ( | struct XUsbPsu * | InstancePtr, |
| u32 | Length | ||
| ) |
This function is used to send SCSI Command Status Wrapper to Host.
| InstancePtr | is pointer to XUsbPsu instance. |
| Length | is the data residue. |
| void XUsbPsu_BulkInHandler | ( | void * | CallBackRef, |
| u32 | RequestedBytes, | ||
| u32 | BytesTxed | ||
| ) |
This function is Control Endpoint handler/Callback called by driver when data is sent.
| CallBackRef | is pointer to XUsbPsu instance. |
| RequestedBytes | is number of bytes requested to send. |
| BytesTxed | is actual number of bytes sent to Host. |
| void XUsbPsu_BulkOutHandler | ( | void * | CallBackRef, |
| u32 | RequestedBytes, | ||
| u32 | BytesTxed | ||
| ) |
This function is Control Endpoint handler/Callback called by driver when data is received.
| CallBackRef | is pointer to XUsbPsu instance. |
| RequestedBytes | is number of bytes requested for reception. |
| BytesTxed | is actual number of bytes received from Host. |
| void XUsbPsu_ClassReq | ( | struct XUsbPsu * | 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 XUsbPsu instance. |
| SetupData | is pointer to SetupPacket received. |