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.
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.
Return value | Description |
---|---|
STATUS_OK |
Enabling of the interrupt source went successful |
STATUS_ERR_INVALID_ARG |
Interrupt source does not exist |