Exports for Kernel.
More...
Exports for Kernel.
Using this library in your project
Include the header file in your project:
Link the library to the executable:
SceSystimerForDriver_stub
◆ SceSysTimerId
◆ SceSysTimerCallback
| typedef void(* SceSysTimerCallback) (SceSysTimerId timer, void *pUserData) |
◆ SceSysTimerType
| Enumerator |
|---|
| SCE_SYSTIMER_TYPE_LONG | 64-bit timer
|
| SCE_SYSTIMER_TYPE_WORD | 32-bit timer
|
◆ SceSysTimerClockSource
| Enumerator |
|---|
| SCE_SYSTIMER_CLOCK_SOURCE_SYS | 190/222MHz Frequency. Controlled by kscePower[Get|Set]SysClockFrequency
|
| SCE_SYSTIMER_CLOCK_SOURCE_48MHZ | 48MHz Frequency. Used by GpuEs4 and Threadmgr timers
|
◆ VITASDK_BUILD_ASSERT_EQ()
◆ ksceKernelSysTimerAlloc()
Allocate one of the system's timers.
- Parameters
-
- Returns
- The id of the new timer on success, < 0 on error.
◆ ksceKernelSysTimerFree()
Free an allocated system timer.
- Parameters
-
| timerId | - The timer to free. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerStartCount()
Start a timer.
- Parameters
-
| timerId | - The target timer. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerStopCount()
Stop a timer.
- Parameters
-
| timerId | - The target timer. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerSetClockSource()
Configure the source clock signal for a timer.
- The final input clock is determined as such:
inputClock = sourceClock / (prescaleFactor + 1)
- Parameters
-
| timerId | - The target timer. |
| clockSource | - The source of the clock signal. |
| prescaleFactor | - The prescale factor applied to the clock signal. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerSetInterval()
Set the timer interval.
The interval determines the count at which the timer will overflow to 0, and an interrupt will be fired.
- Parameters
-
| timerId | - The target timer. |
| interval | - The timer interval. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerSetHandler()
Set the interrupt callback handler for the timer.
- Parameters
-
| timerId | - The target timer. |
| callback | - The callback function. |
| targetCPU | - The CPU cores the interrupt can be handled from. |
| pUserData | - User data to be passed to the callback. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerGetCount()
Get the timer count value.
- Parameters
-
| timerId | - The target timer. |
| pCount | - The variable to store the count to. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerSetCount()
Set the timer count value.
- Parameters
-
| timerId | - The target timer. |
| count | - The count to set. |
- Returns
- 0 on success, < 0 on error.
◆ ksceKernelSysTimerResetCount()
Reset the timer count.
- Parameters
-
| timerId | - The target timer. |
- Returns
- 0 on success, < 0 on error.