fg_error_codes.h Source File

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