EasyManua.ls Logo

Sys Tec Electronic GW-003 - Figure 16: CAN-Ethernet Gateway Connection Status

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 67
The parameter dwConnectionState_p describes the current connection
status and can adapt the following values, described by the type
tConnectionState:
typedef enum
{
kConnecting = 0, // Connection in process
kEstablished = 1, // Connection established
kClosing = 2, // Disconnecting
kClosed = 3, // Disconnected
}tConnectionState;
Figure 16: CAN-Ethernet Gateway Connection Status
pArg_p: Address of argument for the Callback Function
At this location an argument can be given, which will be sent back
from the DLL upon a call of the Callback function.
This could be the address of an instance of the CAN-Ethernet
Gateway, if multiple connections are managed within an instance table
are to be addressed. If only one Callback function was declared for
multiple instances, then the argument pointer and its access to the
elements in the instance table can be used to determine which instance
the Callback function was called from. Since the return parameter
pArg_p is a void* type, then parameters of any kind can be returned at
this location, depending on the application.
Return Values:
(see Section 7.3.3)
ETHCAN_SUCCESSFULL
ETHCAN_ERR_RESOURCE
ETHCAN_ERR_ILLHANDLE
ETHCAN_ERR_ILLPARAM
ETHCAN_ERR_HWINUSE
ETHCAN_ERR_HWCONNECT_FAILD
ETHCAN_ERR_MAXMODULES
ETHCAN_ERR_SAL
ETHCAN_ERR_IFBTP

Table of Contents