9.6.4.6.2 Function extint_unregister_callback()

Unregisters an asynchronous callback function with the driver.

enum status_code extint_unregister_callback( const extint_callback_t callback, const uint8_t channel, const enum extint_callback_type type)

Unregisters an asynchronous callback with the EXTINT driver, removing it from the internal callback registration table.

Table 9-20. Parameters
Data directionParameter nameDescription

[in]

callback

Pointer to the callback function to unregister

[in]

channel

Logical channel to unregister callback for

[in]

type

Type of callback function to unregister

Returns

Status of the de-registration operation.

Table 9-21. Return Values
Return valueDescription

STATUS_OK

The callback was unregistered successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied

STATUS_ERR_BAD_ADDRESS

No matching entry was found in the registration table