wdtCtrl.h File Reference

Declaration of the WDT interface. More...

#include <avr/wdt.h>

Go to the source code of this file.

Functions

void HAL_StartWdt (HAL_WdtInterval_t interval)
 Starts WDT within a given interval.
void HAL_RegisterWdtCallback (void(*wdtCallback)())
 Registers WDT fired callback.
static void HAL_StopWdt (void)
 Stops the WDT.
static void HAL_ResetWdt (void)
 Resets the WDT.


Detailed Description

Declaration of the WDT interface.

Definition in file wdtCtrl.h.


Function Documentation

void HAL_RegisterWdtCallback ( void(*)()  wdtCallback  ) 

Registers WDT fired callback.

Registered functions is called when WDT is fired. After returning from the registered function device is rebooted itself.

Parameters:
[in] wdtCallback - pointer to the callback function.

static void HAL_ResetWdt ( void   )  [inline, static]

Resets the WDT.

Definition at line 73 of file wdtCtrl.h.

void HAL_StartWdt ( HAL_WdtInterval_t  interval  ) 

Starts WDT within a given interval.

Parameters:
[in] interval - interval. Must be chosen from:
WDT_INTERVAL_16 // 16 ms
WDT_INTERVAL_32 // 32 ms
WDT_INTERVAL_64 // 64 ms
WDT_INTERVAL_125 // 125 ms
WDT_INTERVAL_250 // 250 ms
WDT_INTERVAL_500 // 500 ms
WDT_INTERVAL_1000 // 1 second
WDT_INTERVAL_2000 // 2 seconds
WDT_INTERVAL_4000 // 4 seconds
WDT_INTERVAL_8000 // 8 seconds

static void HAL_StopWdt ( void   )  [inline, static]

Stops the WDT.

Definition at line 65 of file wdtCtrl.h.


Generated on Wed Apr 2 19:06:16 2008 for ZigBeeNet Stack Documentation by  doxygen 1.5.1-p1