Blame |
Last modification |
View Log
| RSS feed
#ifndef SIS3153WSTAT_H_
#define SIS3153WSTAT_H_
#define API_RETURNCODE_START 0x0
#define API_RETURNCODE_LOCAL 0x100
#define API_RETURNCODE_REMOTE 0x200
typedef enum _SIS3153W_STATUS{
// 0: general return codes
Stat3153Success = API_RETURNCODE_START,
Stat3153NullArgument,
Stat3153InvalidDeviceIndex,
Stat3153InvalidArgument,
Stat3153ErrorDeviceOpen,
Stat3153ErrorDeviceHold,
Stat3153ErrorDeviceDownload,
Stat3153ErrorDeviceRun,
Stat3153ErrorDeviceClose,
Stat3153ErrorSetInterface,
Stat3153ErrorDescriptorOpen,
Stat3153ErrorIo,
Stat3153ErrorFileOpen,
Stat3153ErrorFileAlloc,
Stat3153ErrorPromId,
Stat3153ErrorPromTimeout,
Stat3153ErrorVfyAlloc,
Stat3153ErrorVfyFailed,
// 0x100: local side errors
Stat3153InvalidParameter = API_RETURNCODE_LOCAL + 0x10, // starts at 0x110
Stat3153UsbWriteError,
Stat3153UsbReadError,
Stat3153UsbReadLengthError,
// 0x200: remote side errors
Stat3153VmeBerr = API_RETURNCODE_REMOTE + 0x11 // starts at 0x211
}SIS3153W_STATUS;
#endif