I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 55
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.10 CANFD_GetCANEXTIDFilter
This function is used to get CAN filter function of “extended CAN/CAN FD ID ranges”
parameter in the assigned CAN port of the I-7565M-FD device.
Syntax:
C++
int CANFD_GetCANEXTIDFilter(WORD i_wDevice_id, BYTE i_byCANPort, WORD*
o_wEXTFID1, WORD* o_wEXTFID2);
C#
Int32 CANFD_GetCANEXTIDFilter(UInt16 i_wDevice_id, Byte i_byCANPort, [In, Out]
UInt16[] o_wEXTFID1, [In, Out] UInt16[] o_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.
*o_wEXTFID1, *o_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. Each array must reserve
space for saving maximun 64 elements of CAN/CAN FD extended ID.Valid
used size of the arrays are depended by the “
o_wEXTFIDListSize
”
parameter in the
CANFD_GetCANGlobalFilter()
API function. 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.