PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xtimrman.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __XTIMRMAN_H__
17
#define __XTIMRMAN_H__
18
19
#include <
timrman.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
// The following was introduced in export version 1.2 (around SDK 2.0.5)
26
27
#define TC_SYSCLOCK 1
28
#define TC_PIXEL 2
29
#define TC_HLINE 4
30
31
extern
int
SetTimerHandler(
int
timid,
unsigned
long
comparevalue,
unsigned
int
(*timeuphandler)(
void
*userdata),
void
*common);
32
extern
int
SetOverflowHandler(
int
timid,
unsigned
int
(*handler)(
void
*userdata),
void
*common);
33
extern
int
SetupHardTimer(
int
timid,
int
source,
int
mode,
int
prescale);
34
extern
int
StartHardTimer(
int
timid);
35
extern
int
StopHardTimer(
int
timid);
36
37
#define xtimrman_IMPORTS_start DECLARE_IMPORT_TABLE(timrman, 1, 2)
38
#define xtimrman_IMPORTS_end END_IMPORT_TABLE
39
40
#define I_SetTimerHandler DECLARE_IMPORT(20, SetTimerHandler)
41
#define I_SetOverflowHandler DECLARE_IMPORT(21, SetOverflowHandler)
42
#define I_SetupHardTimer DECLARE_IMPORT(22, SetupHardTimer)
43
#define I_StartHardTimer DECLARE_IMPORT(23, StartHardTimer)
44
#define I_StopHardTimer DECLARE_IMPORT(24, StopHardTimer)
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* __XTIMRMAN_H__ */
timrman.h
iop
system
timrman
include
xtimrman.h
Generated on Tue May 5 2026 04:37:48 for PS2SDK by
1.12.0