USB functions to start/stop USB storage.
More...
USB functions to start/stop USB storage.
◆ anonymous enum
USB State Enum.
Enum containing the possible states of the USB connection.
Enumerator |
---|
OSL_USB_ACTIVATED | USB is activated
|
OSL_USB_CABLE_CONNECTED | USB cable is connected
|
OSL_USB_CONNECTION_ESTABLISHED | USB connection is established
|
◆ oslInitUsbStorage()
int oslInitUsbStorage |
( |
| ) |
|
|
extern |
Initializes the USB storage modules.
This function initializes the necessary USB modules. It must be called before any other USB storage operations.
- Returns
- Returns 0 on success, a negative value on failure.
◆ oslStartUsbStorage()
int oslStartUsbStorage |
( |
| ) |
|
|
extern |
Starts USB storage.
This function starts the USB storage, making the PSP appear as a USB storage device when connected to a host.
- Returns
- Returns 0 on success, a negative value on failure.
◆ oslStopUsbStorage()
int oslStopUsbStorage |
( |
| ) |
|
|
extern |
Stops USB storage.
This function stops the USB storage, safely disconnecting the PSP from the host system.
- Returns
- Returns 0 on success, a negative value on failure.
◆ oslDeinitUsbStorage()
int oslDeinitUsbStorage |
( |
| ) |
|
|
extern |
Deinitializes the USB storage modules.
This function deinitializes the USB modules, releasing any resources that were allocated during initialization.