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.

Table 1. Parameters
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.

Table 2. Return Values
Return value Description

STATUS_OK

The callback was registered successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied