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
Summary of Contents for GW-003
Page 5: ...Contents SYS TEC electronic GmbH 2007 L 1032e_9 Index 97 ...
Page 8: ...CAN Ethernet Gateway SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 14: ...CAN Ethernet Gateway 6 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 56: ...CAN Ethernet Gateway 48 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 66: ...CAN Ethernet Gateway 58 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 100: ...CAN Ethernet Gateway 92 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Page 108: ...Published by SYS TEC electronic GmbH 2007 Ordering No L 1032e_9 Printed in Germany ...