I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0)
Page: 52
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.7 CANFD_SetCANSTDIDFilter
This function is used to set CAN filter function of “standard CAN/CAN FD ID list size”
and “standard CAN/CAN FD ID ranges” parameters in the assigned CAN port of the
I-7565M-FD device.
Syntax:
C++
int CANFD_SetCANSTDIDFilter(WORD i_wDevice_id, BYTE i_byCANPort, WORD
i_wSTDFIDListSize, WORD* i_wSTDFID1, WORD* i_wSTDFID2);
C#
Int32 CANFD_SetCANSTDIDFilter(UInt16 i_wDevice_id, Byte i_byCANPort, UInt16
i_wSTDFIDListSize, [In, Out] UInt16[] i_wSTDFID1, [In, Out] UInt16[] i_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.
i_wSTDFIDListSize
[in]
The CAN filter function of “standard CAN ID list size” parameter in the
assigned CAN port of the I-7565M-FD device. Maximum support 128 CAN
standard ID filter in each CAN port.
*i_wSTDFID1, *i_wSTDFID2
[in/out]
This point to arrays of the elements of standard CAN/CAN FD 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_wSTDFIDListSize
” parameter. 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.