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

#ifndef _adam6017Output_H
#define _adam6017Output_H

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

#define adam6017OutputName "adam6017Output_ShmemName"

/*
CLASS 
adam6017Output

DESCRIPTION
Output of FastCAT Ctd driver

AUTHOR
Rich Henthorn
*/
class adam6017Output : public SharedData {

public:

  struct Data {

    Boolean deviceReady;

    timespec sampleTime;
    unsigned short voltages[8];
  };

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

  ~adam6017Output();


  ////////////////////////////////////////////////////////////////////
  // Read from shared memory to this object's Data::data element
  void read();

  ////////////////////////////////////////////////////////////////////
  // Write from this object's Data::data element to shared memory
  void write();

  Data data;

};

#endif
