EasyManua.ls Logo

Sys Tec Electronic GW-003 - Page 89

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 81
Application Example:
tEthCanHandle EthCanHandle;
tConnectionState ConnectionState;
DWORD dwRetcode;
//Read Connection Status
dwRetcode = EthCanGetStatus(EthCanHandle,&ConnectionState);
if(dwRetcode == ETHCAN_SUCCESSFUL)
{
if(ConnectionState == kConnecting)
{
//Code to be executed
}
if(ConnectionState == kEstablished)
{
//Code to be executed
}
.
.
.
}
else
{
//Error while reading the connection status
}

Table of Contents