SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
WatchdogSAMD Class Reference

Watchdog for SAMD21. More...

#include <debug.h>

Public Member Functions

int enable (int PeriodMS)
 Enable the watchdog timer to reset the machine if it hangs. More...
 
void reset ()
 Reset or 'kick' the watchdog timer to prevent a reset of the device.
 
uint8_t resetCause ()
 Find out the cause of the last reset - see datasheet for bitmask.
 
void disable ()
 Completely disable the watchdog timer.
 

Detailed Description

Watchdog for SAMD21.

This class is borrowed from Adafruits SleepyDog library.

Definition at line 40 of file debug.h.

Member Function Documentation

◆ enable()

int WatchdogSAMD::enable ( int  PeriodMS)

Enable the watchdog timer to reset the machine if it hangs.

Parameters
maxPeriodMSThe desired millisecond value. Rounds up to the nearest power of 2. Possible values are 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, and 8192.
Returns
The closest valid value

The documentation for this class was generated from the following file: