8.6.4.5 Function events_create_hook()
Initializes an interrupt hook for insertion in the event interrupt hook queue.
enum status_code events_create_hook( struct events_hook * hook, events_interrupt_hook hook_func)
Initializes a hook structure so it is ready for insertion in the interrupt hook queue.
Data direction | Parameter name | Description |
---|---|---|
[out] |
hook |
Pointer to an events_hook struct instance |
[in] |
hook_func |
Pointer to a function containing the interrupt hook code |
Returns
Status of the hook creation procedure.
Return value | Description |
---|---|
STATUS_OK |
Creation and initialization of interrupt hook went successful |