Canhs_Setcanfilter - ICP DAS USA I-7565M-HS User Manual

Usb to can
Hide thumbs Also See for I-7565M-HS:
Table of Contents

Advertisement

5.5.6 CANHS_SetCANFilter

This function is used to set the hardware CAN message ID filter setting in the
assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_SetCANFilter(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
i_byMode, DWORD i_dwMask, DWORD i_dwArbitration);
C#
Int32 CANHS_SetCANFilter (UInt16 i_wDevice_id, Byte i_byCANPort, Byte i_byMode,
UInt32 i_dwMask, UInt32 i_dwArbitration);
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_byMode
[in]
Mode of CAN ID, can be set to 2.0A (11-bit CAN ID), and 2.0B (29-bit CAN
ID) in the assigned CAN port of the I-7565M-HS device.
0: 2.0A (11-bit CAN ID)
1: 2.0B (29-bit CAN ID)
i_dwMask
[in]
CAN ID Mask bits. Be use with [i_dwArbitration] parameter. Bit value of 0
mean does not care the bit of corresponding [i_dwArbitration] and bit value
of 1 means this bit need be matched with the corresponding bit of
[i_dwArbitration] in the assigned CAN port of the I-7565M-HS device.
i_dwArbitration
[in]
CAN ID Arbitration bit. The CAN ID that you want to use for the CAN ID filter
I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Page: 48

Advertisement

Table of Contents
loading

Table of Contents