PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
timer_alarm.h
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 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
11#ifndef __TIMER_ALARM_H__
12#define __TIMER_ALARM_H__
13
14#include <tamtypes.h>
15#include <timer.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21extern u64 AlarmHandler(s32 alarm_id, u64 scheduled_time, u64 actual_time, void *arg, void *last_pc);
22extern s32 iSetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg);
23extern s32 SetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg);
24extern s32 iReleaseTimerAlarm(s32 id);
25extern s32 ReleaseTimerAlarm(s32 id);
26
27#ifdef __cplusplus
28};
29#endif
30
31#endif
32