This module contains the imports for UMD drive.
More...
|
| typedef struct pspUmdInfo | pspUmdInfo |
| | UMD Info struct.
|
| |
| typedef int(* | UmdCallback) (int unknown, int event) |
| | UMD Callback function.
|
| |
This module contains the imports for UMD drive.
◆ pspUmdInfo
| typedef struct pspUmdInfo pspUmdInfo |
◆ UmdCallback
| typedef int(* UmdCallback) (int unknown, int event) |
◆ pspUmdState
Enumeration for UMD drive state.
| Enumerator |
|---|
| PSP_UMD_NOT_PRESENT | |
| PSP_UMD_PRESENT | |
| PSP_UMD_CHANGED | |
| PSP_UMD_INITING | |
| PSP_UMD_INITED | |
| PSP_UMD_READY | |
◆ pspUmdTypes
Enumeration for UMD types.
| Enumerator |
|---|
| PSP_UMD_TYPE_GAME | |
| PSP_UMD_TYPE_VIDEO | |
| PSP_UMD_TYPE_AUDIO | |
◆ UmdDriveStat
Enumeration for UMD stats (legacy)
| Enumerator |
|---|
| UMD_WAITFORDISC | Wait for disc to be inserted.
|
| UMD_WAITFORINIT | Wait for the UMD to be initialised so it can be accessed from the mapped drive.
|
◆ sceUmdActivate()
| int sceUmdActivate |
( |
int | unit, |
|
|
const char * | drive ) |
Activates the UMD drive.
- Parameters
-
| unit | - The unit to initialise (probably). Should be set to 1. |
| drive | - A prefix string for the fs device to mount the UMD on (e.g. "disc0:") |
- Returns
- < 0 on error
- Example:
int i;
if(i == 0)
{
}
int sceUmdCheckMedium(void)
Check whether there is a disc in the UMD drive.
int sceUmdActivate(int unit, const char *drive)
Activates the UMD drive.
int sceUmdWaitDriveStat(int stat)
Wait for the UMD drive to reach a certain state.
@ PSP_UMD_PRESENT
Definition pspumd.h:49
@ PSP_UMD_READY
Definition pspumd.h:53
◆ sceUmdCancelWaitDriveStat()
| int sceUmdCancelWaitDriveStat |
( |
void | | ) |
|
Cancel a sceUmdWait* call.
- Returns
- < 0 on error
◆ sceUmdCheckMedium()
| int sceUmdCheckMedium |
( |
void | | ) |
|
Check whether there is a disc in the UMD drive.
- Returns
- 0 if no disc present, anything else indicates a disc is inserted.
◆ sceUmdDeactivate()
| int sceUmdDeactivate |
( |
int | unit, |
|
|
const char * | drive ) |
Deativates the UMD drive.
- Parameters
-
| unit | - The unit to initialise (probably). Should be set to 1. |
| drive | - A prefix string for the fs device to mount the UMD on (e.g. "disc0:") |
- Returns
- < 0 on error
◆ sceUmdGetDiscInfo()
Get the disc info.
- Parameters
-
- Returns
- < 0 on error
◆ sceUmdGetDriveStat()
| int sceUmdGetDriveStat |
( |
void | | ) |
|
Get (poll) the current state of the UMD drive.
- Returns
- < 0 on error, one or more of pspUmdState on success
◆ sceUmdGetErrorStat()
| int sceUmdGetErrorStat |
( |
void | | ) |
|
Get the error code associated with a failed event.
- Returns
- < 0 on error, the error code on success
◆ sceUmdRegisterUMDCallBack()
| int sceUmdRegisterUMDCallBack |
( |
int | cbid | ) |
|
Register a callback for the UMD drive.
- Note
- Callback is of type UmdCallback
- Parameters
-
| cbid | - A callback ID created from sceKernelCreateCallback |
- Returns
- < 0 on error
- Example:
int umd_callback(int unknown, int event)
{
}
int sceKernelCreateCallback(const char *name, SceKernelCallbackFunction func, void *arg)
Create callback.
int sceUmdRegisterUMDCallBack(int cbid)
Register a callback for the UMD drive.
#define NULL
Definition psptypes.h:31
◆ sceUmdReplacePermit()
| int sceUmdReplacePermit |
( |
void | | ) |
|
Permit UMD disc being replaced.
- Returns
- < 0 on error
◆ sceUmdReplaceProhibit()
| int sceUmdReplaceProhibit |
( |
void | | ) |
|
Prohibit UMD disc being replaced.
- Returns
- < 0 on error
◆ sceUmdUnRegisterUMDCallBack()
| int sceUmdUnRegisterUMDCallBack |
( |
int | cbid | ) |
|
Un-register a callback for the UMD drive.
- Parameters
-
| cbid | - A callback ID created from sceKernelCreateCallback |
- Returns
- < 0 on error
◆ sceUmdWaitDriveStat()
| int sceUmdWaitDriveStat |
( |
int | stat | ) |
|
Wait for the UMD drive to reach a certain state.
- Parameters
-
- Returns
- < 0 on error
◆ sceUmdWaitDriveStatCB()
| int sceUmdWaitDriveStatCB |
( |
int | stat, |
|
|
unsigned int | timeout ) |
Wait for the UMD drive to reach a certain state (plus callback)
- Parameters
-
| stat | - One or more of pspUmdState |
| timeout | - Timeout value in microseconds |
- Returns
- < 0 on error
◆ sceUmdWaitDriveStatWithTimer()
| int sceUmdWaitDriveStatWithTimer |
( |
int | stat, |
|
|
unsigned int | timeout ) |
Wait for the UMD drive to reach a certain state.
- Parameters
-
| stat | - One or more of pspUmdState |
| timeout | - Timeout value in microseconds |
- Returns
- < 0 on error