PS2SDK
PS2 Homebrew Libraries
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
// guessed name
32
extern
u32 GetTimerMode(
int
timid);
33
// guessed name
34
extern
u32 (*GetTimerReadFunc(
int
timid))();
35
36
extern
int
SetTimerHandler(
int
timid,
unsigned
long
comparevalue,
unsigned
int
(*timeuphandler)(
void
*userdata),
void
*common);
37
extern
int
SetOverflowHandler(
int
timid,
unsigned
int
(*handler)(
void
*userdata),
void
*common);
38
extern
int
SetupHardTimer(
int
timid,
int
source,
int
mode,
int
prescale);
39
extern
int
StartHardTimer(
int
timid);
40
extern
int
StopHardTimer(
int
timid);
41
42
#define xtimrman_IMPORTS_start DECLARE_IMPORT_TABLE(timrman, 1, 2)
43
#define xtimrman_IMPORTS_end END_IMPORT_TABLE
44
45
#define I_GetTimerMode DECLARE_IMPORT(17, GetTimerMode)
46
#define I_GetTimerReadFunc DECLARE_IMPORT(18, GetTimerReadFunc)
47
#define I_SetTimerHandler DECLARE_IMPORT(20, SetTimerHandler)
48
#define I_SetOverflowHandler DECLARE_IMPORT(21, SetOverflowHandler)
49
#define I_SetupHardTimer DECLARE_IMPORT(22, SetupHardTimer)
50
#define I_StartHardTimer DECLARE_IMPORT(23, StartHardTimer)
51
#define I_StopHardTimer DECLARE_IMPORT(24, StopHardTimer)
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* __XTIMRMAN_H__ */
timrman.h
iop
system
timrman
include
xtimrman.h
Generated on Tue Oct 6 2026 23:20:15 for PS2SDK by
1.8.17