PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspusb.h File Reference

Go to the source code of this file.

Macros

#define PSP_USBBUS_DRIVERNAME   "USBBusDriver"
 
#define PSP_USB_ACTIVATED   0x200
 
#define PSP_USB_CABLE_CONNECTED   0x020
 
#define PSP_USB_CONNECTION_ESTABLISHED   0x002
 

Functions

int sceUsbStart (const char *driverName, int size, void *args)
 Start a USB driver.
 
int sceUsbStop (const char *driverName, int size, void *args)
 Stop a USB driver.
 
int sceUsbActivate (u32 pid)
 Activate a USB driver.
 
int sceUsbDeactivate (u32 pid)
 Deactivate USB driver.
 
int sceUsbGetState (void)
 Get USB state.
 
int sceUsbGetDrvState (const char *driverName)
 Get state of a specific USB driver.
 

Macro Definition Documentation

◆ PSP_USB_ACTIVATED

#define PSP_USB_ACTIVATED   0x200

◆ PSP_USB_CABLE_CONNECTED

#define PSP_USB_CABLE_CONNECTED   0x020

◆ PSP_USB_CONNECTION_ESTABLISHED

#define PSP_USB_CONNECTION_ESTABLISHED   0x002

◆ PSP_USBBUS_DRIVERNAME

#define PSP_USBBUS_DRIVERNAME   "USBBusDriver"

Function Documentation

◆ sceUsbActivate()

int sceUsbActivate ( u32  pid)

Activate a USB driver.

Parameters
pid- Product ID for the default USB Driver
Returns
0 on success

◆ sceUsbDeactivate()

int sceUsbDeactivate ( u32  pid)

Deactivate USB driver.

Parameters
pid- Product ID for the default USB driver
Returns
0 on success

◆ sceUsbGetDrvState()

int sceUsbGetDrvState ( const char driverName)

Get state of a specific USB driver.

Parameters
driverName- name of USB driver to get status from
Returns
1 if the driver has been started, 2 if it is stopped

◆ sceUsbGetState()

int sceUsbGetState ( void  )

Get USB state.

Returns
OR'd PSP_USB_* constants

◆ sceUsbStart()

int sceUsbStart ( const char driverName,
int  size,
void args 
)

Start a USB driver.

Parameters
driverName- name of the USB driver to start
size- Size of arguments to pass to USB driver start
args- Arguments to pass to USB driver start
Returns
0 on success

◆ sceUsbStop()

int sceUsbStop ( const char driverName,
int  size,
void args 
)

Stop a USB driver.

Parameters
driverName- name of the USB driver to stop
size- Size of arguments to pass to USB driver stop
args- Arguments to pass to USB driver stop
Returns
0 on success