8.6.4.2 Function events_add_hook()

Insert hook into the event drivers interrupt hook queue.

enum status_code events_add_hook( struct events_resource * resource, struct events_hook * hook)

Inserts a hook into the event drivers interrupt hook queue.

Table 8-5. Parameters
Data directionParameter nameDescription

[in]

resource

Pointer to an events_resource struct instance

[in]

hook

Pointer to an events_hook struct instance

Returns

Status of the insertion procedure.

Table 8-6. Return Values
Return valueDescription

STATUS_OK

Insertion of hook went successful