I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 49
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.5 CANFD_SetCANGlobalFilter
This function is used to set CAN filter function of “reject remote standard or
extended CAN ID frame” in the assigned CAN port of the I-7565M-FD device.
Syntax:
C++
int CANFD_SetCANGlobalFilter(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
i_byRejectRFS, BYTE i_byRejectRFE);
C#
Int32 CANFD_SetCANGlobalFilter(UInt16 i_wDevice_id, Byte i_byCANPort, Byte
i_byRejectRFS, Byte i_byRejectRFE);
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.
i_byRejectRFS
[in]
Reject the remote standard CAN ID frame in the assigned CAN port of the
I-7565M-FD device.
0: pass the remote standard CAN ID frame
1: reject the remote standard CAN ID frame
i_byRejectRFE
[in]
Reject the remote extended CAN ID frame in the assigned CAN port of the
I-7565M-FD device.
0: pass the remote extended CAN ID frame
1: reject the remote extended CAN ID frame
Return Value:
Return 0 means success, others means failure.