27.6.3.4.1 Function wdt_enable_callback()
Enables asynchronous callback generation for a given type.
enum status_code wdt_enable_callback( const enum wdt_callback type)
Enables asynchronous callbacks for a given callback type. This must be called before an external interrupt channel will generate callback events.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
type |
Type of callback function to enable |
Returns
Status of the callback enable operation.
| Return value | Description |
|---|---|
|
STATUS_OK |
The callback was enabled successfully |
|
STATUS_ERR_INVALID_ARG |
If an invalid callback type was supplied |
