#include "MetraByteOutput.h"
#include "Syslog.h"

MetraByteOutput::MetraByteOutput(Access access,Boolean init)
  :SharedData(MetraByteOutputName,sizeof(MetraByteOutput::Data),access, init)
{
}


MetraByteOutput::~MetraByteOutput()
{
  Boolean debug = True;
}


void MetraByteOutput::read()
{
  SharedData::read((void *)&data);
  //Syslog::write("Output: read: %f %f\n",data.voltage,data.current);
 
}


void MetraByteOutput::write()
{
  SharedData::write((void *)&data);
  //slog::write("Output: wrote: %f %f\n",data.voltage,data.current);
  
}
