pspsdk-1.0+beta2
pspsystimer.h File Reference

Go to the source code of this file.

Typedefs

typedef int SceSysTimerId

Functions

SceSysTimerId sceSTimerAlloc (void)
 Allocate a new SysTimer timer instance.
void sceSTimerFree (SceSysTimerId timer)
 Free an instance of a SysTimer timer.
void sceSTimerStartCount (SceSysTimerId timer)
 Start the SysTimer timer count.
void sceSTimerStopCount (SceSysTimerId timer)
 Stop the current SysTimer timer count.
void sceSTimerResetCount (SceSysTimerId timer)
 Reset the current SysTimer timer count.
void sceSTimerGetCount (SceSysTimerId timer, int *count)
 Get the current SysTimer timer count.
void sceSTimerSetHandler (SceSysTimerId timer, int cycle, int(*handler)(void), int unk1)
 Setup a SysTimer handler.
void SysTimerForKernel_53231A15 (SceSysTimerId timer, int unk1)
void SysTimerForKernel_B53534B4 (SceSysTimerId timer, int unk1, int unk2)

Typedef Documentation

typedef int SceSysTimerId

Function Documentation

SceSysTimerId sceSTimerAlloc ( void  )

Allocate a new SysTimer timer instance.

Returns
SysTimerId on success, < 0 on error
void sceSTimerFree ( SceSysTimerId  timer)

Free an instance of a SysTimer timer.

Parameters
timer- The timer id.
void sceSTimerGetCount ( SceSysTimerId  timer,
int *  count 
)

Get the current SysTimer timer count.

Parameters
timer- The timer id.
count- The pointer to an integer into which the count will be written.
void sceSTimerResetCount ( SceSysTimerId  timer)

Reset the current SysTimer timer count.

Parameters
timer- The timer id.
void sceSTimerSetHandler ( SceSysTimerId  timer,
int  cycle,
int(*)(void)  handler,
int  unk1 
)

Setup a SysTimer handler.

Parameters
timer- The timer id.
cycle- The timer cycle in microseconds (???). Maximum: 4194303 which represents ~1/10 seconds.
handler- The handler function. Has to return -1.
unk1- Unknown. Pass 0.
void sceSTimerStartCount ( SceSysTimerId  timer)

Start the SysTimer timer count.

Parameters
timer- The timer id.
void sceSTimerStopCount ( SceSysTimerId  timer)

Stop the current SysTimer timer count.

Parameters
timer- The timer id.
void SysTimerForKernel_53231A15 ( SceSysTimerId  timer,
int  unk1 
)
void SysTimerForKernel_B53534B4 ( SceSysTimerId  timer,
int  unk1,
int  unk2 
)