usbps
Vitis Drivers API Documentation
xusbps_class_storage.c File Reference

Overview

This file contains the implementation of the storage class code for the example.

  MODIFICATION HISTORY:
  Ver   Who  Date     Changes


1.00a wgr 10/10/10 First release 2.1 kpc 4/28/14 Align DMA buffers to cache line boundary 2.4 vak 4/01/19 Fixed IAR data_alignment warnings *

Functions

void XUsbPs_HandleStorageReq (XUsbPs *InstancePtr, u8 EpNum, u8 *BufferPtr, u32 BufferLen)
 This function handles Reduced Block Command (RBC) requests from the host. More...
 
void XUsbPs_ClassReq (XUsbPs *InstancePtr, XUsbPs_SetupData *SetupData)
 This function handles a Storage Class Setup request from the host. More...
 

Function Documentation

void XUsbPs_ClassReq ( XUsbPs InstancePtr,
XUsbPs_SetupData SetupData 
)

This function handles a Storage Class Setup request from the host.

This function is called by Chapter9 handler when class request is received from Host.

Parameters
InstancePtris a pointer to XUsbPs instance of the controller.
SetupDatais the setup data structure containing the setup request.
Returns
None.
Note
None.

References XUsbPs_SetupData::bmRequestType, XUsbPs_SetupData::bRequest, XUsbPs_SetupData::wIndex, XUsbPs_SetupData::wLength, XUsbPs_SetupData::wValue, XUSBPS_EP_DIRECTION_IN, XUSBPS_EP_DIRECTION_OUT, XUsbPs_EpBufferSend(), XUsbPs_EpDataBufferReceive(), XUsbPs_EpStall, and XUSBPS_REQ_REPLY_LEN.

Referenced by XUsbPs_Ch9HandleSetupPacket().

void XUsbPs_HandleStorageReq ( XUsbPs InstancePtr,
u8  EpNum,
u8 *  BufferPtr,
u32  BufferLen 
)

This function handles Reduced Block Command (RBC) requests from the host.

Parameters
InstancePtris a pointer to XUsbPs instance of the controller.
EpNumis the number of the endpoint on which the RBC was received.
BufferPtris the data buffer containing the RBC or data.
BufferLenis the length of the data buffer.
Returns
None.
Note
None.

References XUsbPs_EpBufferSend().