OldSchool Library
USB

USB functions to start/stop USB storage. More...

Enumerations

enum  { OSL_USB_ACTIVATED = PSP_USB_ACTIVATED , OSL_USB_CABLE_CONNECTED = PSP_USB_CABLE_CONNECTED , OSL_USB_CONNECTION_ESTABLISHED = PSP_USB_CONNECTION_ESTABLISHED }
 USB State Enum. More...
 

Functions

int oslInitUsbStorage ()
 Initializes the USB storage modules.
 
int oslStartUsbStorage ()
 Starts USB storage.
 
int oslStopUsbStorage ()
 Stops USB storage.
 
int oslDeinitUsbStorage ()
 Deinitializes the USB storage modules.
 

Detailed Description

USB functions to start/stop USB storage.

Enumeration Type Documentation

◆ anonymous enum

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

Function Documentation

◆ 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.