PSPSDK 2024-10-31
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
34int sceUsbStart(const char* driverName, int size, void *args);
35
45int sceUsbStop(const char* driverName, int size, void *args);
46
55
64
71
80
81#if 0
83int sceUsbWaitState(u32 state, s32 waitmode, u32 *timeout);
84int sceUsbWaitCancel(void);
85#endif
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
unsigned char size
Definition pspsysmem_kernel.h:6
float x
Definition psptypes.h:0
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.