SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
Go to the documentation of this file.
17 void init(
int period);
19 void set(
int l,
const char * str);
59 void _initialize_wdt();
72 #define MARK() halt_location.set(__LINE__,__PRETTY_FUNCTION__)
void set(int l, const char *str)
Record the current line number and function name. Also feeds the watchdog.
void init(int period)
Initialize the watchdog at the period given.
uint8_t resetCause()
Find out the cause of the last reset - see datasheet for bitmask.
void print(void)
Prints the most recently recorded value.
void reset()
Reset or 'kick' the watchdog timer to prevent a reset of the device.
int enable(int PeriodMS)
Enable the watchdog timer to reset the machine if it hangs.
void resume(void)
Re-enable the watchdog. You should do this right after waking from sleep.
void pause(void)
Pause the watchdog. You'll want to do this before sleeping.
void disable()
Completely disable the watchdog timer.
static class FunctionMarker halt_location
Singleton of our debug class.
bool read(void)
Read the recorded value from flash.
void write(void)
Actually write the recorded value to flash.