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.

Table 27-10. Parameters
Data directionParameter nameDescription

[in]

type

Type of callback function to enable

Returns

Status of the callback enable operation.

Table 27-11. Return Values
Return valueDescription

STATUS_OK

The callback was enabled successfully

STATUS_ERR_INVALID_ARG

If an invalid callback type was supplied