/*-----------------------------------------------------------------------*
  CLASS: WatchdogOutput

  DESCRIPTION: Shared mem 

  $Id: WatchdogOutput.h,v 1.3 2000/08/14 19:02:24 jrieffel Exp $
 *-----------------------------------------------------------------------*/

#ifndef _WATCHDOGOUTPUT_H
#define _WATCHDOGOUTPUT_H

#include <time.h>
#include "SharedData.h"
#include "WatchdogIF.h"

#define WatchdogOutputName "watchdogOutput"

class WatchdogOutput: public SharedData {

public:

     struct Data {
       int deadman_on; // is it on or off?
       int deadman_time_hh; // these are used to send deadman times to the 
       int deadman_time_mm;
       int deadman_time_ss;
       char wd_error_status;
       char wd_status;
       int keepalive_time_hh;
       int keepalive_time_mm;
       int keepalive_time_ss;
       float sphere_temp;
       float sphere_pressure;
       char mast_status;
       char arb_msg;
       unsigned long updateTime;
     } data;

     WatchdogOutput( Access access = NoAccess,
		     Boolean init = False );

     ~WatchdogOutput();

     void read();
     void write();

};

#endif
