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

  DESCRIPTION: Shared mem for Octans DMU_AHRS Attitude Heading Reference
  System output channel

  AUTHOR: Aaron Marsh

  $Id: DropWeightOutput.h,v 1.3 2005/10/26 01:17:40 dorado Exp $
 *-----------------------------------------------------------------------*/

#ifndef _DROPWEIGHTOUTPUT_H
#define _DROPWEIGHTOUTPUT_H

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

#define DropWeightOutputName "dropWeightOutput"

//
// This declaration (not the definition) is outside of the
// DropWeightOutput class to avoid having to scope the enum values for
// (each and every) use in other classes.
//
enum ReleaseEnum {Dropped, NotDropped};

class DropWeightOutput: public SharedData {

public:

  //
  // The integer Reset in the struct below can take the following values:
  // 1 - Reset the watchdog timer.
  // 2 - Reset both counters and the relay.
  // 3 - Reset the relay and the PIC.
  //
  struct Data 
  {
    short Wdt;
    short Bwt;
    short ACommsDN;
    short DW_out;
    short Release;
    short Reset;
    short FireGulper;
  };
  Data data;

  ReleaseEnum ReleaseState;

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

  ~DropWeightOutput();


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

#endif
