EasyManua.ls Logo

Sys Tec Electronic GW-003 - Ethcan_Err_Illhandle; Ethcan_Err_Hwinuse

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 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.

Table of Contents