9.6.4.7.1 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 9-22. Parameters
Data directionParameter nameDescription

[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 9-23. Return Values
Return valueDescription

STATUS_OK

The callback was enabled successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied