EasyManua.ls Logo

Sys Tec Electronic GW-003 - Ethcangetversion

Default Icon
108 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software Support
© SYS TEC electronic GmbH 2007 L-1032e_9 63
7.3.2.1 EthCanGetVersion
Syntax
:
DWORD STDCALL EthCanGetVersion (void);
Usage
DLL_INIT, HW_INIT
Description:
The function returns the software version number of the EthCan.Dll.
Parameters
: none
Return value:
The return value is the software version number in DWORD format. It
is structured as follows:
bit 0 - 7: most significant portion of version number in
binary format
bit 8 - 15: least significant portion of version number in
binary format
bit 16 - 31: release version number in binary format
Application Example:
DWORD dwVersion;
char szVersion[16];
...
// Get version number
dwVersion = EthCanGetVersion ();
// convert to a string
wsprintf( szVersion, „V%d.%02d.r%d“, (dwVersion&0xff),
(dwVersion&0xff00)>>8, dwVersion>>16);

Table of Contents