PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xtimrman.h File Reference
#include <timrman.h>
+ Include dependency graph for xtimrman.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TC_SYSCLOCK   1
 
#define TC_PIXEL   2
 
#define TC_HLINE   4
 
#define xtimrman_IMPORTS_start   DECLARE_IMPORT_TABLE(timrman, 1, 1)
 
#define xtimrman_IMPORTS_end   END_IMPORT_TABLE
 
#define I_SetTimerHandler   DECLARE_IMPORT(20, SetTimerHandler)
 
#define I_SetOverflowHandler   DECLARE_IMPORT(21, SetOverflowHandler)
 
#define I_SetupHardTimer   DECLARE_IMPORT(22, SetupHardTimer)
 
#define I_StartHardTimer   DECLARE_IMPORT(23, StartHardTimer)
 
#define I_StopHardTimer   DECLARE_IMPORT(24, StopHardTimer)
 

Functions

int SetTimerHandler (int timid, unsigned long comparevalue, unsigned int(*timeuphandler)(void *), void *common)
 
int SetOverflowHandler (int timid, unsigned int(*handler)(void *), void *common)
 
int SetupHardTimer (int timid, int source, int mode, int prescale)
 
int StartHardTimer (int timid)
 
int StopHardTimer (int timid)
 

Detailed Description

Additional timrman functions only found in newer IOPRP images

Definition in file xtimrman.h.

Macro Definition Documentation

◆ TC_SYSCLOCK

#define TC_SYSCLOCK   1

Definition at line 25 of file xtimrman.h.

◆ TC_PIXEL

#define TC_PIXEL   2

Definition at line 26 of file xtimrman.h.

◆ TC_HLINE

#define TC_HLINE   4

Definition at line 27 of file xtimrman.h.

◆ xtimrman_IMPORTS_start

#define xtimrman_IMPORTS_start   DECLARE_IMPORT_TABLE(timrman, 1, 1)

Definition at line 35 of file xtimrman.h.

◆ xtimrman_IMPORTS_end

#define xtimrman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 36 of file xtimrman.h.

◆ I_SetTimerHandler

#define I_SetTimerHandler   DECLARE_IMPORT(20, SetTimerHandler)

Definition at line 38 of file xtimrman.h.

◆ I_SetOverflowHandler

#define I_SetOverflowHandler   DECLARE_IMPORT(21, SetOverflowHandler)

Definition at line 39 of file xtimrman.h.

◆ I_SetupHardTimer

#define I_SetupHardTimer   DECLARE_IMPORT(22, SetupHardTimer)

Definition at line 40 of file xtimrman.h.

◆ I_StartHardTimer

#define I_StartHardTimer   DECLARE_IMPORT(23, StartHardTimer)

Definition at line 41 of file xtimrman.h.

◆ I_StopHardTimer

#define I_StopHardTimer   DECLARE_IMPORT(24, StopHardTimer)

Definition at line 42 of file xtimrman.h.

Function Documentation

◆ SetTimerHandler()

int SetTimerHandler ( int  timid,
unsigned long  comparevalue,
unsigned int(*)(void *)  timeuphandler,
void *  common 
)

Definition at line 445 of file timrman.c.

◆ SetOverflowHandler()

int SetOverflowHandler ( int  timid,
unsigned int(*)(void *)  handler,
void *  common 
)

Definition at line 475 of file timrman.c.

◆ SetupHardTimer()

int SetupHardTimer ( int  timid,
int  source,
int  mode,
int  prescale 
)

Definition at line 540 of file timrman.c.

◆ StartHardTimer()

int StartHardTimer ( int  timid)

Definition at line 631 of file timrman.c.

◆ StopHardTimer()

int StopHardTimer ( int  timid)

Definition at line 678 of file timrman.c.