author | StephaneLenclud |
Mon, 09 Feb 2015 20:04:47 +0100 | |
changeset 33 | fc42477ae80b |
parent 8 | 5a9dbbc40c6b |
child 35 | 638eb0763e20 |
permissions | -rw-r--r-- |
sl@0 | 1 |
|
sl@0 | 2 |
#include "FutabaVfd.h" |
sl@0 | 3 |
//#include <stdlib.h> |
sl@0 | 4 |
#include <string.h> |
sl@0 | 5 |
|
sl@0 | 6 |
|
sl@0 | 7 |
#ifdef DEBUG_FRAME_DIFF |
sl@0 | 8 |
#include <QImage> |
sl@0 | 9 |
#include <QTextStream> |
sl@0 | 10 |
#endif |
sl@0 | 11 |
|
sl@0 | 12 |
|
sl@8 | 13 |
|
sl@0 | 14 |
|
sl@0 | 15 |
// |
sl@0 | 16 |
// |
sl@0 | 17 |
// |
sl@0 | 18 |
|
sl@0 | 19 |
FutabaVfdCommand::FutabaVfdCommand():/*iBuffer(NULL),*/iSize(0),iMaxSize(0) |
sl@0 | 20 |
{ |
sl@0 | 21 |
} |
sl@0 | 22 |
|
sl@0 | 23 |
FutabaVfdCommand::~FutabaVfdCommand() |
sl@0 | 24 |
{ |
sl@0 | 25 |
//Delete(); |
sl@0 | 26 |
} |
sl@0 | 27 |
|
sl@0 | 28 |
|
sl@0 | 29 |
/** |
sl@0 | 30 |
|
sl@0 | 31 |
*/ |
sl@0 | 32 |
void FutabaVfdCommand::Reset() |
sl@0 | 33 |
{ |
sl@0 | 34 |
memset(iReports,0,sizeof(iReports)); |
sl@0 | 35 |
} |
sl@0 | 36 |
|
sl@0 | 37 |
|
sl@0 | 38 |
|
sl@0 | 39 |
/** |
sl@0 | 40 |
|
sl@0 | 41 |
*/ |
sl@0 | 42 |
/* |
sl@0 | 43 |
void FutabaVfdCommand::Create(int aMaxSize) |
sl@0 | 44 |
{ |
sl@0 | 45 |
iBuffer=new unsigned char[aMaxSize]; |
sl@0 | 46 |
if (iBuffer) |
sl@0 | 47 |
{ |
sl@0 | 48 |
iMaxSize = aMaxSize; |
sl@0 | 49 |
iSize = 0; |
sl@0 | 50 |
} |
sl@0 | 51 |
} |
sl@0 | 52 |
*/ |
sl@0 | 53 |
|
sl@0 | 54 |
/** |
sl@0 | 55 |
|
sl@0 | 56 |
*/ |
sl@0 | 57 |
/* |
sl@0 | 58 |
void FutabaVfdCommand::Delete() |
sl@0 | 59 |
{ |
sl@0 | 60 |
delete[] iBuffer; |
sl@0 | 61 |
iBuffer = NULL; |
sl@0 | 62 |
iMaxSize = 0; |
sl@0 | 63 |
iSize = 0; |
sl@0 | 64 |
} |
sl@0 | 65 |
*/ |
sl@0 | 66 |
|
sl@0 | 67 |
|
sl@9 | 68 |
// |
sl@9 | 69 |
// class FutabaDisplay |
sl@9 | 70 |
// |
sl@0 | 71 |
|
sl@9 | 72 |
void FutabaGraphicDisplay::Close() |
sl@9 | 73 |
{ |
sl@9 | 74 |
HidDevice::Close(); |
sl@9 | 75 |
} |
sl@0 | 76 |
|
sl@0 | 77 |
|
sl@0 | 78 |
|
sl@0 | 79 |