pulse
![]() |
![]() |
![]() |
![]() |
pulse()
Process data gathered by the interrupt handler
Synopsis:
static int pulse( message_context_t *pContext,
int code,
unsigned flags,
void *data );
Description:
This function processes data gathered by the interrupt handler. It's called by the Input Runtime System on receiving a pulse or proxy associated with this callback.
This function should handle the condition being signalled by the pulse. At some application-determined point, it should call the output module's input() callback.
The arguments are:
- pContext
- Pointer to message context structure.
- code
- Value that you specify as the third parameter of the devi_register_interrupt() call.
- flags
- This parameter isn't used.
- data
- Pointer to module descriptor.
Returns:
EOK
Examples:
See device/uart.c.
Classification:
Your code
| Safety: | |
|---|---|
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)