ICP DAS USA I-7565-H1 User Manual page 51

High performance usb/can converter
Table of Contents

Advertisement

Return Values :
Return 0 means success, others means failure.
Examples :
Int Ret;
BYTE CAN_No;
_VCI_CAN_FilterID pCANFID1;
//Single 11-bit Fitler-ID
WORD SSFID[3]={0x0003, 0x0002, 0x0001};
//Group 11-bit Fitler-ID
DWORD GSFID[2]={0x00300040, 0x00100020};
//Single 29-bit Fitler-ID
DWORD SEFID[3]={0x00000013, 0x00000012, 0x00000011};
//Group 29-bit Fitler-ID
DWORD GEFID[4]={0x00000300, 0x00000400, 0x00000100, x00000200};
CAN_No=1;
pCANFID1.SSFF_Num = sizeof(SSFID)/sizeof(WORD);
pCANFID1.GSFF_Num = sizeof(GSFID)/sizeof(DWORD);
pCANFID1.SEFF_Num = sizeof(SEFID)/sizeof(DWORD);
pCANFID1.GEFF_Num = sizeof(GEFID)/sizeof(DWORD);
memcpy(pCANFID1.SSFF_FID, SSFID, pCANFID1.SSFF_Num*2);
memcpy(pCANFID1.GSFF_FID, GSFID, pCANFID1.GSFF_Num*4);
memcpy(pCANFID1.SEFF_FID, SEFID, pCANFID1.SEFF_Num*4);
memcpy(pCANFID1.GEFF_FID, GEFID, pCANFID1.GEFF_Num*4);
Ret = VCI_Set_CANFID(CAN_No, &pCANFID1);
// Set CAN Filter-ID
I-7565-H1/H2 High Performance USB/CAN Converter User's Manual (Ver 1.7, Aug/2011) ------------- 51

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7565-h2

Table of Contents