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 1. Parameters
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.

Table 2. Return Values
Return value Description

STATUS_OK

Creation and initialization of interrupt hook went successful