sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
timer_alarm.h File Reference
#include <tamtypes.h>
#include <timer.h>

Go to the source code of this file.

Functions

u64 AlarmHandler (s32 alarm_id, u64 scheduled_time, u64 actual_time, void *arg, void *last_pc)
s32 iSetTimerAlarm (u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg)
s32 SetTimerAlarm (u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg)
s32 iReleaseTimerAlarm (s32 id)
s32 ReleaseTimerAlarm (s32 id)

Function Documentation

◆ AlarmHandler()

u64 AlarmHandler ( s32 alarm_id,
u64 scheduled_time,
u64 actual_time,
void * arg,
void * last_pc )
extern

Definition at line 65 of file timer_alarm.c.

◆ iReleaseTimerAlarm()

s32 iReleaseTimerAlarm ( s32 id)
extern

Definition at line 134 of file timer_alarm.c.

◆ iSetTimerAlarm()

s32 iSetTimerAlarm ( u64 clock_cycles,
timer_alarm_handler_t callback_handler,
void * arg )
extern

Definition at line 84 of file timer_alarm.c.

◆ ReleaseTimerAlarm()

s32 ReleaseTimerAlarm ( s32 id)
extern

Definition at line 152 of file timer_alarm.c.

◆ SetTimerAlarm()

s32 SetTimerAlarm ( u64 clock_cycles,
timer_alarm_handler_t callback_handler,
void * arg )
extern

Sets up alarm paramenters.

Parameters
clock_cyclesNumber of bus cycles when the alarm will trigger
callback_handlerFunction pointer to call when the alarm triggers (in IRQ)
argArgument to pass to callback_handler

Starts the alarm. If the alarm was already started, it does nothing.

Definition at line 120 of file timer_alarm.c.