![]() |
usbpsu
Vitis Drivers API Documentation
|
This file implements DFU class example.
This file implements the mass storage class example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 vak 30/11/16 First release 1.4 BK 12/01/18 Renamed the file to be in sync with usb common code changes for all USB IPs vak 22/01/18 Added changes for supporting microblaze platform vak 13/03/18 Moved the setup interrupt system calls from driver to example. 1.5 vak 13/02/19 Added support for versal 1.8 pm 15/09/20 Fixed C++ Compilation error. 1.14 pm 21/06/23 Added support for system device-tree flow.
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. vak 22/01/18 Added changes for supporting microblaze platform vak 13/03/18 Moved the setup interrupt system calls from driver to example. 1.5 vak 13/02/19 Added support for versal 1.8 pm 15/09/20 Fixed C++ Compilation error. 1.14 pm 21/06/23 Added support for system device-tree flow.
Functions | |
void | BulkOutHandler (void *CallBackRef, u32 RequestedBytes, u32 BytesTxed) |
This function is Bulk Out Endpoint handler/Callback called by driver when data is received. More... | |
void | BulkInHandler (void *CallBackRef, u32 RequestedBytes, u32 BytesTxed) |
This function is Bulk In Endpoint handler/Callback called by driver when data is sent. More... | |
int | main (void) |
This function is the main function of the USB mass storage example. More... | |
void BulkInHandler | ( | void * | CallBackRef, |
u32 | RequestedBytes, | ||
u32 | BytesTxed | ||
) |
This function is Bulk In Endpoint handler/Callback called by driver when data is sent.
CallBackRef | is pointer to Usb_DevData instance. |
RequestedBytes | is number of bytes requested to send. |
BytesTxed | is actual number of bytes sent to Host. |
Referenced by main().
void BulkOutHandler | ( | void * | CallBackRef, |
u32 | RequestedBytes, | ||
u32 | BytesTxed | ||
) |
This function is Bulk Out Endpoint handler/Callback called by driver when data is received.
CallBackRef | is pointer to Usb_DevData instance. |
RequestedBytes | is number of bytes requested for reception. |
BytesTxed | is actual number of bytes received from Host. |
Referenced by main().
int main | ( | void | ) |
This function is the main function of the USB mass storage example.
None. |
References XUsbPsu_Config::BaseAddress, BulkInHandler(), BulkOutHandler(), Ch9Handler(), XUsbPsu::HasHibernation, Usb_DevData::PrivateData, Status, XUSBPSU_DEVTEN_CONNECTDONEEN, XUSBPSU_DEVTEN_DISCONNEVTEN, XUSBPSU_DEVTEN_EVNTOVERFLOWEN, XUSBPSU_DEVTEN_HIBERNATIONREQEVTEN, XUSBPSU_DEVTEN_ULSTCNGEN, XUSBPSU_DEVTEN_USBRSTEN, XUSBPSU_DEVTEN_WKUPEVTEN, XUsbPsu_EnableIntr(), and XUsbPsu_IntrHandler().