vitasdk
Documentation of the vitasdk
systimer.h File Reference

Go to the source code of this file.

Typedefs

typedef SceInt32 SceSysTimerId
 
typedef void(* SceSysTimerCallback) (SceSysTimerId timer, void *pUserData)
 

Enumerations

enum  SceSysTimerType { SCE_SYSTIMER_TYPE_LONG = 1 , SCE_SYSTIMER_TYPE_WORD = 2 }
 
enum  SceSysTimerClockSource { SCE_SYSTIMER_CLOCK_SOURCE_SYS = 0 , SCE_SYSTIMER_CLOCK_SOURCE_48MHZ = 3 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceSysTimerId)
 
SceSysTimerId ksceKernelSysTimerAlloc (SceSysTimerType timerType)
 Allocate one of the system's timers. More...
 
int ksceKernelSysTimerFree (SceSysTimerId timerId)
 Free an allocated system timer. More...
 
int ksceKernelSysTimerStartCount (SceSysTimerId timerId)
 Start a timer. More...
 
int ksceKernelSysTimerStopCount (SceSysTimerId timerId)
 Stop a timer. More...
 
int ksceKernelSysTimerSetClockSource (SceSysTimerId timerId, SceSysTimerClockSource clockSource, SceUInt8 prescaleFactor)
 Configure the source clock signal for a timer. More...
 
int ksceKernelSysTimerSetInterval (SceSysTimerId timerId, SceKernelSysClock interval)
 Set the timer interval. More...
 
int ksceKernelSysTimerSetHandler (SceSysTimerId timerId, SceSysTimerCallback callback, SceUInt32 targetCPU, void *pUserData)
 Set the interrupt callback handler for the timer. More...
 
int ksceKernelSysTimerGetCount (SceSysTimerId timerId, SceKernelSysClock *pCount)
 Get the timer count value. More...
 
int ksceKernelSysTimerSetCount (SceSysTimerId timerId, SceKernelSysClock count)
 Set the timer count value. More...
 
int ksceKernelSysTimerResetCount (SceSysTimerId timerId)
 Reset the timer count. More...