More cleanup.
10 #include "MiniDisplay.h"
14 #define MIN(a,b) (((a)<(b))?(a):(b))
18 #define MAX(a,b) (((a)>(b))?(a):(b))
22 //This was computed from our number of pixels as follow 256x64/8/64 = 32 + 1 = 33
23 //+1 was added for our header
24 const int KFutabaMaxCommandOutputReport = 33;
25 //TODO: Get ride of that constant once we figure out a way to get it from hidapi
26 const int KFutabaMaxHidReportSize = 65;
28 const int KHidReportIdIndex=0;
29 const int KFutabaHidReportSizeIndex=1;
30 //Define Futaba vendor ID to filter our list of device
31 const unsigned short KTargaVendorId = 0x19C2;
32 const unsigned short KFutabaVendorId = 0x1008;
33 const unsigned short KFutabaProductIdGP1212A01A = 0x100C;
34 const unsigned short KFutabaProductIdGP1212A02A = 0x1015;
35 const unsigned short KFutabaProductIdMDM166AA = 0x6A11;
38 //typedef struct hid_device_info HidDeviceInfo;
41 Define a Futaba HID report.
43 class FutabaVfdReport: public HidReport<KFutabaMaxHidReportSize>
52 Define a generic Futaba VFD command.
54 class FutabaVfdCommand
60 //void Create(int aMaxSize);
63 //inline unsigned char& operator[](int aIndex){return iBuffer[aIndex];}
68 //unsigned char* iBuffer;
69 FutabaVfdReport iReports[KFutabaMaxCommandOutputReport];
76 class FutabaGraphicDisplay : public GraphicDisplay