Creates DAC interface
Fork of DevInterfaces by
Diff: getVersion.h
- Revision:
- 2:58f1d5a3f850
- Parent:
- 0:da1fb7dd363f
--- a/getVersion.h Fri Jan 08 11:56:44 2016 +0000 +++ b/getVersion.h Wed Jan 13 14:14:39 2016 +0000 @@ -15,7 +15,7 @@ * */ -#define GETVERSION_HDR_VER "0.10" +#define GETVERSION_HDR_VER "0.20" @@ -25,13 +25,11 @@ const char* sver; const char* ctime; const char* cdate; - + char infostr[100]; // 100 is not precise nr. public: - getVersion(const char* ver_h,const char* ver_s=0, const char* time=0,const char* date=0) { - sver=ver_s; hver=ver_h; ctime=time;cdate=date; - } ; - getVersion(){sver=0; hver=0; ctime=0;cdate=0;}; + getVersion(const char* ver_h,const char* ver_s=0, const char* time=0,const char* date=0) ; + getVersion(); // returns the version number of hdr of the module in hex code unsigned short getHdrVersion(); @@ -47,6 +45,8 @@ void get_dec_version( unsigned short hexversion , unsigned char & version, unsigned char& subversion); // translate "2.32" to 0x0222 unsigned short get_hex_version_nr(const char * vers); + // give a string with the HDR and SRC version + char* getversioninfo(); };