pspusb.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspusb.h - Prototypes for the sceUsb library
00007  *
00008  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
00009  *
00010  * $Id: pspusb.h 2087 2006-12-04 07:08:01Z loser $
00011  */
00012 #ifndef __PSPUSB_H__
00013 #define __PSPUSB_H__
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 #define PSP_USBBUS_DRIVERNAME "USBBusDriver"
00020 
00021 //Defines for use with status function return values
00022 #define PSP_USB_ACTIVATED              0x200
00023 #define PSP_USB_CABLE_CONNECTED        0x020 
00024 #define PSP_USB_CONNECTION_ESTABLISHED 0x002
00025 
00035 int sceUsbStart(const char* driverName, int size, void *args);
00036 
00046 int sceUsbStop(const char* driverName, int size, void *args);
00047 
00055 int sceUsbActivate(u32 pid);
00056 
00064 int sceUsbDeactivate(u32 pid);
00065 
00071 int sceUsbGetState(void);
00072 
00080 int sceUsbGetDrvState(const char* driverName);
00081 
00082 #if 0
00083 int sceUsbGetDrvList(u32 r4one, u32* r5ret, u32 r6one);
00084 int sceUsbWaitState(u32 state, s32 waitmode, u32 *timeout);
00085 int sceUsbWaitCancel(void);
00086 #endif
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 #endif

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2