|
libxr
1.0
Want to be the best embedded framework
|
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 | |
Private Member Functions | |
| ErrorCode | InitializeHardware () |
| ErrorCode | ApplyConfiguration () |
Static Private Member Functions | |
| static bool | IsInstanceSupported (wdt_inst_t instance) |
Private Attributes | |
| wdt_hal_context_t | hal_ {} |
| const wdt_inst_t | instance_ = kESP32WatchdogDefaultInstance |
| bool | initialized_ = false |
| bool | started_ = false |
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. | |
Data Fields inherited from LibXR::Watchdog | |
| uint32_t | timeout_ms_ = 3000 |
| 溢出时间 | |
| uint32_t | auto_feed_interval_ms = 1000 |
| 自动喂狗间隔 | |
| bool | auto_feed_ = false |
| 是否自动喂狗 | |
Definition at line 45 of file esp_watchdog.hpp.
|
explicit |
Definition at line 40 of file esp_watchdog.cpp.
|
private |
Definition at line 100 of file esp_watchdog.cpp.
|
overridevirtual |
立即手动喂狗 Feed the watchdog immediately
Implements LibXR::Watchdog.
Definition at line 145 of file esp_watchdog.cpp.
|
private |
Definition at line 63 of file esp_watchdog.cpp.
|
staticprivate |
Definition at line 46 of file esp_watchdog.cpp.
|
overridevirtual |
初始化硬件并设置超时时间 Initialize hardware and set overflow time
| config | 配置参数 Configuration |
Implements LibXR::Watchdog.
Definition at line 125 of file esp_watchdog.cpp.
|
overridevirtual |
启动看门狗 / Start the watchdog
Implements LibXR::Watchdog.
Definition at line 158 of file esp_watchdog.cpp.
|
overridevirtual |
停止看门狗 / Stop the watchdog
Implements LibXR::Watchdog.
Definition at line 182 of file esp_watchdog.cpp.
|
private |
Definition at line 60 of file esp_watchdog.hpp.
|
private |
Definition at line 62 of file esp_watchdog.hpp.
|
private |
Definition at line 61 of file esp_watchdog.hpp.
|
private |
Definition at line 63 of file esp_watchdog.hpp.