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

Go to the source code of this file.

Macros

#define timrman_IMPORTS
 
#define timrman_IMPORTS_start   DECLARE_IMPORT_TABLE(timrman, 1, 1)
 
#define timrman_IMPORTS_end   END_IMPORT_TABLE
 
#define I_GetTimersTable   DECLARE_IMPORT(3, GetTimersTable)
 
#define I_AllocHardTimer   DECLARE_IMPORT(4, AllocHardTimer)
 
#define I_ReferHardTimer   DECLARE_IMPORT(5, ReferHardTimer)
 
#define I_FreeHardTimer   DECLARE_IMPORT(6, FreeHardTimer)
 
#define I_SetTimerMode   DECLARE_IMPORT(7, SetTimerMode)
 
#define I_GetTimerStatus   DECLARE_IMPORT(8, GetTimerStatus)
 
#define I_SetTimerCounter   DECLARE_IMPORT(9, SetTimerCounter)
 
#define I_GetTimerCounter   DECLARE_IMPORT(10, GetTimerCounter)
 
#define I_SetTimerCompare   DECLARE_IMPORT(11, SetTimerCompare)
 
#define I_GetTimerCompare   DECLARE_IMPORT(12, GetTimerCompare)
 
#define I_SetHoldMode   DECLARE_IMPORT(13, SetHoldMode)
 
#define I_GetHoldMode   DECLARE_IMPORT(14, GetHoldMode)
 
#define I_GetHoldReg   DECLARE_IMPORT(15, GetHoldReg)
 
#define I_GetHardTimerIntrCode   DECLARE_IMPORT(16, GetHardTimerIntrCode)
 
#define I_GetTimerMode   DECLARE_IMPORT(17, GetTimerMode)
 
#define I_GetTimerReadFunc   DECLARE_IMPORT(18, GetTimerReadFunc)
 

Functions

void * GetTimersTable ()
 
int AllocHardTimer (int source, int size, int prescale)
 
int ReferHardTimer (int source, int size, int mode, int modemask)
 
int FreeHardTimer (int timid)
 
void SetTimerMode (int timid, int mode)
 
u32 GetTimerStatus (int timid)
 
void SetTimerCounter (int timid, u32 count)
 
u32 GetTimerCounter (int timid)
 
void SetTimerCompare (int timid, u32 compare)
 
u32 GetTimerCompare (int timid)
 
void SetHoldMode (int holdnum, int mode)
 
u32 GetHoldMode (int holdnum)
 
u32 GetHoldReg (int holdnum)
 
int GetHardTimerIntrCode (int timid)
 
u32 GetTimerMode (int timid)
 

Variables

u32(*)() GetTimerReadFunc (int timid)
 

Detailed Description

Timer manager.

Definition in file timrman.h.

Macro Definition Documentation

◆ timrman_IMPORTS

#define timrman_IMPORTS
Value:
timrman_IMPORTS_start \
\
I_AllocHardTimer \
I_ReferHardTimer \
I_FreeHardTimer \
\
I_SetTimerMode \
\
I_GetTimerStatus \
\
I_SetTimerCounter \
I_GetTimerCounter \
\
I_SetTimerCompare \
I_GetTimerCompare \
\
I_SetHoldMode \
I_GetHoldMode \
\
I_GetHardTimerIntrCode \
\
timrman_IMPORTS_end END_IMPORT_TABLE

Definition at line 96 of file timrman.h.

◆ timrman_IMPORTS_start

#define timrman_IMPORTS_start   DECLARE_IMPORT_TABLE(timrman, 1, 1)

Definition at line 121 of file timrman.h.

◆ timrman_IMPORTS_end

#define timrman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 122 of file timrman.h.

◆ I_GetTimersTable

#define I_GetTimersTable   DECLARE_IMPORT(3, GetTimersTable)

Definition at line 124 of file timrman.h.

◆ I_AllocHardTimer

#define I_AllocHardTimer   DECLARE_IMPORT(4, AllocHardTimer)

Definition at line 125 of file timrman.h.

◆ I_ReferHardTimer

#define I_ReferHardTimer   DECLARE_IMPORT(5, ReferHardTimer)

Definition at line 126 of file timrman.h.

◆ I_FreeHardTimer

#define I_FreeHardTimer   DECLARE_IMPORT(6, FreeHardTimer)

