|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
Public Member Functions | |
| ESP32Watchdog (uint32_t timeout_ms=1000, uint32_t feed_ms=250) | |
| ErrorCode | SetConfig (const Configuration &config) override |
| 初始化硬件并设置超时时间 Initialize hardware and set overflow time | |
| ErrorCode | Feed () override |
| 立即手动喂狗 Feed the watchdog immediately | |
| ErrorCode | Start () override |
| 启动看门狗 / Start the watchdog | |
| ErrorCode | Stop () override |
| 停止看门狗 / Stop the watchdog | |
Public Member Functions inherited from LibXR::Watchdog | |
| Watchdog () | |
| 构造函数 / Constructor | |
| virtual | ~Watchdog () |
| 虚析构函数 / Virtual destructor | |
Additional Inherited Members | |
Static Public Member Functions inherited from LibXR::Watchdog | |
| static void | ThreadFun (Watchdog *wdg) |
| Watchdog 自动喂狗线程函数 Watchdog thread function for auto-feeding. | |
| static void | TaskFun (Watchdog *wdg) |
| Watchdog 自动喂狗定时器任务函数 Watchdog timer task function for auto-feeding. | |
Public Attributes inherited from LibXR::Watchdog | |
| uint32_t | timeout_ms_ = 3000 |
| 溢出时间 | |
| uint32_t | auto_feed_interval_ms = 1000 |
| 自动喂狗间隔 | |
| bool | auto_feed_ = false |
| 是否自动喂狗 | |
Definition at line 44 of file esp_watchdog.hpp.
|
explicit |
Definition at line 41 of file esp_watchdog.cpp.
|
overridevirtual |
立即手动喂狗 Feed the watchdog immediately
Implements LibXR::Watchdog.
Definition at line 159 of file esp_watchdog.cpp.
|
overridevirtual |
初始化硬件并设置超时时间 Initialize hardware and set overflow time
| config | 配置参数 / Configuration |
Implements LibXR::Watchdog.
Definition at line 139 of file esp_watchdog.cpp.
|
overridevirtual |
启动看门狗 / Start the watchdog
Implements LibXR::Watchdog.
Definition at line 172 of file esp_watchdog.cpp.
|
overridevirtual |
停止看门狗 / Stop the watchdog
Implements LibXR::Watchdog.
Definition at line 196 of file esp_watchdog.cpp.