Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 8

devi_register_timer()

Create a timer

Synopsis:

timer_t devi_register_timer( input_module_t *module, 
                             int prio, 
                             int *pc, 
                             struct sigevent *evp );

Description:

This function creates a timer. To arm the timer, the caller must call the OS library time_settime() function.


Note: The default notification is a pulse when the timer expires. You can override this by passing a prebuilt event in evp.

The arguments are:

module
Name of module data block.
prio
Dispatch priority that will be assigned to the callback function that processes a pulse. The priority is generated by an interrupt handler.
pc
Pulse code. If the pc argument isn't NULL and isn't equal to DEVI_PULSE_ALLOC, then it will be used as the pulse code to associate the pulse() callback.
evp
Pointer to sigevent structure. If provided, evp is attached to the interrupt (see InterruptAttachEvent() in the QNX Neutrino Library Reference.)

Returns:

0 on success, -1 on error.

Classification:

QNX

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 118

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/input/api/devi_register_timer.html on line 118