pspsdk-1.0+beta2
pspumd.h File Reference

Go to the source code of this file.

Data Structures

struct  pspUmdInfo
 UMD Info struct. More...

Typedefs

typedef struct pspUmdInfo pspUmdInfo
 UMD Info struct.
typedef int(* UmdCallback )(int unknown, int event)
 UMD Callback function.

Enumerations

enum  pspUmdTypes { PSP_UMD_TYPE_GAME = 0x10, PSP_UMD_TYPE_VIDEO = 0x20, PSP_UMD_TYPE_AUDIO = 0x40 }
 Enumeration for UMD types. More...
enum  pspUmdState {
  PSP_UMD_NOT_PRESENT = 0x01, PSP_UMD_PRESENT = 0x02, PSP_UMD_CHANGED = 0x04, PSP_UMD_INITING = 0x08,
  PSP_UMD_INITED = 0x10, PSP_UMD_READY = 0x20
}
 Enumeration for UMD drive state. More...
enum  UmdDriveStat { UMD_WAITFORDISC = PSP_UMD_PRESENT, UMD_WAITFORINIT = PSP_UMD_READY }
 Enumeration for UMD stats (legacy) More...

Functions

int sceUmdCheckMedium (void)
 Check whether there is a disc in the UMD drive.
int sceUmdGetDiscInfo (pspUmdInfo *info)
 Get the disc info.
int sceUmdActivate (int unit, const char *drive)
 Activates the UMD drive.
int sceUmdDeactivate (int unit, const char *drive)
 Deativates the UMD drive.
int sceUmdWaitDriveStat (int stat)
 Wait for the UMD drive to reach a certain state.
int sceUmdWaitDriveStatWithTimer (int stat, unsigned int timeout)
 Wait for the UMD drive to reach a certain state.
int sceUmdWaitDriveStatCB (int stat, unsigned int timeout)
 Wait for the UMD drive to reach a certain state (plus callback)
int sceUmdCancelWaitDriveStat (void)
 Cancel a sceUmdWait* call.
int sceUmdGetDriveStat (void)
 Get (poll) the current state of the UMD drive.
int sceUmdGetErrorStat (void)
 Get the error code associated with a failed event.
int sceUmdRegisterUMDCallBack (int cbid)
 Register a callback for the UMD drive.
int sceUmdUnRegisterUMDCallBack (int cbid)
 Un-register a callback for the UMD drive.
int sceUmdReplacePermit (void)
 Permit UMD disc being replaced.
int sceUmdReplaceProhibit (void)
 Prohibit UMD disc being replaced.