|
RADLib
RADical C++ application framework
|
Linux watchdog wrapper. More...
#include <RADDevice.h>
Public Member Functions | |
| Watchdog () | |
| Creates a closed watchdog wrapper. More... | |
| ~Watchdog () | |
| Closes the descriptor. More... | |
| bool | open (int index=0, const DevicePaths &paths={}, std::string *error=nullptr) |
| Opens /dev/watchdogN. More... | |
| void | close () |
| Closes the descriptor. More... | |
| bool | keepAlive (std::string *error=nullptr) |
| Pings the watchdog through ioctl. More... | |
| bool | isOpen () const |
| Returns true when open. More... | |
Linux watchdog wrapper.
| RADDevice::Watchdog::Watchdog | ( | ) |
Creates a closed watchdog wrapper.
| RADDevice::Watchdog::~Watchdog | ( | ) |
Closes the descriptor.
| void RADDevice::Watchdog::close | ( | ) |
Closes the descriptor.
| bool RADDevice::Watchdog::isOpen | ( | ) | const |
Returns true when open.
| bool RADDevice::Watchdog::keepAlive | ( | std::string * | error = nullptr | ) |
Pings the watchdog through ioctl.
| bool RADDevice::Watchdog::open | ( | int | index = 0, |
| const DevicePaths & | paths = {}, |
||
| std::string * | error = nullptr |
||
| ) |
Opens /dev/watchdogN.