#ifndef _CANMSG_ #define _CANMSG_ #include #include #include #include #ifdef ANAGATE #include #include #else #include #include #endif using namespace std; typedef __u32 u32_t; typedef __u16 u16_t; typedef __u8 u8_t; class Message { public: Message( int id, int *data, int ndata ): m_messageID( id ), m_nData( ndata ){ for( int i=0; i& retVals, bool break_on_error); void BootloaderJump( Device &dev, int id, int nReplies); void ReceiveMsg( Device &dev, int id, int nReplies); void BootloaderClear( Device &dev, int id, int nReplies); void BootloaderClear3( Device &dev, int nReplies, int linecout, std::vector& retVals); void FirmwareJump( Device &dev, int id, int nReplies); void ReadStat( Device &dev, int id, int nReplies, std::vector& retVals); void LightBad(Device &dev, int id, int nReplies, std::vector& retVals); vector GetBaseIDs(Device &dev, int id, int nReplies); void PrintMissingIDs(vector initial,vector final); void WriteStat( Device &dev, int id, int nReplies, int statByte); void BootloaderClear2( Device &devA, Device &devB, Device &devC, Device &devD, int nBasesA, int nBasesB, int nBasesC, int nBasesD, int linecount, std::vector& retVals ); void WriteDigital( Device &dev, unsigned long nOutputs); void ReadDigital( Device &dev); #endif