Syntax
void vm_timer_set_hisr(
    VM_TIMER_ID_HISR timer_id, 
    vm_timer_hisr_callback timer_procedure, 
    void* user_data, 
    VMUINT32 ticks, 
    VMUINT32 reload_ticks
);
ContentsIndex
PreviousUpNext
vm_timer_set_hisr
Example
Syntax
void vm_timer_set_hisr(
    VM_TIMER_ID_HISR timer_id, 
    vm_timer_hisr_callback timer_procedure, 
    void* user_data, 
    VMUINT32 ticks, 
    VMUINT32 reload_ticks
);
Description

Starts a HISR timer. Calling this function will cancel the timer event set previously, and start a new HISR timer event.

Parameters
Parameters 
Description 
VM_TIMER_ID_HISR timer_id 
[IN] The HISR timer ID, returned by vm_timer_create_hisr(). 
vm_timer_hisr_callback timer_procedure 
[IN] The callback that is to be invoked when the timer fires. 
void* user_data 
[IN] The data to be consumed by the callback function. 
VMUINT32 ticks 
[IN] The timer interval in ticks. The maximum value is 0xFFFFFFFF. 
VMUINT32 reload_ticks 
[IN] The new timer interval to be reloaded, in ticks, after the previous timer interval elapses. If the value of reload_ticks is zero, the HISR timer is a one-shot timer. Otherwise, it is a repetitive timer at the interval of reload_ticks. 
Returns

void

Example
Refer to vm_timer_create_hisr code example.
File

vmtimer.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.