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_pulse.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_pulse.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_pulse.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_pulse.html on line 8

devi_register_pulse()

Associate a pulse code with a function

Synopsis:

int devi_register_pulse( input_module_t *module, 
                        int code, 
                        int (*func)(message_context_t *, 
                                               int, 
                                               unsigned, 
                                               void *));

Description:

This function associates a pulse code with a function. When the input runtime system receives a pulse with the specified code, it will call the associated function.

The arguments are:

module
Name of module data block.
code
Can be 0 or MSG_FLAG_ALLOC_PULSE, in which case a pulse code will be allocated for the caller.
func
The name of the function to associate. If it's NULL, then the module's pulse() callback is used.

Returns:

Valid pulse code used to associate the function, or -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_pulse.html on line 101

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_pulse.html on line 101