![ICP DAS USA I-7565M-HS User Manual Download Page 55](http://html2.mh-extra.com/html/icp-das-usa/i-7565m-hs/i-7565m-hs_user-manual_3630632055.webp)
I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 55
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.12 CANHS_SetCANWhiteListCANID
This function is used to set CAN IDs to whitelist table of CAN message ID firmware
filter in the assigned CAN port of the I-7565M-HS device. Setting the CAN message ID
to the whitelist talbe means these IDs can be accepted by the firmware CAN ID filter of
the I-7565M-HS device if the whitelist of CAN ID filter mode is enabled.
Syntax:
C++
int CANHS_SetCANWhiteListCANID(WORD i_wDevice_id, BYTE i_byCANPort,
WORD i_wCIDNum, DWORD *i_dwCID);
C#
Int32 CANHS_SetCANWhiteListCANID(UInt16 i_wDevice_id, Byte i_byCANPort,
UInt16 i_wCIDNum, [In,Out] UInt32[] i_dwCID);
Parameter:
i_wDevice_id
[in]
The assigned device ID of the I-7565M-HS device.
i_byCANPort
[in]
The assigned CAN port of the I-7565M-HS device.
i_wCIDNum
[in]
The amount of the CAN message IDs that be set into the whitelist table of
CAN message ID firmware filter in the assigned CAN port of the
I-7565M-HS device. Maximum support 128 CAN message IDs in each CAN
port of the I-7565M-HS device. And set this parameter to 0 means clear the
whitelist table of CAN message ID firmware filter in the assigned CAN port.
*i_dwCID
[in/out]
This point to an array of the CAN message IDs that be set into the whitelist
table of CAN message ID firmware filter in the assigned CAN port of the
I-7565M-HS device.
Return Value:
Return 0 means success, others means failure.