I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 50
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5.5.7 CANHS_GetCANFilter
This function is used to get the hardware CAN message ID filter setting in the
assigned CAN port of the I-7565M-HS device.
Syntax:
C++
int CANHS_GetCANFilter(WORD i_wDevice_id, BYTE i_byCANPort, BYTE
*o_byMode, DWORD *o_dwMask, DWORD *o_dwArbitration);
C#
Int32 CANHS_GetCANFilter (UInt16 i_wDevice_id, Byte i_byCANPort, Byte
*o_byMode, UInt32 *o_dwMask, UInt32 *o_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.
*o_byMode
[in]
Mode of 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)
*o_dwMask
[out]
CAN ID Mask bits. Bit value of 0 mean does not care the bit of
corresponding [
o_dwArbitration
] and bit value of 1 means this bit need be
matched with the corresponding bit of [
o_dwArbitration
]
in the assigned
CAN port of
the I-7565M-HS device..
*o_dwArbitration
[out]
CAN ID Arbitration bit setting.
Return Value:
Return 0 means success, others means failure.