27.6.3.3.1 Function wdt_register_callback()
Registers an asynchronous callback function with the driver.
enum status_code wdt_register_callback( const wdt_callback_t callback, const enum wdt_callback type)
Registers an asynchronous callback with the WDT driver, fired when a given criteria (such as an Early Warning) is met. Callbacks are fired once for each event.
Data direction | Parameter name | Description |
---|---|---|
[in] |
callback |
Pointer to the callback function to register |
[in] |
type |
Type of callback function to register |
Returns
Status of the registration operation.
Return value | Description |
---|---|
STATUS_OK |
The callback was registered successfully |
STATUS_ERR_INVALID_ARG |
If an invalid callback type was supplied |