Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NewSimulatorWatchdog Class Reference

Provides functions for simulating a watchdog timer. More...

#include <new_sim_watchdog.h>

Inheritance diagram for NewSimulatorWatchdog:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorWatchdog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NewSimulatorWatchdog (NewSimulatorResource *res)
 Constructor.
 NewSimulatorWatchdog (NewSimulatorResource *res, SaHpiRdrT rdr, SaHpiWatchdogT wdt_data)
 Full qualified constructor to fill an object with the parsed data.
 ~NewSimulatorWatchdog ()
 Destructor.
unsigned int Num () const
 return the number of the watchdog
unsigned int Oem () const
 return the Oem data of the watchdog
bool CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr)
 A rdr structure is filled with the data.
void Dump (NewSimulatorLog &dump) const
 Dump the Watchdog information.
SaErrorT GetWatchdogInfo (SaHpiWatchdogT &watchdog)
 HPI function saHpiWatchdogTimerGet.
SaErrorT SetWatchdogInfo (SaHpiWatchdogT &watchdog)
 HPI function saHpiWatchdogTimerSet.
SaErrorT ResetWatchdog ()
 HPI function saHpiWatchdogTimerReset.

Protected Member Functions

virtual bool TriggerAction ()
 Check whether the watchdog timer is running and trigger proper action.

Detailed Description

Provides functions for simulating a watchdog timer.


Member Function Documentation

bool NewSimulatorWatchdog::CreateRdr SaHpiRptEntryT &  resource,
SaHpiRdrT &  rdr
[virtual]
 

A rdr structure is filled with the data.

This method is called by method NewSimulatorRdr::Populate().

Parameters:
resource Address of resource structure
rdr Address of rdr structure
Returns:
true
Watchdog record

Reimplemented from NewSimulatorRdr.

void NewSimulatorWatchdog::Dump NewSimulatorLog dump  )  const [virtual]
 

Dump the Watchdog information.

Parameters:
dump address of the log

Implements NewSimulatorRdr.

SaErrorT NewSimulatorWatchdog::GetWatchdogInfo SaHpiWatchdogT &  watchdog  ) 
 

HPI function saHpiWatchdogTimerGet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Parameters:
watchdog address of watchdog record to be filled
Returns:
HPI return code

SaErrorT NewSimulatorWatchdog::ResetWatchdog  ) 
 

HPI function saHpiWatchdogTimerReset.

See also the description of the function inside the specification or header file. Starting or resetting a watchdog timer if it is allowed

Returns:
HPI return code

SaErrorT NewSimulatorWatchdog::SetWatchdogInfo SaHpiWatchdogT &  watchdog  ) 
 

HPI function saHpiWatchdogTimerSet.

See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed).

Parameters:
watchdog address of watchdog record to be filled
Returns:
HPI return code

bool NewSimulatorWatchdog::TriggerAction  )  [protected, virtual]
 

Check whether the watchdog timer is running and trigger proper action.

Returns:
true if thread can exit, false if not

Implements NewSimulatorTimerThread.


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:39:51 2010 for New Simulator by  doxygen 1.4.4