beautypg.com

9 return code, Return code – B&B Electronics I-7565-H2 - Manual User Manual

Page 62

background image

5.9 Return Code

The return value is used to show the result of executing VCI_CAN

library functions. The following is the all return codes.

#define No_Err 0 //No

Error

#define DEV_ModName_Err

1 //The Module Name Error

#define DEV_ModNotExist_Err 2 //The Module doesn't exist in this

Port

#define DEV_PortNotExist_Err 3 //The Port doesn't Exist
#define DEV_PortInUse_Err

4 //The Port is in Used

#define DEV_PortNotOpen_Err 5 //The Port doesn't Open
#define CAN_ConfigFail_Err

6 //CAN Hardware Init Fail

#define CAN_HARDWARE_Err 7 //CAN Hardware Init Fail
#define CAN_PortNo_Err

8 //The Device doesn't support this

CAN Port

#define CAN_FIDLength_Err

9 //The CAN Filter-ID Number

exceed Max Number

#define CAN_DevDisconnect_Err10 //The Connection of device is

broken

#define CAN_TimeOut_Err

11 //The Config Command Timeout

#define CAN_ConfigCmd_Err

12 //The Config Command doesn't

support

#define CAN_ConfigBusy_Err

13 //The Config Command is busy

#define CAN_RxBufEmpty

14 //The CAN Receive Buffer is empty

#define CAN_TxBufFull

15 //The CAN Send Buffer is full

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