EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Page 37

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...
Software
SYS TEC electronic GmbH 2001 L-487e_6
35
UcanInitHardware
Syntax:
BYTE STDCALL UcanInitHardware
(tUcanHandle* pUcanHandle_p, BYTE bDeviceNr_p,
tCallbackFkt fpCallbackFkt_p);
Usability:
DLL_INIT
Parameter:
pUcanHandle_p: Pointer to the variable for the USB-CAN Handle.
This pointer may not be ZERO!
bDeviceNr_p: Device number of the USB-CANmodul (0 – 254).
The value USBCAN_ANY_MODULE (= 255)
makes sure that the first allocated USB-CANmodul
is used.
fpCallbackFkt_p: Address to the callback function of this USB-
CANmodul. This value can be ZERO. The
callback function will not be called if
corresponding events appear. This address can
also be same as one that is already used from other
USB-CANmoduls, because the callback function
contains the associated USB-CAN Handle.
Return value: Error code of the function.
USBCAN_SUCCESSFUL
USBCAN_ERR_MAXINSTANCES
USBCAN_ERR_HWINUSE
USBCAN_ERR_ILLHW
USBCAN_ERR_MAXMODULES
USBCAN_ERR_RESOURCE
USBCAN_ERR_ILLVERSION

Table of Contents