devi_register_pulse
![]() |
![]() |
![]() |
![]() |
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 |
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)