Communication for solid slow control.
Fork of sscm_comm by
Diff: sscm_comm.cpp
- Revision:
- 7:6d3c421026df
- Parent:
- 6:d9a96735d0fb
- Child:
- 9:a68c382dea12
diff -r d9a96735d0fb -r 6d3c421026df sscm_comm.cpp --- a/sscm_comm.cpp Fri Oct 03 14:15:25 2014 +0000 +++ b/sscm_comm.cpp Sun Oct 05 17:11:51 2014 +0000 @@ -8,7 +8,7 @@ #include "sscm_comm.h" -#define SSCM_LIB_SRC_VERSION "3.01" +#define SSCM_COMM_LIB_SRC_VERSION "3.31" using namespace sscm_comm; @@ -81,18 +81,21 @@ // to be implemented modulenr=0; } - - char libversion_com[150]={'e','m','p','t','y','\0'}; -char* get_sscm_com_version(){ - sprintf(libversion_com,"sscmhw namespacelib versions src : %s header: %s date:%s %s \n\r", - SSCM_LIB_SRC_VERSION,SSCM_COMM_LIB_HDR_VERSION , __DATE__,__TIME__); - return libversion_com; - -} +/* - +u16 sscm_comm::getSrcVersion(){ + return get_hex_version_nr(SSCM_COMM_LIB_SRC_VERSION ); +} +u16 sscm_comm::getHdrVersion(){ + return get_hex_version_nr(SSCM_COMM_LIB_HDR_VERSION ); +} +*/ void sscm_comm::get_mppc_dac_chnr(u8 plane, u8 x , u8 y, u8& ch,u8& modulenr, u8& connr ,u8&dacch, u8& serialnr ) {}; void sscm_comm::get_mppc_adc_chnr(u8 plane, u8 x , u8 y, u8& ch,u8& modulenr, u8& connr , u8& adcdevnr, u8& adcchnr , u8& serialnr ){}; + + + +sscm_comm::getsscmVersion::getsscmVersion():getVersion( SSCM_COMM_LIB_HDR_VERSION,SSCM_COMM_LIB_SRC_VERSION, __TIME__, __DATE__){};