beautypg.com

5 vci_get_modinfo, Vci_get_modinfo – B&B Electronics I-7565-H2 - Manual User Manual

Page 48

background image

5.5.5 VCI_Get_MODInfo

This function is used to get module information.


Syntax :

int

VCI_Get_MODInfo (

PVCI_MOD_INFO

pMODInfo

);

Parameter :
pMODInfo:

[out] A structure pointer of _VCI_MODULE_INFO is used to receive

the module information shown as below.

typedef struct _VCI_MODULE_INFO{

char Mod_ID[12];
char FW_Ver[12];

} _VCI_MODULE_INFO, *PVCI_MOD_INFO;

Mod_ID[12]

:

Return the module name string

FW_Ver[12]

:

Return the module firmware version string

Return Values :
Return 0 means success, others means failure.

Examples :
Int Ret;
char Module_ID[12], Firmware_Ver[12];
_VCI_MODULE_INFO CAN_ModInfo;

Ret = VCI_Get_MODInfo(&CAN_ModInfo);

// Get module information

sprintf(Module_ID, “%s”, CAN_ModInfo.Mod_ID);
sprintf(Firmware_Ver, “%s”, CAN_ModInfo.FW_Ver);

I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 48