beautypg.com

2 vci_closecan, Vci_closecan – B&B Electronics I-7565-H2 - Manual User Manual

Page 41

background image

5.4.2 VCI_CloseCAN

This function is used to disable all CAN port function of

I-7565-H1/H2. After the CAN port function is disabled, it will not interfere
the communication of CAN bus network even if I-7565-H1/H2 is power on.

Syntax :

int

VCI_CloseCAN (

BYTE

DevPort

);

Parameter :
DevPort:

[in] The virtual com port number

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

Examples :
Int Ret;
BYTE ComPort;

ComPort = 1;
Ret = VCI_CloseCAN(ComPort);

// Disable CAN port

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