fg_error.h Source File
Runtime
fglib
include
fg_error.h
Go to the documentation of this file.
1
2
#pragma warning(push)
3
#pragma warning(disable : 4005)
4
#if defined(_MSC_VER) && (_MSC_VER < 1600)
5
#include <msinttypes/stdint.h>
6
#else
7
#include <stdint.h>
8
#endif
9
#pragma warning(pop)
10
11
#include "
os_type.h
"
12
#include "
sisoboards.h
"
13
14
15
/* Status codes */
16
#define FG_OK 0
17
#define FG_INIT_OK 1
18
#define FG_SOFTWARE_TRIGGER_PENDING 8803
19
23
/* Error codes */
24
#define FG_ERROR -1
25
#define FG_DUMMY_BUFFER -1
26
#define FG_NO_PICTURE_AVAILABLE -2
27
#define FG_ENV_NOT_SET -5
28
#define FG_ENV_NOT_SET -5
//deprecated
29
30
#define FG_INVALID_HANDLE -6
31
32
#define FG_ALR_INIT -10
33
#define FG_NOT_AVAILABLE -12
34
#define FG_NO_BOARD_AVAILABLE -20
35
#define FG_INVALID_BOARD_NUMBER -21
36
#define FG_BOARD_INIT_FAILED -22
37
#define FG_INVALID_CLOCK -23
38
#define FG_INVALID_DESIGN_NAME -26
39
#define FG_SYSTEM_LOCKED -27
40
#define FG_RESSOURCES_STILL_IN_USE -28
41
#define FG_CLOCK_INIT_FAILED -29
42
#define FG_WRONG_ARCHITECTURE -50
43
#define FG_WRONG_FIRMWARE_VERSION -51
44
#define FG_WRONG_RUNTIME_VERSION -52
45
#define FG_SOFTWARE_TRIGGER_BUSY -60
46
#define FG_INVALID_PORT_NUMBER -61
47
48
#define FG_EXCEPTION_IN_APPLET -99
49
#define FG_HAP_FILE_NOT_LOAD -100
50
#define FG_FILE_NOT_FOUND -101
51
#define FG_APPLET_NOT_ACCEPTED -102
52
#define FG_RECONFIGURATION_DISABLED \
53
-103
55
#define FG_RESTART_REQUIRED -104
56
#define FG_POWERCYCLE_REQUIRED -105
58
#define FG_MICROENABLE_NOT_INIT -110
59
#define FG_DLL_NOT_LOAD -120
60
#define FG_REG_KEY_NOT_FOUND -121
61
#define FG_VASDLL_NOT_LOAD -122
62
#define FG_ERROR_LOADING_MODULE -123
63
#define FG_ERROR_LOADING_MODULE_INT -124
64
#define FG_UNEXPECTED_HAPLOAD -130
65
#define FG_SIZE_ERROR -200
66
#define FG_PTR_INVALID -300
67
#define FG_RANGE_ERR -400
68
#define FG_OVERFLOW_ERR -401
69
#define FG_NOT_ENOUGH_MEM -500
70
#define FG_DMATRANSFER_INVALID -600
71
#define FG_HAP_FILE_DONT_MATCH -700
72
#define FG_VERSION_MISMATCH -701
73
#define FG_ACCESS_DENIED -702
74
#define FG_RUNTIME_VERSION_TOO_OLD -703
75
76
#define FG_NOT_INIT -2001
77
#define FG_WRONG_SIZE -2002
78
#define FG_WRONG_NUMBER_OF_BUFFER -2010
79
#define FG_TOO_MANY_BUFFER -2011
80
#define FG_NOT_ENOUGH_MEMORY -2020
81
#define FG_MEMORY_ALREADY_ALLOCATED -2024
82
#define FG_CANNOT_WRITE_MEM_CONFIG_FAILED -2026
83
#define FG_INTERNAL_STATUS_ERROR -2030
84
#define FG_INTERNAL_ERROR -2031
85
#define FG_CANNOT_START -2040
86
#define FG_CANNOT_STOP -2042
87
#define FG_SYNC_ACQUIRE_NOT_SUPPORTED -2045
88
#define FG_INVALID_DESIGN -2050
90
#define FG_CONFIGURE_FAILED -2052
91
#define FG_RECONFIGURE_FAILED -2053
92
#define FG_NO_APPLET_ID -2055
93
94
#define FG_INVALID_MEMORY -2060
95
#define FG_MEMORY_IN_USE -2061
96
#define FG_INVALID_PARAMETER -2070
97
#define FG_ILLEGAL_WHILE_APC -2071
98
#define FG_APC_PRIORITY_ERROR -2072
99
#define FG_APC_ALREADY_REGISTERED -2073
101
#define FG_INVALID_VALUE -2075
102
#define FG_INVALID_FILENAME -2076
103
#define FG_INVALID_FILESIZE -2077
104
#define FG_INVALID_TYPE -2078
106
#define FG_INVALID_REGISTER -7040
107
#define FG_INVALID_MODULO -7080
108
#define FG_INVALID_CONFIGFILE -5000
109
#define FG_INVALID_CONFIGFILEEXT FG_INVALID_CONFIGFILE
110
#define FG_FILE_ACCESS_DENIED -5001
111
112
#define FG_ERROR_FREQUENCY_TOO_HIGH_FOR_PFG -2077
113
#define FG_ERROR_VALUE_TOO_LOW_FOR_FPS_OR_WIDTH_OR_DELAY -2078
114
#define FG_ERROR_VALUE_TOO_HIGH_FOR_FPS_OR_WIDTH_OR_DELAY -2079
115
116
#define FG_NOT_LOAD -2080
117
#define FG_ALREADY_STARTED -2090
118
#define FG_OPERATION_ABORTED -2091
119
#define FG_STILL_ACTIVE -2100
120
#define FG_NO_VALID_DESIGN -2110
121
#define FG_TIMEOUT_ERR -2120
122
#define FG_NOT_IMPLEMENTED -2130
123
#define FG_WRONG_TRIGGER_MODE -2140
124
#define FG_NOT_WRONG_TRIGGER_MODE FG_WRONG_TRIGGER_MODE
125
#define FG_WRONG_TRIGGER_STATE -2141
126
#define FG_ALL_BUFFER_BLOCKED -2150
127
128
#define FG_NO_EVENTS_FOUND -2160
129
#define FG_CANNOT_COMBINE_DATA_EVENTS \
130
-2161
131
#define FG_INVALID_EVENTMASK -2162
133
#define FG_CANNOT_INIT_MICROENABLE -3000
134
#define FG_TRANSFER_NOT_ACTIVE -3010
135
#define FG_CLOCK_NOT_LOCKED -3120
136
#define FG_STILL_NOT_STARTED -4000
137
#define FG_VALUE_OUT_OF_RANGE -6000
138
#define FG_CANNOT_CHANGE_DISPLAY_WIDTH -7000
139
#define FG_CANNOT_CHANGE_DISPLAY_HEIGHT -7005
140
#define FG_CANNOT_CHANGE_DISPLAY_SIZE -7010
141
#define FG_NO_VALID_LICENSE -7020
142
#define FG_HAP_FILE_CORRUPTED -7021
143
#define FG_CANNOT_CHANGE_CAMERA_FORMAT -7030
144
#define FG_REGISTER_INIT_FAILED -7050
145
#define FG_INVALID_SHADING_CORRECTION_FILE -7060
146
#define FG_WRITE_LINE_SHADING_TIMEOUT -7070
147
#define FG_INVALID_IMAGE_DIMENSIONS -7071
148
#define FG_ERR_INVALID_FILE_DATA -7072
149
#define FG_ERR_RANGE_ERROR -7073
150
#define FG_CANNOT_CHANGE_DURING_ACQU -7090
151
#define FG_TOKEN_NOT_FOUND_ERROR -8000
152
#define FG_WRITE_ACCESS_DENIED -8010
153
#define FG_REGISTER_UPDATE_FAILED -8020
154
#define FG_DEVICE_IO_ERROR -9000
155
#define FG_INVALID_CONFIG_REGION -9001
156
#define FG_DEVICE_REMOVED -9002
157
#define FG_PARAMETER_NOT_IN_FILE -9003
os_type.h
Definitions for platform dependent types.
sisoboards.h