I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 57
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.14 CANHS_SetCANBlackListCANID
This function is used to set CAN IDs to blacklist 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 blacklist talbe means these IDs will be rejected by the firmware CAN ID filter of
the I-7565M-HS device if the blacklist of CAN ID filter mode is enabled.
Syntax:
C++
int CANHS_SetCANBlackListCANID(WORD i_wDevice_id, BYTE i_byCANPort,
WORD i_wCIDNum, DWORD *i_dwCID);
C#
Int32 CANHS_SetCANBlackListCANID(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 blacklist 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
blacklist table of CAN message ID software 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 blacklist
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.