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.

Table 27-6. Parameters
Data directionParameter nameDescription

[in]

callback

Pointer to the callback function to register

[in]

type

Type of callback function to register

Returns

Status of the registration operation.

Table 27-7. Return Values
Return valueDescription

STATUS_OK

The callback was registered successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied