pspsdk-1.0+beta2
pspusb.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
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  * $Id: pspusb.h 2087 2006-12-04 07:08:01Z loser $
11  */
12 #ifndef __PSPUSB_H__
13 #define __PSPUSB_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #define PSP_USBBUS_DRIVERNAME "USBBusDriver"
20 
21 //Defines for use with status function return values
22 #define PSP_USB_ACTIVATED 0x200
23 #define PSP_USB_CABLE_CONNECTED 0x020
24 #define PSP_USB_CONNECTION_ESTABLISHED 0x002
25 
35 int sceUsbStart(const char* driverName, int size, void *args);
36 
46 int sceUsbStop(const char* driverName, int size, void *args);
47 
55 int sceUsbActivate(u32 pid);
56 
64 int sceUsbDeactivate(u32 pid);
65 
71 int sceUsbGetState(void);
72 
80 int sceUsbGetDrvState(const char* driverName);
81 
82 #if 0
83 int sceUsbGetDrvList(u32 r4one, u32* r5ret, u32 r6one);
84 int sceUsbWaitState(u32 state, s32 waitmode, u32 *timeout);
85 int sceUsbWaitCancel(void);
86 #endif
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif