gclib 2.2.1
Galil Communications Library
Loading...
Searching...
No Matches
gclib_errors.h
Go to the documentation of this file.
1
6#ifndef I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
7#define I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
8
9#define G_NO_ERROR 0
10#define G_NO_ERROR_S "no error"
11
12#define G_GCLIB_ERROR -1
13#define G_GCLIB_ERROR_S "gclib unexpected error"
14
15#define G_GCLIB_UTILITY_ERROR -2
16#define G_GCLIB_UTILITY_ERROR_S "invalid request value or bad arguments were specified to GUtility()"
17
18#define G_GCLIB_UTILITY_IP_TAKEN -3
19#define G_GCLIB_UTILITY_IP_TAKEN_S "ip address is already taken by a device on the network"
20
21#define G_GCLIB_NON_BLOCKING_READ_EMPTY -4
22#define G_GCLIB_NON_BLOCKING_READ_EMPTY_S "data was not waiting for a zero-timeout read"
23
24#define G_GCLIB_POLLING_FAILED -5
25#define G_GCLIB_POLLING_FAILED_S "exit condition not met in specified polling period"
26
27#define G_TIMEOUT -1100
28#define G_TIMEOUT_S "device timed out"
29
30#define G_OPEN_ERROR -1101
31#define G_OPEN_ERROR_S "device failed to open"
32
33#define G_ALREADY_OPEN -1111
34#define G_ALREADY_OPEN_S "Serial or PCI port already open"
35
36#define G_READ_ERROR -1103
37#define G_READ_ERROR_S "device read error"
38
39#define G_WRITE_ERROR -1104
40#define G_WRITE_ERROR_S "device write error"
41
42#define G_INVALID_PREPROCESSOR_OPTIONS -1204
43#define G_INVALID_PREPROCESSOR_OPTIONS_S "preprocessor did not recognize options"
44
45#define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND -1106
46#define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND_S "illegal command passed to command call"
47
48#define G_DATA_RECORD_ERROR -1107
49#define G_DATA_RECORD_ERROR_S "data record error"
50
51#define G_UNSUPPORTED_FUNCTION -1109
52#define G_UNSUPPORTED_FUNCTION_S "function not supported on this communication bus"
53
54#define G_FIRMWARE_LOAD_NOT_SUPPORTED -1110
55#define G_FIRMWARE_LOAD_NOT_SUPPORTED_S "firmware cannot be loaded on this communication bus to this hardware"
56
57#define G_ARRAY_NOT_DIMENSIONED -1200
58#define G_ARRAY_NOT_DIMENSIONED_S "array not dimensioned on controller or wrong size"
59
60#define G_CONNECTION_NOT_ESTABLISHED -1201
61#define G_CONNECTION_NOT_ESTABLISHED_S "connection to hardware not established"
62
63#define G_ILLEGAL_DATA_IN_PROGRAM -1202
64#define G_ILLEGAL_DATA_IN_PROGRAM_S "illegal ASCII character in program"
65
66#define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT -1203
67#define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT_S "program cannot be compressed to fit on the controller"
68
69#define G_BAD_RESPONSE_QUESTION_MARK -10000
70#define G_BAD_RESPONSE_QUESTION_MARK_S "question mark returned by controller"
71
72#define G_BAD_VALUE_RANGE -10002
73#define G_BAD_VALUE_RANGE_S "value passed to function was bad or out of range"
74
75#define G_BAD_FULL_MEMORY -10003
76#define G_BAD_FULL_MEMORY_S "operation could not complete because of a memory error"
77
78#define G_BAD_LOST_DATA -10004
79#define G_BAD_LOST_DATA_S "data was lost due to buffer or fifo limitations"
80
81#define G_BAD_FILE -10005
82#define G_BAD_FILE_S "file was not found, contents are invalid, or write failed"
83
84#define G_BAD_ADDRESS -10006
85#define G_BAD_ADDRESS_S "a bad address was specified in open"
86
87#define G_BAD_FIRMWARE_LOAD -10008
88#define G_BAD_FIRMWARE_LOAD_S "Firmware upgrade failed"
89
90#define G_GCAPS_OPEN_ERROR -20000
91#define G_GCAPS_OPEN_ERROR_S "gcaps connection could not be opened"
92
93#define G_GCAPS_SUBSCRIPTION_ERROR -20002
94#define G_GCAPS_SUBSCRIPTION_ERROR_S "function requires subscription not specified in GOpen()"
95
96#endif //I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE