Microchip® Advanced Software Framework

wdt_callback.h File Reference

SAM Watchdog Driver.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include "wdt.h"

Functions

Callback Enabling and Disabling
enum status_code wdt_enable_callback (const enum wdt_callback type)
 Enables asynchronous callback generation for a given type. More...
 
enum status_code wdt_disable_callback (const enum wdt_callback type)
 Disables asynchronous callback generation for a given type. More...
 

Callback Configuration and Initialization

enum  wdt_callback { WDT_CALLBACK_EARLY_WARNING }
 Enum for the possible callback types for the WDT module. More...
 
typedef void(* wdt_callback_t )(void)
 Type definition for a WDT module callback function. More...
 
enum status_code wdt_register_callback (const wdt_callback_t callback, const enum wdt_callback type)
 Registers an asynchronous callback function with the driver. More...
 
enum status_code wdt_unregister_callback (const enum wdt_callback type)
 Unregisters an asynchronous callback function with the driver. More...