PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspsystimer.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspsystimer.h - Prototypes for the sceSystimer library.
7 *
8 * Copyright (c) 2007 Iaroslav Gaponenko <adrahil@gmail.com>
9 *
10 */
11
12#ifndef __SYSTIMER_H__
13#define __SYSTIMER_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19typedef int SceSysTimerId;
20
27
35
43
51
59
67void sceSTimerGetCount(SceSysTimerId timer, int* count);
68
78void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int (*handler)(void), int unk1);
79
80/* Unknown functions. */
81//probably something to set the cycle of an active timer.
83//more complex. computes some ratio (unk2/unk1) and saves both parameters into the hardware registers. Might be some sort of scaling factor?
84void SysTimerForKernel_B53534B4(SceSysTimerId timer, int unk1, int unk2);
85
86
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
void SysTimerForKernel_53231A15(SceSysTimerId timer, int unk1)
void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int(*handler)(void), int unk1)
Setup a SysTimer handler.
void sceSTimerGetCount(SceSysTimerId timer, int *count)
Get the current SysTimer timer count.
void sceSTimerFree(SceSysTimerId timer)
Free an instance of a SysTimer timer.
void SysTimerForKernel_B53534B4(SceSysTimerId timer, int unk1, int unk2)
void sceSTimerResetCount(SceSysTimerId timer)
Reset the current SysTimer timer count.
void sceSTimerStartCount(SceSysTimerId timer)
Start the SysTimer timer count.
SceSysTimerId sceSTimerAlloc(void)
Allocate a new SysTimer timer instance.
int SceSysTimerId
Definition pspsystimer.h:19
void sceSTimerStopCount(SceSysTimerId timer)
Stop the current SysTimer timer count.
float x
Definition psptypes.h:0