Associate a pulse code with a function
int devi_register_pulse( input_module_t *module, int code, int (*func)(message_context_t *, int, unsigned, void *));
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:
Valid pulse code used to associate the function, or -1 on error.
QNX
Safety: | |
---|---|
Interrupt handler | Not applicable |
Signal handler | Not applicable |
Thread | Not applicable |