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
Содержание GW-003
Страница 1: ...system house for distributed automation CAN Ethernet Gateway GW 003 Systems Manual Edition April 2007 ...
Страница 5: ...Contents SYS TEC electronic GmbH 2007 L 1032e_9 Index 97 ...
Страница 8: ...CAN Ethernet Gateway SYS TEC electronic GmbH 2007 L 1032e_9 ...
Страница 14: ...CAN Ethernet Gateway 6 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Страница 56: ...CAN Ethernet Gateway 48 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Страница 66: ...CAN Ethernet Gateway 58 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Страница 100: ...CAN Ethernet Gateway 92 SYS TEC electronic GmbH 2007 L 1032e_9 ...
Страница 108: ...Published by SYS TEC electronic GmbH 2007 Ordering No L 1032e_9 Printed in Germany ...