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.
Files | |
| file | SoTimer.c |
| file | SoTimer.h |
Functions | |
| void | SoTimerClockEnable (u32 a_TimerID) |
| Enables and starts the clock. | |
| u32 | SoTimerClockGetTimerID (void) |
| Returns the timer that is used by the clock, if one is used at all. | |
| void | SoTimerClockDisable (void) |
| Disables the clock;. | |
| void | SoTimerClockReset (void) |
| Resets the clock. | |
| void | SoTimerClockPause (void) |
| Pauses the clock. | |
| void | SoTimerClockResume (void) |
| Resumes the clock. | |
| u32 | SoTimerClockGetTotalSeconds (void) |
| Returns the total number of seconds of the clock. | |
| u32 | SoTimerClockGetTotalMilliseconds (void) |
| Returns the total number of seconds of the clock. | |
| u32 | SoTimerClockGetSeconds (void) |
| Returns the number of seconds of the clock. | |
| u32 | SoTimerClockGetMinutes (void) |
| Returns the number of minutes of the clock. | |
| u32 | SoTimerClockGetHours (void) |
| Returns the number of hours of the clock. | |
| u32 | SoTimerClockGetDays (void) |
| Returns the number of days of the clock. | |
| void | SoTimerClockSet (u32 a_NumDays, u32 a_NumHours, u32 a_NumMinutes, u32 a_NumSeconds) |
| Sets the clock to the given value. | |
| void | SoTimerWait (u32 a_TimerID, u32 a_NumMilliSeconds) |
| Halts the CPU for the given time. Interrupts are still executed. | |
| void | SoTimerEnableForDirectSound (u32 a_TimerID) |
| This enables the given timer for direct sound purposes. | |
Singleton
At the moment this module contains a clock and a wait-routine. It also contains some functions to setup timers for using them together with the SoSound module.
|
|
Enables and starts the clock.
|
|
|
Returns the number of days of the clock.
|
|
|
Returns the number of hours of the clock.
|
|
|
Returns the number of minutes of the clock.
|
|
|
Returns the number of seconds of the clock.
|
|
|
Returns the timer that is used by the clock, if one is used at all.
|
|
|
Returns the total number of seconds of the clock.
|
|
|
Returns the total number of seconds of the clock.
|
|
||||||||||||||||||||
|
Sets the clock to the given value.
|
|
|
This enables the given timer for direct sound purposes.
|
|
||||||||||||
|
Halts the CPU for the given time. Interrupts are still executed.
|