The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
00001 // ---------------------------------------------------------------------------- 00013 // ---------------------------------------------------------------------------- 00014 00015 #ifndef SO_TIMER_H 00016 #define SO_TIMER_H 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 00023 // ---------------------------------------------------------------------------- //! @{ 00035 // ---------------------------------------------------------------------------- 00036 00037 // ---------------------------------------------------------------------------- 00038 // Includes 00039 // ---------------------------------------------------------------------------- 00040 00041 #include "SoSystem.h" 00042 00043 // ---------------------------------------------------------------------------- 00044 // Public methods; 00045 // ---------------------------------------------------------------------------- 00046 00047 void SoTimerClockEnable( u32 a_TimerID ); 00048 u32 SoTimerClockGetTimerID( void ); 00049 void SoTimerClockDisable( void ); 00050 void SoTimerClockReset( void ); 00051 void SoTimerClockPause( void ); 00052 void SoTimerClockResume( void ); 00053 u32 SoTimerClockGetTotalSeconds( void ); 00054 u32 SoTimerClockGetTotalMilliseconds( void ); 00055 u32 SoTimerClockGetSeconds( void ); 00056 u32 SoTimerClockGetMinutes( void ); 00057 u32 SoTimerClockGetHours( void ); 00058 u32 SoTimerClockGetDays( void ); 00059 void SoTimerClockSet( u32 a_NumDays, 00060 u32 a_NumHours, 00061 u32 a_NumMinutes, 00062 u32 a_NumSeconds ); 00063 00064 00065 void SoTimerWait( u32 a_Timer, u32 a_NumMilliSeconds ); 00066 00067 void SoTimerEnableForDirectSound( u32 a_TimerID ); 00068 00069 // ---------------------------------------------------------------------------- 00070 // EOF 00071 // ---------------------------------------------------------------------------- 00072 00074 00075 #ifdef __cplusplus 00076 } // extern "C" 00077 #endif 00078 00079 #endif