FutabaVfd.cpp
author StephaneLenclud
Sat, 26 Sep 2015 11:45:26 +0200
changeset 39 c32f4955c166
parent 9 6b08e3e81cf3
permissions -rw-r--r--
More fixes to our NuGet package targets file.
     1 //
     2 // Copyright (C) 2014-2015 Stéphane Lenclud.
     3 //
     4 // This file is part of MiniDisplay.
     5 //
     6 // MiniDisplay is free software: you can redistribute it and/or modify
     7 // it under the terms of the GNU General Public License as published by
     8 // the Free Software Foundation, either version 3 of the License, or
     9 // (at your option) any later version.
    10 //
    11 // MiniDisplay is distributed in the hope that it will be useful,
    12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14 // GNU General Public License for more details.
    15 //
    16 // You should have received a copy of the GNU General Public License
    17 // along with MiniDisplay.  If not, see <http://www.gnu.org/licenses/>.
    18 //
    19 
    20 
    21 #include "FutabaVfd.h"
    22 //#include <stdlib.h>
    23 #include <string.h>
    24 
    25 
    26 #ifdef DEBUG_FRAME_DIFF
    27 #include <QImage>
    28 #include <QTextStream>
    29 #endif
    30 
    31 
    32 //
    33 //
    34 //
    35 
    36 FutabaVfdCommand::FutabaVfdCommand():/*iBuffer(NULL),*/iSize(0),iMaxSize(0)
    37     {
    38     }
    39 
    40 FutabaVfdCommand::~FutabaVfdCommand()
    41     {
    42     //Delete();
    43     }
    44 
    45 
    46 /**
    47 
    48 */
    49 void FutabaVfdCommand::Reset()
    50     {
    51     memset(iReports,0,sizeof(iReports));
    52     }
    53 
    54 
    55 
    56 /**
    57 
    58 */
    59 /*
    60 void FutabaVfdCommand::Create(int aMaxSize)
    61     {
    62     iBuffer=new unsigned char[aMaxSize];
    63     if (iBuffer)
    64         {
    65         iMaxSize = aMaxSize;
    66         iSize = 0;
    67         }
    68     }
    69 */
    70 
    71 /**
    72 
    73 */
    74 /*
    75 void FutabaVfdCommand::Delete()
    76 {
    77     delete[] iBuffer;
    78     iBuffer = NULL;
    79     iMaxSize = 0;
    80     iSize = 0;
    81 }
    82 */
    83 
    84 
    85 //
    86 // class FutabaDisplay
    87 //
    88 
    89 void FutabaGraphicDisplay::Close()
    90 	{
    91 	HidDevice::Close();
    92 	}
    93 
    94 
    95 
    96