StephaneLenclud@35: //
StephaneLenclud@35: // Copyright (C) 2014-2015 Stéphane Lenclud.
StephaneLenclud@35: //
StephaneLenclud@35: // This file is part of MiniDisplay.
StephaneLenclud@35: //
StephaneLenclud@35: // MiniDisplay is free software: you can redistribute it and/or modify
StephaneLenclud@35: // it under the terms of the GNU General Public License as published by
StephaneLenclud@35: // the Free Software Foundation, either version 3 of the License, or
StephaneLenclud@35: // (at your option) any later version.
StephaneLenclud@35: //
StephaneLenclud@35: // MiniDisplay is distributed in the hope that it will be useful,
StephaneLenclud@35: // but WITHOUT ANY WARRANTY; without even the implied warranty of
StephaneLenclud@35: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
StephaneLenclud@35: // GNU General Public License for more details.
StephaneLenclud@35: //
StephaneLenclud@35: // You should have received a copy of the GNU General Public License
StephaneLenclud@35: // along with MiniDisplay. If not, see .
StephaneLenclud@35: //
StephaneLenclud@35:
sl@0:
sl@0: #include "FutabaVfd.h"
sl@0: //#include
sl@0: #include
sl@0:
sl@0:
sl@0: #ifdef DEBUG_FRAME_DIFF
sl@0: #include
sl@0: #include
sl@0: #endif
sl@0:
sl@0:
sl@0: //
sl@0: //
sl@0: //
sl@0:
sl@0: FutabaVfdCommand::FutabaVfdCommand():/*iBuffer(NULL),*/iSize(0),iMaxSize(0)
sl@0: {
sl@0: }
sl@0:
sl@0: FutabaVfdCommand::~FutabaVfdCommand()
sl@0: {
sl@0: //Delete();
sl@0: }
sl@0:
sl@0:
sl@0: /**
sl@0:
sl@0: */
sl@0: void FutabaVfdCommand::Reset()
sl@0: {
sl@0: memset(iReports,0,sizeof(iReports));
sl@0: }
sl@0:
sl@0:
sl@0:
sl@0: /**
sl@0:
sl@0: */
sl@0: /*
sl@0: void FutabaVfdCommand::Create(int aMaxSize)
sl@0: {
sl@0: iBuffer=new unsigned char[aMaxSize];
sl@0: if (iBuffer)
sl@0: {
sl@0: iMaxSize = aMaxSize;
sl@0: iSize = 0;
sl@0: }
sl@0: }
sl@0: */
sl@0:
sl@0: /**
sl@0:
sl@0: */
sl@0: /*
sl@0: void FutabaVfdCommand::Delete()
sl@0: {
sl@0: delete[] iBuffer;
sl@0: iBuffer = NULL;
sl@0: iMaxSize = 0;
sl@0: iSize = 0;
sl@0: }
sl@0: */
sl@0:
sl@0:
sl@9: //
sl@9: // class FutabaDisplay
sl@9: //
sl@0:
sl@9: void FutabaGraphicDisplay::Close()
sl@9: {
sl@9: HidDevice::Close();
sl@9: }
sl@0:
sl@0:
sl@0:
sl@0: