Miles Sound System SDK 7.2a

RAD_IOPRegisterTimerCallback

The function RAD_IOPRegisterTimerCallback registers a timer structure to call your timer interrupt callback at a certain frequency.

S32 RAD_IOPRegisterTimerCallback(
  RAD_IOP_TIMER_DATA *timer_data
);

Out Parameters

timer_data
Specifies the callback information.

Returns

Returns non-zero if the timer was registered, or zero on failure.

Discussion

This function registers a timer callback structure to call a timer interrupt callback. The timer won't actually start until a call to RAD_IOPStartTimer.

This structure must remain valid until the timer is unregistered with the RAD_IOPUnregisterTimerCallback function.

The timer callback function is called at interrupt time, so make sure your code is interrupt safe.


Group: The RAD_IOP API for the Sony PS2
Related Functions: RAD_IOPStartTimer, RAD_IOPUnregisterTimerCallback, RAD_IOP_TIMERCALLBACK
Related Basic Types: S32
Related Structures: RAD_IOP_TIMER_DATA

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