RADLib
RADical C++ application framework
RADDevice::Watchdog Class Reference

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...
 

Detailed Description

Linux watchdog wrapper.

Constructor & Destructor Documentation

◆ Watchdog()

RADDevice::Watchdog::Watchdog ( )

Creates a closed watchdog wrapper.

◆ ~Watchdog()

RADDevice::Watchdog::~Watchdog ( )

Closes the descriptor.

Member Function Documentation

◆ close()

void RADDevice::Watchdog::close ( )

Closes the descriptor.

◆ isOpen()

bool RADDevice::Watchdog::isOpen ( ) const

Returns true when open.

◆ keepAlive()

bool RADDevice::Watchdog::keepAlive ( std::string *  error = nullptr)

Pings the watchdog through ioctl.

◆ open()

bool RADDevice::Watchdog::open ( int  index = 0,
const DevicePaths paths = {},
std::string *  error = nullptr 
)

Opens /dev/watchdogN.


The documentation for this class was generated from the following file: