FastArduino  v1.7
C++ library to build fast but small Arduino/AVR projects
watchdog Namespace Reference

Defines the simple API for Watchdog timer management. More...

Classes

class  Watchdog
 Simple API to use watchdog timer as a clock for events generation. More...
 
class  WatchdogRTT
 Simple API to use watchdog timer as a real-time clock. More...
 
class  WatchdogSignal
 Simple API to handle watchdog signals. More...
 

Enumerations

enum  TimeOut : uint8_t {
  TimeOut::TO_16ms = 0,
  TimeOut::TO_32ms,
  TimeOut::TO_64ms,
  TimeOut::TO_125ms,
  TimeOut::TO_250ms,
  TimeOut::TO_500ms,
  TimeOut::TO_1s,
  TimeOut::TO_2s,
  TimeOut::TO_4s,
  TimeOut::TO_8s
}
 Defines the watchdog timeout period; watchdog interrupts will be triggered at the selected period. More...
 

Detailed Description

Defines the simple API for Watchdog timer management.

Enumeration Type Documentation

◆ TimeOut

enum watchdog::TimeOut : uint8_t
strong

Defines the watchdog timeout period; watchdog interrupts will be triggered at the selected period.

The MCU will be awakened at this period too. Note that watchdog timeout period is not very accurate, you would normally not use for real-time counting.

Enumerator
TO_16ms 

Watchdog timeout 16 ms.

TO_32ms 

Watchdog timeout 32 ms.

TO_64ms 

Watchdog timeout 64 ms.

TO_125ms 

Watchdog timeout 125 ms.

TO_250ms 

Watchdog timeout 250 ms.

TO_500ms 

Watchdog timeout 500 ms.

TO_1s 

Watchdog timeout 1 second.

TO_2s 

Watchdog timeout 2 seconds.

TO_4s 

Watchdog timeout 4 seconds.

TO_8s 

Watchdog timeout 8 seconds.

Definition at line 109 of file watchdog.h.