![]() |
usbpsu
Vitis Drivers API Documentation
|
This file contains definitions used in the composite device class code.
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
Data Structures | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
| struct | __attribute__ |
| struct SetupPacket - USB Standard Control Request More... | |
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_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 | 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, 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 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, |
| 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 |
| 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. |
| InstancePtr | is pointer to Usb_DevData instance. |
| Length | is the data residue. |
| 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. |
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 the setup packet received from Host. |
| 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 |
| DFU | is a pointer to DFU instance of the controller |
| status | is the pointer of the DFU status |
| 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 |
| 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 |
| 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 |