8.6.4.9 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 8-19. Parameters
Data directionParameter nameDescription

[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 8-20. Return Values
Return valueDescription

STATUS_OK

Enabling of the interrupt source went successful

STATUS_ERR_INVALID_ARG

Interrupt source does not exist