I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 54
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.9 CANFD_SetCANEXTIDFilter
This function is used to set CAN filter function of “extended CAN ID list size” and
“extended CAN ID ranges” parameters in the assigned CAN port of the I-7565M-FD
device.
Syntax:
C++
int CANFD_SetCANEXTIDFilter(WORD i_wDevice_id, BYTE i_byCANPort, WORD
i_wEXTFIDListSize, DWORD* i_dwEXTFID1, DWORD* i_dwEXTFID2);
C#
Int32 CANFD_SetCANEXTIDFilter(UInt16 i_wDevice_id, Byte i_byCANPort, UInt16
i_wEXTFIDListSize, [In, Out] UInt16[] i_wEXTFID1, [In, Out] UInt16[] i_wEXTFID2);
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_wEXTFIDListSize
[in]
The CAN filter function of “extended CAN ID list size” parameter in the
assigned CAN port of the I-7565M-FD device. Maximum support 64 CAN
extended ID filter in each CAN port.
*i_wEXTFID1, *i_wEXTFID2
[in/out]
This point to arrays of the elements of extended CAN ID filter ranges in the
assigned CAN port of the I-7565M-FD device. Valid used size of the arrays
are depended by the “
i_wEXTFIDListSize
” parameter. The contents of
each elements are defined as below:
Element0: CAN ID from
i_wEXTFID1[0] to i_wEXTFID2[0]
Element1: CAN ID from
i_wEXTFID1[1] to i_wEXTFID2[1]
…
Element63: CAN ID from
i_wEXTFID1[127] to i_wEXTFID2[127]
Return Value:
Return 0 means success, others means failure.