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
#define TC_SYSCLOCK 1
26
#define TC_PIXEL 2
27
#define TC_HLINE 4
28
29
int
SetTimerHandler(
int
timid,
unsigned
long
comparevalue,
unsigned
int
(*timeuphandler)(
void
*),
void
*common);
30
int
SetOverflowHandler(
int
timid,
unsigned
int
(*handler)(
void
*),
void
*common);
31
int
SetupHardTimer(
int
timid,
int
source,
int
mode,
int
prescale);
32
int
StartHardTimer(
int
timid);
33
int
StopHardTimer(
int
timid);
34
35
#define xtimrman_IMPORTS_start DECLARE_IMPORT_TABLE(timrman, 1, 1)
36
#define xtimrman_IMPORTS_end END_IMPORT_TABLE
37
38
#define I_SetTimerHandler DECLARE_IMPORT(20, SetTimerHandler)
39
#define I_SetOverflowHandler DECLARE_IMPORT(21, SetOverflowHandler)
40
#define I_SetupHardTimer DECLARE_IMPORT(22, SetupHardTimer)
41
#define I_StartHardTimer DECLARE_IMPORT(23, StartHardTimer)
42
#define I_StopHardTimer DECLARE_IMPORT(24, StopHardTimer)
43
44
#ifdef __cplusplus
45
}
46
#endif
47
48
#endif
/* __XTIMRMAN_H__ */
timrman.h
iop
kernel
include
xtimrman.h
Generated on Thu Nov 14 2024 05:25:27 for PS2SDK by
1.9.8