Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
169 f9daq 1
#ifndef SIS3153WSTAT_H_
2
#define SIS3153WSTAT_H_
3
 
4
#define API_RETURNCODE_START 0x0
5
#define API_RETURNCODE_LOCAL 0x100
6
#define API_RETURNCODE_REMOTE 0x200
7
 
8
typedef enum _SIS3153W_STATUS{
9
        // 0: general return codes
10
        Stat3153Success = API_RETURNCODE_START,
11
        Stat3153NullArgument,
12
        Stat3153InvalidDeviceIndex,
13
        Stat3153InvalidArgument,
14
        Stat3153ErrorDeviceOpen,
15
        Stat3153ErrorDeviceHold,
16
        Stat3153ErrorDeviceDownload,
17
        Stat3153ErrorDeviceRun,
18
        Stat3153ErrorDeviceClose,
19
        Stat3153ErrorSetInterface,
20
        Stat3153ErrorDescriptorOpen,
21
        Stat3153ErrorIo,
22
        Stat3153ErrorFileOpen,
23
        Stat3153ErrorFileAlloc,
24
        Stat3153ErrorPromId,
25
        Stat3153ErrorPromTimeout,
26
        Stat3153ErrorVfyAlloc,
27
        Stat3153ErrorVfyFailed,
28
        // 0x100: local side errors
29
        Stat3153InvalidParameter = API_RETURNCODE_LOCAL + 0x10, // starts at 0x110
30
        Stat3153UsbWriteError,
31
        Stat3153UsbReadError,
32
        Stat3153UsbReadLengthError,
33
        // 0x200: remote side errors
34
        Stat3153VmeBerr = API_RETURNCODE_REMOTE + 0x11 // starts at 0x211
35
}SIS3153W_STATUS;
36
 
37
#endif