EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Page 44

Sys Tec Electronic USB-CANmodul
74 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...
USB-CANmodul
42
SYS TEC electronic GmbH 2001 L-487e_6
Description:
Returns the hardware information of a USB-CANmodul. This
function is especially useful if a USB-CANmodul has been initialized
with the device number USBCAN_ANY_MODULE. Afterwards, the
hardware information contains the device number of the initialized
USB-CANmodul.
Example:
BYTE bRet;
tUcanHandle UcanHandle;
tUcanHardwareInfo HwInfo;
char szDeviceNr[24];
...
// initialize USB-CANmodul
bRet = UcanInitHardware (&UcanHandle, USBCAN_ANY_MODULE, NULL);
// no error?
if (!bRet)
{
// get hardware information
UcanGetHardwareInfo (UcanHandle, &HwInfo);
// change the device number into a string
wsprintf (szDeviceNr, „device number = %d“, HwInfo.m_bDeviceNr);
...
}
...

Table of Contents