pspsystimer.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspsystimer.h - Prototypes for the sceSystimer library.
00007  *
00008  * Copyright (c) 2007 Iaroslav Gaponenko <adrahil@gmail.com>
00009  *
00010  * $Id: pspsystimer.h 2149 2007-01-25 20:46:21Z tyranid $
00011  */
00012 
00013 #ifndef __SYSTIMER_H__
00014 #define __SYSTIMER_H__
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 typedef int SceSysTimerId;
00021 
00027 SceSysTimerId sceSTimerAlloc(void);
00028 
00035 void sceSTimerFree(SceSysTimerId timer);
00036 
00043 void sceSTimerStartCount(SceSysTimerId timer);
00044 
00051 void sceSTimerStopCount(SceSysTimerId timer);
00052 
00059 void sceSTimerResetCount(SceSysTimerId timer);
00060 
00068 void sceSTimerGetCount(SceSysTimerId timer, int* count);
00069 
00079 void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int (*handler)(void), int unk1);
00080 
00081 /* Unknown functions. */
00082 //probably something to set the cycle of an active timer.
00083 void SysTimerForKernel_53231A15(SceSysTimerId timer, int unk1);
00084 //more complex. computes some ratio (unk2/unk1) and saves both parameters into the hardware registers. Might be some sort of scaling factor?
00085 void SysTimerForKernel_B53534B4(SceSysTimerId timer, int unk1, int unk2);
00086 
00087 
00088 
00089 #ifdef __cplusplus
00090 }
00091 #endif
00092 
00093 #endif

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2