Function events_enable_interrupt_source()

Enable interrupt source.

enum status_code events_enable_interrupt_source(
		struct events_resource * resource,
		enum events_interrupt_source source)

Enable an interrupt source so can trigger execution of an interrupt hook.

Table 1. Parameters
Data direction Parameter name Description

[in]

resource

Pointer to an events_resource struct instance

[in]

source

One of the members in the events_interrupt_source enumerator

Returns

Status of the interrupt source enable procedure.

Table 2. Return Values
Return value Description

STATUS_OK

Enabling of the interrupt source was successful

STATUS_ERR_INVALID_ARG

Interrupt source does not exist