You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitlib.pub/MITLIB/Include/ErrorCodeDef.h

32 lines
2.0 KiB
C

#ifndef _ADLINK_ERROR_CODE_DEF_H
#define _ADLINK_ERROR_CODE_DEF_H
#define ERR_NoError (0) //No Error
// System Error ( -1 ~ -1000 )
#define ERR_OSVersion (-1) // Operation System type mismatched
#define ERR_OpenDriverFailed (-2) // Open device driver failed - Create driver interface failed
#define ERR_InsufficientMemory (-3) // System memory insufficiently
#define ERR_DeviceNotInitial (-4) // Cards not be initialized
#define ERR_NoDeviceFound (-5) // Cards not found(No card in your system)
#define ERR_CardIdDuplicate (-6) // Cards' ID is duplicated.
#define ERR_DeviceAlreadyInitialed (-7) // Cards have been initialed
#define ERR_InterruptNotEnable (-8) // Cards' interrupt events not enable or not be initialized
#define ERR_TimeOut (-9) // Function time out
#define ERR_ParametersInvalid (-10) // Function input parameters are invalid
#define ERR_SetEEPROM (-11) // Set data to EEPROM (or nonvolatile memory) failed
#define ERR_GetEEPROM (-12) // Get data from EEPROM (or nonvolatile memory) failed
#define ERR_FunctionNotAvailable (-13) // Function is not available in this step, The device is not support this function or Internal process failed
#define ERR_FirmwareError (-14) // Firmware error, please reboot the system
#define ERR_CommandInProcess (-15) // Previous command is in process
#define ERR_AxisIdDuplicate (-16) // Axes' ID is duplicated.
#define ERR_ModuleNotFound (-17) // Slave module not found.
#define ERR_InsufficientModuleNo (-18) // System ModuleNo insufficiently
#define ERR_HandShakeFailed (-19) // HandSake with the DSP out of time.
#define ERR_FILE_FORMAT (-20) // Config file format error.(cannot be parsed)
#define ERR_ParametersReadOnly (-21) // Function parameters read only.
#define ERR_DistantNotEnough (-22) // Distant is not enough for motion.
#define ERR_Win32Error (-1000) // No such INT number, or WIN32_API error, contact with ADLINK's FAE staff.
#endif //_ADLINK_ERROR_CODE_DEF_H