pspsdk-1.0+beta2
pspsystimer.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
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  * $Id: pspsystimer.h 2149 2007-01-25 20:46:21Z tyranid $
11  */
12 
13 #ifndef __SYSTIMER_H__
14 #define __SYSTIMER_H__
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef int SceSysTimerId;
21 
27 SceSysTimerId sceSTimerAlloc(void);
28 
35 void sceSTimerFree(SceSysTimerId timer);
36 
43 void sceSTimerStartCount(SceSysTimerId timer);
44 
51 void sceSTimerStopCount(SceSysTimerId timer);
52 
59 void sceSTimerResetCount(SceSysTimerId timer);
60 
68 void sceSTimerGetCount(SceSysTimerId timer, int* count);
69 
79 void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int (*handler)(void), int unk1);
80 
81 /* Unknown functions. */
82 //probably something to set the cycle of an active timer.
83 void SysTimerForKernel_53231A15(SceSysTimerId timer, int unk1);
84 //more complex. computes some ratio (unk2/unk1) and saves both parameters into the hardware registers. Might be some sort of scaling factor?
85 void SysTimerForKernel_B53534B4(SceSysTimerId timer, int unk1, int unk2);
86 
87 
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif