PSPSDK 2026-11-05
Unofficial static mirror · snapshot 2026-11-05 · upstream documentation
Loading...
Searching...
No Matches
pspusbacc.h File Reference
#include <psptypes.h>
#include <pspusb.h>
Include dependency graph for pspusbacc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SceUsbAccInfo
 Accessory specific information block returned by sceUsbAccGetInfo. More...
 

Macros

#define PSP_USBACC_DRIVERNAME   "USBAccBaseDriver"
 
#define PSP_USBACC_ERROR_NOT_AUTHENTICATED   (0x80243701)
 

Typedefs

typedef struct SceUsbAccInfo SceUsbAccInfo
 Accessory specific information block returned by sceUsbAccGetInfo.
 

Functions

int sceUsbAccGetAuthStat (void)
 Gets the authentication state of the connected USB accessory.
 
int sceUsbAccGetInfo (SceUsbAccInfo *info)
 Gets the information block sent by the connected USB accessory.
 

Macro Definition Documentation

◆ PSP_USBACC_DRIVERNAME

#define PSP_USBACC_DRIVERNAME   "USBAccBaseDriver"

◆ PSP_USBACC_ERROR_NOT_AUTHENTICATED

#define PSP_USBACC_ERROR_NOT_AUTHENTICATED   (0x80243701)

Typedef Documentation

◆ SceUsbAccInfo

typedef struct SceUsbAccInfo SceUsbAccInfo

Accessory specific information block returned by sceUsbAccGetInfo.

Function Documentation

◆ sceUsbAccGetAuthStat()

int sceUsbAccGetAuthStat ( void )

Gets the authentication state of the connected USB accessory.

Returns PSP_USBACC_ERROR_NOT_AUTHENTICATED while the accessory has not been authenticated yet or the authentication failed, and PSP_USB_ERROR_BUS_DRIVER_NOT_STARTED when no accessory is attached.

Available on firmware 2.70 and higher only.

Returns
0 on success, < 0 on error

◆ sceUsbAccGetInfo()

int sceUsbAccGetInfo ( SceUsbAccInfo * info)

Gets the information block sent by the connected USB accessory.

Returns PSP_USBACC_ERROR_NOT_AUTHENTICATED while the accessory has not been authenticated yet or the authentication failed, PSP_USB_ERROR_BUS_DRIVER_NOT_STARTED when no accessory is attached, and PSP_USB_ERROR_INVALID_ARGUMENT if info is NULL or not a user pointer.

Available on firmware 2.70 and higher only.

Parameters
info- pointer to a structure that receives the information
Returns
0 on success, < 0 on error