EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Using Callback Functions

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
63
3.2.6
Using the Callback Functions
The USBCAN32.DLL provides two callback functions.
UcanConnectControlFkt
Syntax:
void STDCALL UcanConnectControlFkt (BYTE bEvent_p , DWORD
dwParam_p);
Parameter:
bEvent_p: Event which occurred.
USBCAN_EVENT_CONNECT
USBCAN_EVENT_DISCONNECT
USBCAN_EVENT_FATALDISCON
dwParam_p: Additional parameter
If bEvent p = 8, then the parameter is
returned from the USB-CAN-Handle of the
disconnected module. No messages are
received from this module and no messages
can be sent. The corresponding USB-CAN-
Handle is invalid; in other instances, the
parameter is 0.
Description:
This callback function informs the application program if a new USB-
CANmodul is connected to the PC, or a connected USB-CANmodul
has been disconnected.
UcanCallbackFkt
Syntax:
void STDCALL UcanCallbackFkt (tUcanHandle UcanHandle_p,
BYTE bEvent_p);
Parameter:

Table of Contents