PSPSDK 2026-11-05
Unofficial static mirror · snapshot 2026-11-05 · upstream documentation
Loading...
Searching...
No Matches
pspusb.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspusb.h - Prototypes for the sceUsb library
7 *
8 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
9 *
10 */
11#ifndef __PSPUSB_H__
12#define __PSPUSB_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#define PSP_USBBUS_DRIVERNAME "USBBusDriver"
19
20//Defines for use with status function return values
21#define PSP_USB_ACTIVATED 0x200
22#define PSP_USB_CABLE_CONNECTED 0x020
23#define PSP_USB_CONNECTION_ESTABLISHED 0x002
24
25/* Error codes of the USB bus driver, also returned by the accessory drivers */
26#define PSP_USB_ERROR_ALREADY_DONE (0x80243001)
27#define PSP_USB_ERROR_INVALID_ARGUMENT (0x80243002)
28#define PSP_USB_ERROR_DRIVER_NOT_FOUND (0x80243005)
29#define PSP_USB_ERROR_BUS_DRIVER_NOT_STARTED (0x80243007)
30
40int sceUsbStart(const char* driverName, int size, void *args);
41
51int sceUsbStop(const char* driverName, int size, void *args);
52
61
70
77
85int sceUsbGetDrvState(const char* driverName);
86
87#if 0
88int sceUsbGetDrvList(u32 r4one, u32* r5ret, u32 r6one);
89int sceUsbWaitState(u32 state, s32 waitmode, u32 *timeout);
90int sceUsbWaitCancel(void);
91#endif
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
int32_t s32
Definition psptypes.h:47
uint32_t u32
Definition psptypes.h:41
int sceUsbStop(const char *driverName, int size, void *args)
Stop a USB driver.
int sceUsbDeactivate(u32 pid)
Deactivate USB driver.
int sceUsbGetState(void)
Get USB state.
int sceUsbActivate(u32 pid)
Activate a USB driver.
int sceUsbGetDrvState(const char *driverName)
Get state of a specific USB driver.
int sceUsbStart(const char *driverName, int size, void *args)
Start a USB driver.