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

#ifndef _PA200LROutput_H
#define _PA200LROutput_H

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

#define PA200LROutputName "PA200LROutput_ShmemName"

/*
CLASS 
PA200LROutput

DESCRIPTION
Output of PA200LR driver

*/
class PA200LROutput : public SharedData {

public:

  struct Data {

    // Indicates that device is initialized and ready
    Boolean deviceReady;

    timespec updateTime;
    float range;

    // Indicates that echo was received
    Boolean echoReceived;
  };

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

  ~PA200LROutput();


  ////////////////////////////////////////////////////////////////////
  // 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
