I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 56
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.11 CANFD_GetCANStatus
This function is used to get CAN status, CAN Bus transmitted/received error counter
and software buffer status in the assigned CAN port of the I-7565M-FD device.
Syntax:
C++
int CANFD_GetCANStatus(WORD i_wDevice_id, BYTE i_byCANPort, DWORD
*o_dwCANStatus, DWORD *o_dwErrCnt, DWORD *o_dwBufStatus);
C#
Int32 CANFD_GetCANStatus(UInt16 i_wDevice_id, Byte i_byCANPort, out UInt32
o_dwCANStatus, out UInt32 o_dwErrCnt, out UInt32 o_dwBufStatus);
Parameter:
i_wDevice_id
[in]
The assigned device ID of the I-7565M-FD device.
i_byCANPort
[in]
The assigned CAN port of the I-7565M-FD device.
*o_dwCANStatus
[out]
The CAN Bus status in the assigned CAN port of the I-7565M-FD device.
Please refer to appendix 7.3 for “CAN Status” definition.
*o_dwErrCnt
[out]
The CAN Bus transmitted/received error counter in the assigned CAN port
of the I-7565M-FD device. Please refer to appendix 7.4 for “CAN Error
Counter” definition.
*o_dwBufStatus
[out]
The CAN Bus transmitted/received buffer status in the assigned CAN port
of the I-7565M-FD device.
Bit
Symbol Value
Description
0
RX
CAN1/CAN2 receive software buffer status
0
Receive software buffer underrun
1
Receive software buffer overrun
1
TX
CAN1/CAN2 transmit software buffer status
0
Transmit software buffer underrun
1
Transmit software buffer overrun
3:2
-
Reserved