Function extint_chan_enable_callback()

Enables asynchronous callback generation for a given channel and type.

enum status_code extint_chan_enable_callback(
		const uint8_t channel,
		const enum extint_callback_type type)

Enables asynchronous callbacks for a given logical external interrupt channel and type. This must be called before an external interrupt channel will generate callback events.

Table 1. Parameters
Data direction Parameter name Description

[in]

channel

Logical channel to enable callback generation for

[in]

type

Type of callback function callbacks to enable

Returns

Status of the callback enable operation.

Table 2. Return Values
Return value Description

STATUS_OK

The callback was enabled successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied