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.

Table 8-11. Parameters
Data directionParameter nameDescription

[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.

Table 8-12. Return Values
Return valueDescription

STATUS_OK

Creation and initialization of interrupt hook went successful