1.1.3.7 uint8_t ECIA_GIRQResultGet(ECIA_INT_SOURCE int_src) Function

C

uint8_t ECIA_GIRQResultGet(ECIA_INT_SOURCE int_src)

Summary

Returns the status of the given interrupt source

Description

Returns the status of the given interrupt source. The status is returned as 1 if both the interrupt source is active and the corresponding interrupt is enabled. The status is returned as 0 otherwise.

Precondition

None.

Parameters

Param Description
int_src One of the interrupt source from the enum ECIA_INT_SOURCE

Returns

1 - Interrupt source is active and interrupt is enabled

0 - Interrupt source is not active or interrupt is disabled

Example

uint8_t result = ECIA_GIRQResultGet(ECIA_AGG_INT_SRC_GPIO002)

Remarks

None