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.
Data direction | Parameter name | Description |
---|---|---|
[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.
Return value | Description |
---|---|
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 |