EasyManua.ls Logo

Sys Tec Electronic GW-003 - Ethcanresetcan

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...
CAN – Ethernet Gateway
82 © SYS TEC electronic GmbH 2007 L-1032e_9
7.3.2.8 EthCanResetCan
Syntax:
DWORD PUBLIC EthCanResetCan(
tEthCanHandle,
dwResetCode_p)
Usability:
HW_INIT
Parameter:
EthCanHandle_p: Instance handle of the CAN-Ethernet Gateway
dwResetCode_p: Reset-Code for CAN
Description:
This function is used for performing a specific reset of the CAN
communication on the CAN-Ethernet Gateway and the DLL when
CAN errors occur as the result of a buffer overflow or interference on
the CAN-Bus. The parameter dwResetCode_p is used to determine
whether the send and receive buffer in the DLL as well as the send and
receive buffer of the CAN-Ethernet Gateway and its CAN interface
(CAN-controller) should be reset.
The following parameter values can be given for the reset code:
//Erase the send buffer for CAN messages in the DLL
#define RESET_TRANSMIT_QUEUE 0x00
//Erase the receive buffer for CAN messages in the DLL
#define RESET_RECEIVE_QUEUE 0x01
//Erase the send and receive buffer for CAN messages in the DLL
#define RESET_ALL_QUEUES 0x02
//Erase the send and receive buffer for CAN messages on
//the Gateway and reset the CAN controller

Table of Contents