// created by Jean-Marc Zingg to be the GxIO io base class for the GxTFT library
//
// License: GNU GENERAL PUBLIC LICENSE V3, see LICENSE

#include "GxIO.h"

uint8_t GxIO::transferTransaction(uint8_t d)
{
  writeDataTransaction(d);
  return readDataTransaction();
}

uint16_t GxIO::transfer16Transaction(uint16_t d)
{
  writeData16Transaction(d);
  return readData16Transaction();
}

uint8_t GxIO::readDataTransaction()
{
  return 0;
};

uint16_t GxIO::readData16Transaction()
{
  return 0;
};

uint8_t GxIO::readData()
{
  return 0;
};

uint16_t GxIO::readData16()
{
  return 0;
};

uint32_t GxIO::readRawData32(uint8_t part)
{
  return 0;
};

void GxIO::writeCommand16Transaction(uint16_t c)
{
  startTransaction();
  writeCommand16(c);
  endTransaction();
}

void GxIO::writeCommand16(uint16_t c)
{
  writeCommand(c >> 8);
  writeCommand(c);
}


