# 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 1095 2005-09-27 21:02:16Z jim $
    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 unknown1, int unknown2);
    00036
    00046 int sceUsbStop(const char* driverName, int unknown1, int unknown2);
    00047
    00055 int sceUsbActivate(u32 flag);
    00056
    00062 int sceUsbDeactivate();
    00063
    00069 int sceUsbGetState(void);
    00070
    00071 // the following are disabled until more testing is done
    00072 #if 0
    00073
    00080 int sceUsbGetDrvState(const char* driverName);
    00081
    00082
    00083 int sceUsbGetDrvList(u32 r4one, u32* r5ret, u32 r6one);
    00084 int sceUsbWaitState(?);
    00085 int sceUsbWaitCancel(void);
    00086 #endif
    00087
    00088 #ifdef __cplusplus
    00089 }
    00090 #endif
    00091
    00092 #endif