![]() |
usbpsu
Vitis Drivers API Documentation
|
This file contains the implementation of the composite device specific class code for the example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 rb 05/03/18 First release 1.5 vak 13/02/19 Added support for versal 1.5 vak 03/25/19 Fixed incorrect data_alignment pragma directive for IAR
*
Functions | |
s32 | Usb_DfuSetState (struct dfu_if *DFU, u8 dfu_state) |
This function handles setting of DFU state. More... | |
void | USB_DfuSetDwloadState (struct dfu_if *DFU, u8 *status) |
This function updates the current state while downloading a file. More... | |
void | USB_DfuGetStatus (struct dfu_if *DFU, u8 *status) |
This function handles getting of DFU status. More... | |
void | Usb_DisconnectHandler (struct Usb_DevData *InstancePtr) |
This function handles USB disconnect, called from driver. More... | |
void | Usb_ResetHandler (struct Usb_DevData *InstancePtr) |
This function handles USB reset, called from driver. More... | |
void | Usb_SetIntf (struct Usb_DevData *InstancePtr, SetupPacket *SetupData) |
This function handles set interface request. More... | |
void | Usb_StorageClassReq (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 | Usb_KeyboardClassReq (struct Usb_DevData *InstancePtr, SetupPacket *SetupData) |
This function is class handler for HID and is called when Setup packet received is for Class request(not a Standard Device request) More... | |
void | Usb_ClassReq (struct Usb_DevData *InstancePtr, SetupPacket *SetupData) |
This function is class request handler for composite device Setup packet received is for Class request(not a Standard Device request) More... | |
void | ParseCBW (struct Usb_DevData *InstancePtr, struct storage_if *f) |
This function handles Reduced Block Command (RBC) requests from the host. More... | |
void | SendCSW (struct Usb_DevData *InstancePtr, struct storage_if *f, u32 Length) |
This function is used to send SCSI Command Status Wrapper to Host. More... | |
void ParseCBW | ( | struct Usb_DevData * | InstancePtr, |
struct storage_if * | f | ||
) |
This function handles Reduced Block Command (RBC) requests from the host.
InstancePtr | is a pointer to Usb_DevData instance of the controller. |
f | is a pointer to storage interface |
Referenced by prvSCSITask().
void SendCSW | ( | struct Usb_DevData * | InstancePtr, |
struct storage_if * | f, | ||
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. |
Referenced by ParseCBW(), and prvSCSITask().
void Usb_ClassReq | ( | struct Usb_DevData * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function is class request handler for composite device Setup packet received is for Class request(not a Standard Device request)
InstancePtr | is pointer to Usb_DevData instance. |
SetupData | is pointer to SetupPacket received. |
References Usb_KeyboardClassReq(), and Usb_StorageClassReq().
void USB_DfuGetStatus | ( | struct dfu_if * | DFU, |
u8 * | status | ||
) |
This function handles getting of DFU status.
DFU | is a pointer to DFU instance of the controller |
status | is the pointer of the DFU status |
References USB_DfuSetDwloadState().
void USB_DfuSetDwloadState | ( | struct dfu_if * | DFU, |
u8 * | status | ||
) |
This function updates the current state while downloading a file.
DFU | is a pointer to DFU instance of the controller |
status | is a pointer of the DFU status |
s32 Usb_DfuSetState | ( | struct dfu_if * | DFU, |
u8 | dfu_state | ||
) |
This function handles setting of DFU state.
DFU | is a pointer to DFU instance of the controller |
dfu_state | is a value of the DFU state to be set |
void Usb_DisconnectHandler | ( | struct Usb_DevData * | InstancePtr | ) |
This function handles USB disconnect, called from driver.
InstancePtr | is a pointer to Usb_DevData instance of the controller |
References Usb_DevData::PrivateData.
void Usb_KeyboardClassReq | ( | struct Usb_DevData * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function is class handler for HID and is called when Setup packet received is for Class request(not a Standard Device request)
InstancePtr | is pointer to Usb_DevData instance. |
SetupData | is pointer to SetupPacket received. |
References Usb_DevData::PrivateData.
Referenced by Usb_ClassReq().
void Usb_ResetHandler | ( | struct Usb_DevData * | InstancePtr | ) |
This function handles USB reset, called from driver.
InstancePtr | is a pointer to Usb_DevData instance of the controller |
References Usb_DevData::PrivateData.
void Usb_SetIntf | ( | struct Usb_DevData * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function handles set interface request.
InstancePtr | is a pointer to Usb_DevData instance of the controller |
SetupData | is a pointer to setup token of control transfer |
References Usb_DevData::PrivateData, SetEpInterval(), and Usb_DfuSetState().
void Usb_StorageClassReq | ( | 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. |
References Usb_DevData::PrivateData.
Referenced by Usb_ClassReq().