Software Support
© SYS TEC electronic GmbH 2007 L-1032e_9 69
7.3.2.3 EthCanDeinitHardware
Syntax:
DWORD STDCALL EthCanDeinitHardware (
tEthCanHandle EthCanHandle_p);
Usage:
HW_INIT
Description:
This function is the complement to the initialization function
EthCanInitHardware(). This means that this function operates in
„Blocked Mode“ as well as in „Non-blocked Mode“. The call mode is
determined by the call mode of the initialization function, so that there
is always an equivalent.
The task of this function is to break an existing connection in a
controlled manner and then de-initialize the data structures of the
instance. The return parameter EthCanHandle_p describes the
instance that is to be disconnected.
1. In „Blocked Mode“ the connection process gets started and
waits for the completion of the connection process. The
function returns when the connection has been disconnected or
if an error or timeout occurs.
2. In „Non-blocked Mode“ the disconnection process is started
without waiting for completion. The function returns
immediately. If the connection status is changed the Callback
function is called from the DLL, which returns the current
connection status.