I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 53
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.8 CANFD_GetCANSTDIDFilter
This function is used to get CAN filter function of “standard CAN/CAN FD ID ranges”
parameter in the assigned CAN port of the I-7565M-FD device.
Syntax:
C++
int CANFD_GetCANSTDIDFilter(WORD i_wDevice_id, BYTE i_byCANPort, WORD*
o_wSTDFID1, WORD* o_wSTDFID2);
C#
Int32 CANFD_GetCANSTDIDFilter(UInt16 i_wDevice_id, Byte i_byCANPort, [In, Out]
UInt16[] o_wSTDFID1, [In, Out] UInt16[] o_wSTDFID2);
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_wSTDFID1, *o_wSTDFID2
[in/out]
This point to arrays of the elements of standard CAN ID filter ranges in the
assigned CAN port of the I-7565M-FD device. Each array must reserve
space for saving maximun 128 elements of CAN/CAN FD standard ID.Valid
used size of the arrays are depended by the “
o_wSTDFIDListSize
”
parameter in the
CANFD_GetCANGlobalFilter()
API function. The
contents of each elements are defined as below:
Element0: CAN ID from
i_wSTDFID1[0] to i_wSTDFID2[0]
Element1: CAN ID from
i_wSTDFID1[1] to i_wSTDFID2[1]
…
Element127: CAN ID from
i_wSTDFID1[127] to i_wSTDFID2[127]
Return Value:
Return 0 means success, others means failure.