sl@9: sl@9: sl@9: #ifndef FUTABA_VFD_H sl@9: #define FUTABA_VFD_H sl@9: sl@9: #include "hidapi.h" sl@9: sl@9: //This was computed from our number of pixels as follow 256x64/8/64 = 32 + 1 = 33 sl@9: //+1 was added for our header sl@9: const int KFutabaMaxCommandOutputReport = 33; sl@9: //TODO: Get ride of that constant once we figure out a way to get it from hidapi sl@9: const int KFutabaOutputReportLength = 65; sl@9: sl@9: sl@9: /** sl@9: Define a generic Futaba VFD command. sl@9: */ sl@9: class FutabaVfdCommand sl@9: { sl@9: public: sl@9: FutabaVfdCommand(); sl@9: ~FutabaVfdCommand(); sl@9: // sl@9: //void Create(int aMaxSize); sl@9: //void Delete(); sl@9: sl@9: //inline unsigned char& operator[](int aIndex){return iBuffer[aIndex];} sl@9: sl@9: void Reset(); sl@9: sl@9: private: sl@9: //unsigned char* iBuffer; sl@9: unsigned char iReports[KFutabaMaxCommandOutputReport][KFutabaOutputReportLength]; sl@9: int iSize; sl@9: int iMaxSize; sl@9: }; sl@9: sl@9: sl@9: #endif