Miles Sound System SDK 7.2a

RAD_IOPStartTimer

The function RAD_IOPStartTimer starts calling a previously registered timer callback.

U32 RAD_IOPStartTimer(
  RAD_IOP_TIMER_DATA *timer_data,
  U32 ms_between
);

In Parameters

ms_between
Specifies the millisecond between each call. For example, if you wanted a timer that is called 100 times per second, then you'd use 10 ms.

Out Parameters

timer_data
Specifies the timer to control.

Returns

Returns the current internal timer period (or zero if there was an error).

Discussion

This function tells RAD_IOP to start calling your timer callback. You can call it multiple times to change the timer period.

These timers are drift-free, that is, they keep track of the last time they were called and make sure the average millisecond period that you requested is maintained.

Internally, RAD_IOP only uses one hardware timer and set it's frequency to the faster timer that you request. So, if you request a 10 ms timer and a 5 ms timer, the internal timer will run at 5 ms, and the 10 ms will only be called every other time.


Group: The RAD_IOP API for the Sony PS2
Related Functions: RAD_IOPPauseTimer, RAD_IOPRegisterTimerCallback, RAD_IOP_TIMERCALLBACK
Related Basic Types: U32
Related Structures: RAD_IOP_TIMER_DATA

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.