#ifndef _CANMSG_ #define _CANMSG_ #include #include #include #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 HVControl( Device &dev, int id, int b1 , int b2, bool HVread, int nReplies,bool quiet ); void SetVoltage( Device &dev, int id, float Voltage ); void PowerDown( Device &dev, int id ); void PowerUp( Device &dev, int id ); void ReadHV( Device &dev, int id, int nReplies ); void ADC( Device &dev, int id, int command, int nReplies ); void ListenForMessages(Device &dev, int id, int nReplies ); bool CheckSetpoints(Device &dev, int id, int command, int nReplies); // Manny Added vector getADC( Device &dev, int id, int command, int nReplies, fstream* outFile=NULL); vector GetMyIDs( Device &dev, int id, int nReplies, bool print_out ); void ReadVersion( Device &dev, int id, int nReplies ); void CheckVersion( Device &dev, int id, int nReplies, string version_num ); int BootloaderAct( Device &dev, int id, int nReplies, int linecount, std::vector& retVals, bool break_on_error); void ReceiveMsg( Device &dev, int id, int nReplies); void BootloaderClear( 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 WriteDigital( Device &dev, unsigned long nOutputs); void ReadDigital( Device &dev); #endif