Software
SYS TEC electronic GmbH 2001 L-487e_6
33
Example:
DWORD dwVersion;
char szVersion[8];
...
// gets version number
dwVersion = UcanGetVersion ();
// changes into a string
wsprintf (szVersion, „V%d.%2d“, dwVersion&0xf0, dwVersion&0xf);
...
UcanInitHwConnectControl
Syntax:
BYTE STDCALL UcanInitHwConnectControl
(tConnectControlFkt fpConnectControlFkt_p);
Usability:
DLL_INIT
Parameter:
fpConnectControlFkt_p:Address to the callback function that has to
be called if a new USB-CANmodul is
connected or disconnected. This address may
not be zero!
Return value: Error code of the function.
USBCAN_SUCCESSFUL
USBCAN_ERR_RESOURCE
Description:
Initializes the supervision for recently connected USB-CANmoduls.
If a new module is connected to the PC, the callback function that is
indicated in the parameter will be called. This callback function is
also called if a module is disconnected from the PC.