Definition at line 127 of file timrman.h.

◆ I_SetTimerMode

#define I_SetTimerMode   DECLARE_IMPORT(7, SetTimerMode)

Definition at line 128 of file timrman.h.

◆ I_GetTimerStatus

#define I_GetTimerStatus   DECLARE_IMPORT(8, GetTimerStatus)

Definition at line 129 of file timrman.h.

◆ I_SetTimerCounter

#define I_SetTimerCounter   DECLARE_IMPORT(9, SetTimerCounter)

Definition at line 130 of file timrman.h.

◆ I_GetTimerCounter

#define I_GetTimerCounter   DECLARE_IMPORT(10, GetTimerCounter)

Definition at line 131 of file timrman.h.

◆ I_SetTimerCompare

#define I_SetTimerCompare   DECLARE_IMPORT(11, SetTimerCompare)

Definition at line 132 of file timrman.h.

◆ I_GetTimerCompare

#define I_GetTimerCompare   DECLARE_IMPORT(12, GetTimerCompare)

Definition at line 133 of file timrman.h.

◆ I_SetHoldMode

#define I_SetHoldMode   DECLARE_IMPORT(13, SetHoldMode)

Definition at line 134 of file timrman.h.

◆ I_GetHoldMode

#define I_GetHoldMode   DECLARE_IMPORT(14, GetHoldMode)

Definition at line 135 of file timrman.h.

◆ I_GetHoldReg

#define I_GetHoldReg   DECLARE_IMPORT(15, GetHoldReg)

Definition at line 136 of file timrman.h.

◆ I_GetHardTimerIntrCode

#define I_GetHardTimerIntrCode   DECLARE_IMPORT(16, GetHardTimerIntrCode)

Definition at line 137 of file timrman.h.

◆ I_GetTimerMode

#define I_GetTimerMode   DECLARE_IMPORT(17, GetTimerMode)

Definition at line 138 of file timrman.h.

◆ I_GetTimerReadFunc

#define I_GetTimerReadFunc   DECLARE_IMPORT(18, GetTimerReadFunc)

Definition at line 139 of file timrman.h.

Function Documentation

◆ GetTimersTable()

void * GetTimersTable ( )

Definition at line 195 of file timrman.c.

◆ AllocHardTimer()

int AllocHardTimer ( int  source,
int  size,
int  prescale 
)

Definition at line 200 of file timrman.c.

◆ ReferHardTimer()

int ReferHardTimer ( int  source,
int  size,
int  mode,
int  modemask 
)

Definition at line 244 of file timrman.c.

◆ FreeHardTimer()

int FreeHardTimer ( int  timid)

Definition at line 285 of file timrman.c.

◆ SetTimerMode()

void SetTimerMode ( int  timid,
int  mode 
)

Definition at line 325 of file timrman.c.

◆ GetTimerStatus()

u32 GetTimerStatus ( int  timid)

Definition at line 346 of file timrman.c.

◆ SetTimerCounter()

void SetTimerCounter ( int  timid,
u32  count 
)

Definition at line 351 of file timrman.c.

◆ GetTimerCounter()

u32 GetTimerCounter ( int  timid)

Definition at line 362 of file timrman.c.

◆ SetTimerCompare()

void SetTimerCompare ( int  timid,
u32  compare 
)

Definition at line 373 of file timrman.c.

◆ GetTimerCompare()

u32 GetTimerCompare ( int  timid)

Definition at line 384 of file timrman.c.

◆ SetHoldMode()

void SetHoldMode ( int  holdnum,
int  mode 
)

Definition at line 395 of file timrman.c.

◆ GetHoldMode()

u32 GetHoldMode ( int  holdnum)

Definition at line 405 of file timrman.c.

◆ GetHoldReg()

u32 GetHoldReg ( int  holdnum)

Definition at line 414 of file timrman.c.

◆ GetHardTimerIntrCode()

int GetHardTimerIntrCode ( int  timid)

Definition at line 423 of file timrman.c.

◆ GetTimerMode()

u32 GetTimerMode ( int  timid)

Definition at line 336 of file timrman.c.

Variable Documentation

◆ GetTimerReadFunc

u32(*)() GetTimerReadFunc(int timid) ( int  timid)

Definition at line 93 of file timrman.h.