It accepts no arguments, and when it executes, it creates an IOReq for the timer. It returns the item number of that IOReq if successful, or a negative value (an error code) if unsuccessful. Save the item number for use with the VBL timing calls.
Item GetVBLIOReq( void )
It accepts the item number of the VBL IOReq and the number of vertical blank fields the task should wait for before becoming active again. It returns a zero if successful, and a negative value (an error code) if unsuccessful.
Err WaitVBL( Item ioreq, uint32 numfields )
To allow a task to continue execution while the timer processes the IOReq sent to it, use this call:
It accepts the same arguments as
Err WaitVBLDefer( Item ioreq, uint32 numfields )
WaitVBL()
, but, when executed, allows the task to continue execution while the IOReq is outstanding. If the task wants to be notified of the timing call's completion, use the WaitIO()
call.