/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : FanOutput.h                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*-----------------------------------------------------------------------*
  CLASS: FanOutput

  DESCRIPTION: Shared memory for Server/Driver communication

  $Id: FanOutput.h,v 1.1 2004/04/02 01:14:09 rob Exp $
  *-----------------------------------------------------------------------*/

#ifndef _FANOUTPUT_H
#define _FANOUTPUT_H

#include <time.h>
#include "SharedData.h"
//#include "DeviceIF.h"
#include "FanIF.h"

#define FanOutputName "fanOutput"

//
// This declaration (not the definition) is outside of the
// FanOutput class to avoid having to scope the enum values for
// (each and every) use in other classes.
//
enum LedStateEnum {LedOn, LedOff};

class FanOutput: public SharedData {

  public:
   //
   // All the data is here:
   //
   struct FanDataStruct
   {
	 FanIF::Data data;

	 Boolean NewLedState;
	 LedStateEnum LedState;

	 Boolean WriteTempLimits;
	 short SetTempHi, SetTempLo, Ch;
   };
   FanDataStruct FanData;

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

   ~FanOutput();

   void read();
   void write();
};

#endif
