#include "SharedData.h"
#include "time.h"

/*
CLASS 
PSA-916Output

DESCRIPTION
SharedData interface between DataSoncisPSA-916 and PSA-916Server

AUTHOR
John Rieffel
*/

#define MetraByteOutputName "MetraByteOutput"

class MetraByteOutput : public SharedData {

public:

  struct Data {
    timespec sampleTime;
    float voltage;
    float current;
  };

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

  ~MetraByteOutput();

  ////////////////////////////////////////////////////////////////////
  // Read output command from shared memory
  void read();


  ////////////////////////////////////////////////////////////////////
  // Write output command to shared memory
  void write();

  Data data;
};


