Software
Support
©
SYS TEC electronic GmbH 2007 L-1032e_9
85
ETHCAN_ERR_ILLHANDLE
An invalid instance handle was passed to the function. One possible
cause for this error is the return of an instance handle with an invalid
instance number, 0 for example. In addition the driver only supports
max. 5 instances so that the return of an instance handle greater than 5
will also result in this error.
ETHCAN_ERR_HWNOINIT
The function was called with an instance handle, for which the
corresponding hardware initialization function was not yet called.
Therefore the function
EthCanInitHardware()
has to be called, which
will return a valid instance handle upon successful completion.
ETHCAN_ERR_HWINUSE
The function
EthCanInitHardware()
was called with an instance
handle, for which the initialization routine was already called and
returned successfully. In order to perform a new initialization with
modified parameter values, the de-initialization function
EthCanDeinitHardware()
has to be called before a new initialization
can occur.
ETHCAN_ERR_HWNOTCONNECTED
The function was called, but at the time of the call there was no
connection of the CAN-Ethernet Gateway to the PC. A possible cause
may be a break in the connection as a result of the loss of the physical
link (Ethernet cable was disconnected).
If a callback function was assigned during initialization, the
application is able to react to this event. For example, the send and
receive functions for a CAN message should only be polled if the
connection status is
kEstablished
.
If no callback function is defined then the function
EthCanGetConnectionState()
should be used to poll the connection
status. Following a successful ”
Reconnect
“ the function can be called
again.
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 ...