fg_error_codes.h File Reference

fg_error_codes.h File Reference

Constant and enum definitions. More...

#include <stdint.h>
#include "os_type.h"
#include "sisoboards.h"

Go to the source code of this file.

Macros

#define FG_ACCESS_DENIED   -702
 
#define FG_ALL_BUFFER_BLOCKED   -2150
 
#define FG_ALR_INIT   -10
 
#define FG_ALREADY_STARTED   -2090
 
#define FG_APC_ALREADY_REGISTERED   -2073
 
#define FG_APC_PRIORITY_ERROR   -2072
 
#define FG_APPLET_NOT_ACCEPTED   -102
 
#define FG_BOARD_INIT_FAILED   -22
 
#define FG_CANNOT_CHANGE_CAMERA_FORMAT   -7030
 
#define FG_CANNOT_CHANGE_DISPLAY_HEIGHT   -7005
 
#define FG_CANNOT_CHANGE_DISPLAY_SIZE   -7010
 
#define FG_CANNOT_CHANGE_DISPLAY_WIDTH   -7000
 
#define FG_CANNOT_CHANGE_DURING_ACQU   -7090
 
#define FG_CANNOT_COMBINE_DATA_EVENTS    -2161
 
#define FG_CANNOT_INIT_MICROENABLE   -3000
 
#define FG_CANNOT_START   -2040
 
#define FG_CANNOT_STOP   -2042
 
#define FG_CANNOT_WRITE_MEM_CONFIG_FAILED   -2026
 
#define FG_CLOCK_INIT_FAILED   -29
 
#define FG_CLOCK_NOT_LOCKED   -3120
 
#define FG_CONFIGURE_FAILED   -2052
 
#define FG_DEVICE_IO_ERROR   -9000
 
#define FG_DEVICE_REMOVED   -9002
 
#define FG_DLL_NOT_LOAD   -120
 
#define FG_DMATRANSFER_INVALID   -600
 
#define FG_DUMMY_BUFFER   -1
 
#define FG_ENV_NOT_SET   -5
 
#define FG_ENV_NOT_SET   -5
 
#define FG_ERR_INVALID_FILE_DATA   -7072
 
#define FG_ERR_RANGE_ERROR   -7073
 
#define FG_ERROR   -1
 Error codes returned by calls to Fg_xxx functions.
 
#define FG_ERROR_FREQUENCY_TOO_HIGH_FOR_PFG   -2077
 
#define FG_ERROR_LOADING_MODULE   -123
 
#define FG_ERROR_LOADING_MODULE_INT   -124
 
#define FG_ERROR_VALUE_TOO_HIGH_FOR_FPS_OR_WIDTH_OR_DELAY   -2079
 
#define FG_ERROR_VALUE_TOO_LOW_FOR_FPS_OR_WIDTH_OR_DELAY   -2078
 
#define FG_EXCEPTION_IN_APPLET   -99
 
#define FG_FILE_ACCESS_DENIED   -5001
 
#define FG_FILE_NOT_FOUND   -101
 
#define FG_HAP_FILE_CORRUPTED   -7021
 
#define FG_HAP_FILE_DONT_MATCH   -700
 
#define FG_HAP_FILE_NOT_LOAD   -100
 
#define FG_ILLEGAL_WHILE_APC   -2071
 
#define FG_INIT_OK   1
 
#define FG_INTERNAL_ERROR   -2031
 
#define FG_INTERNAL_STATUS_ERROR   -2030
 
#define FG_INVALID_BOARD_NUMBER   -21
 
#define FG_INVALID_CLOCK   -23
 
#define FG_INVALID_CONFIG_REGION   -9001
 
#define FG_INVALID_CONFIGFILE   -5000
 
#define FG_INVALID_CONFIGFILEEXT   FG_INVALID_CONFIGFILE
 
#define FG_INVALID_DESIGN   -2050
 
#define FG_INVALID_DESIGN_NAME   -26
 
#define FG_INVALID_EVENTMASK   -2162
 
#define FG_INVALID_FILENAME   -2076
 
#define FG_INVALID_FILESIZE   -2077
 
#define FG_INVALID_HANDLE   -6
 
#define FG_INVALID_IMAGE_DIMENSIONS   -7071
 
#define FG_INVALID_MEMORY   -2060
 
#define FG_INVALID_MODULO   -7080
 
#define FG_INVALID_PARAMETER   -2070
 
#define FG_INVALID_PORT_NUMBER   -61
 
#define FG_INVALID_REGISTER   -7040
 
#define FG_INVALID_SHADING_CORRECTION_FILE   -7060
 
#define FG_INVALID_TYPE   -2078
 
#define FG_INVALID_VALUE   -2075
 
#define FG_MEMORY_ALREADY_ALLOCATED   -2024
 
#define FG_MEMORY_IN_USE   -2061
 
#define FG_MICROENABLE_NOT_INIT   -110
 
#define FG_NO_APPLET_ID   -2055
 
#define FG_NO_BOARD_AVAILABLE   -20
 
#define FG_NO_EVENTS_FOUND   -2160
 
#define FG_NO_PICTURE_AVAILABLE   -2
 
#define FG_NO_VALID_DESIGN   -2110
 
#define FG_NO_VALID_LICENSE   -7020
 
#define FG_NOT_AVAILABLE   -12
 
#define FG_NOT_ENOUGH_MEM   -500
 
#define FG_NOT_ENOUGH_MEMORY   -2020
 
#define FG_NOT_IMPLEMENTED   -2130
 
#define FG_NOT_INIT   -2001
 
#define FG_NOT_LOAD   -2080
 
#define FG_NOT_WRONG_TRIGGER_MODE   FG_WRONG_TRIGGER_MODE
 
#define FG_OK   0
 
#define FG_OPERATION_ABORTED   -2091
 
#define FG_OVERFLOW_ERR   -401
 
#define FG_PARAMETER_NOT_IN_FILE   -9003
 
#define FG_POWERCYCLE_REQUIRED   -105
 
#define FG_PTR_INVALID   -300
 
#define FG_RANGE_ERR   -400
 
#define FG_RECONFIGURATION_DISABLED    -103
 
#define FG_RECONFIGURE_FAILED   -2053
 
#define FG_REG_KEY_NOT_FOUND   -121
 
#define FG_REGISTER_INIT_FAILED   -7050
 
#define FG_REGISTER_UPDATE_FAILED   -8020
 
#define FG_RESSOURCES_STILL_IN_USE   -28
 
#define FG_RESTART_REQUIRED   -104
 
#define FG_RUNTIME_VERSION_TOO_OLD   -703
 
#define FG_SIZE_ERROR   -200
 
#define FG_SOFTWARE_TRIGGER_BUSY   -60
 
#define FG_SOFTWARE_TRIGGER_PENDING   8803
 
#define FG_STILL_ACTIVE   -2100
 
#define FG_STILL_NOT_STARTED   -4000
 
#define FG_SYNC_ACQUIRE_NOT_SUPPORTED   -2045
 
#define FG_SYSTEM_LOCKED   -27
 
#define FG_TIMEOUT_ERR   -2120
 
#define FG_TOKEN_NOT_FOUND_ERROR   -8000
 
#define FG_TOO_MANY_BUFFER   -2011
 
#define FG_TRANSFER_NOT_ACTIVE   -3010
 
#define FG_UNEXPECTED_HAPLOAD   -130
 
#define FG_VALUE_OUT_OF_RANGE   -6000
 
#define FG_VASDLL_NOT_LOAD   -122
 
#define FG_VERSION_MISMATCH   -701
 
#define FG_WRITE_ACCESS_DENIED   -8010
 
#define FG_WRITE_LINE_SHADING_TIMEOUT   -7070
 
#define FG_WRONG_ARCHITECTURE   -50
 
#define FG_WRONG_FIRMWARE_PCIE_VERSION   -53
 
#define FG_WRONG_FIRMWARE_VERSION   -51
 
#define FG_WRONG_NUMBER_OF_BUFFER   -2010
 
#define FG_WRONG_RUNTIME_VERSION   -52
 
#define FG_WRONG_SIZE   -2002
 
#define FG_WRONG_TRIGGER_MODE   -2140
 
#define FG_WRONG_TRIGGER_STATE   -2141
 

Detailed Description

Constant and enum definitions.

fg_error_codes.h

Copyright (c) 2021-2024 Basler AG, All Rights Reserved.

Author
Basler AG

Macro Definition Documentation

◆ FG_ACCESS_DENIED

#define FG_ACCESS_DENIED   -702

◆ FG_ALL_BUFFER_BLOCKED

#define FG_ALL_BUFFER_BLOCKED   -2150

◆ FG_ALR_INIT

#define FG_ALR_INIT   -10

◆ FG_ALREADY_STARTED

#define FG_ALREADY_STARTED   -2090

◆ FG_APC_ALREADY_REGISTERED

#define FG_APC_ALREADY_REGISTERED   -2073

a APC callback handler is already registered

◆ FG_APC_PRIORITY_ERROR

#define FG_APC_PRIORITY_ERROR   -2072

FG_APC_HIGH_PRIORITY was requested but setting the priority failed

◆ FG_APPLET_NOT_ACCEPTED

#define FG_APPLET_NOT_ACCEPTED   -102

Applet is not flashed on the board

◆ FG_BOARD_INIT_FAILED

#define FG_BOARD_INIT_FAILED   -22

◆ FG_CANNOT_CHANGE_CAMERA_FORMAT

#define FG_CANNOT_CHANGE_CAMERA_FORMAT   -7030

◆ FG_CANNOT_CHANGE_DISPLAY_HEIGHT

#define FG_CANNOT_CHANGE_DISPLAY_HEIGHT   -7005

◆ FG_CANNOT_CHANGE_DISPLAY_SIZE

#define FG_CANNOT_CHANGE_DISPLAY_SIZE   -7010

◆ FG_CANNOT_CHANGE_DISPLAY_WIDTH

#define FG_CANNOT_CHANGE_DISPLAY_WIDTH   -7000

◆ FG_CANNOT_CHANGE_DURING_ACQU

#define FG_CANNOT_CHANGE_DURING_ACQU   -7090

◆ FG_CANNOT_COMBINE_DATA_EVENTS

#define FG_CANNOT_COMBINE_DATA_EVENTS    -2161

different event types, which transport additional information cannot be combined to one event mask

◆ FG_CANNOT_INIT_MICROENABLE

#define FG_CANNOT_INIT_MICROENABLE   -3000

◆ FG_CANNOT_START

#define FG_CANNOT_START   -2040

◆ FG_CANNOT_STOP

#define FG_CANNOT_STOP   -2042

◆ FG_CANNOT_WRITE_MEM_CONFIG_FAILED

#define FG_CANNOT_WRITE_MEM_CONFIG_FAILED   -2026

◆ FG_CLOCK_INIT_FAILED

#define FG_CLOCK_INIT_FAILED   -29

◆ FG_CLOCK_NOT_LOCKED

#define FG_CLOCK_NOT_LOCKED   -3120

◆ FG_CONFIGURE_FAILED

#define FG_CONFIGURE_FAILED   -2052

◆ FG_DEVICE_IO_ERROR

#define FG_DEVICE_IO_ERROR   -9000

◆ FG_DEVICE_REMOVED

#define FG_DEVICE_REMOVED   -9002

◆ FG_DLL_NOT_LOAD

#define FG_DLL_NOT_LOAD   -120

◆ FG_DMATRANSFER_INVALID

#define FG_DMATRANSFER_INVALID   -600

◆ FG_DUMMY_BUFFER

#define FG_DUMMY_BUFFER   -1

◆ FG_ENV_NOT_SET [1/2]

#define FG_ENV_NOT_SET   -5

◆ FG_ENV_NOT_SET [2/2]

#define FG_ENV_NOT_SET   -5

◆ FG_ERR_INVALID_FILE_DATA

#define FG_ERR_INVALID_FILE_DATA   -7072

◆ FG_ERR_RANGE_ERROR

#define FG_ERR_RANGE_ERROR   -7073

◆ FG_ERROR

#define FG_ERROR   -1

Error codes returned by calls to Fg_xxx functions.

◆ FG_ERROR_FREQUENCY_TOO_HIGH_FOR_PFG

#define FG_ERROR_FREQUENCY_TOO_HIGH_FOR_PFG   -2077

◆ FG_ERROR_LOADING_MODULE

#define FG_ERROR_LOADING_MODULE   -123

◆ FG_ERROR_LOADING_MODULE_INT

#define FG_ERROR_LOADING_MODULE_INT   -124

◆ FG_ERROR_VALUE_TOO_HIGH_FOR_FPS_OR_WIDTH_OR_DELAY

#define FG_ERROR_VALUE_TOO_HIGH_FOR_FPS_OR_WIDTH_OR_DELAY   -2079

◆ FG_ERROR_VALUE_TOO_LOW_FOR_FPS_OR_WIDTH_OR_DELAY

#define FG_ERROR_VALUE_TOO_LOW_FOR_FPS_OR_WIDTH_OR_DELAY   -2078

◆ FG_EXCEPTION_IN_APPLET

#define FG_EXCEPTION_IN_APPLET   -99

An exception occurred while accessing an applet function

◆ FG_FILE_ACCESS_DENIED

#define FG_FILE_ACCESS_DENIED   -5001

◆ FG_FILE_NOT_FOUND

#define FG_FILE_NOT_FOUND   -101

File does not exist

◆ FG_HAP_FILE_CORRUPTED

#define FG_HAP_FILE_CORRUPTED   -7021

◆ FG_HAP_FILE_DONT_MATCH

#define FG_HAP_FILE_DONT_MATCH   -700

◆ FG_HAP_FILE_NOT_LOAD

#define FG_HAP_FILE_NOT_LOAD   -100

File cannot be loaded due to various reasons

◆ FG_ILLEGAL_WHILE_APC

#define FG_ILLEGAL_WHILE_APC   -2071

there are no event types available at the grabber / applet

◆ FG_INIT_OK

#define FG_INIT_OK   1

◆ FG_INTERNAL_ERROR

#define FG_INTERNAL_ERROR   -2031

◆ FG_INTERNAL_STATUS_ERROR

#define FG_INTERNAL_STATUS_ERROR   -2030

◆ FG_INVALID_BOARD_NUMBER

#define FG_INVALID_BOARD_NUMBER   -21

◆ FG_INVALID_CLOCK

#define FG_INVALID_CLOCK   -23

◆ FG_INVALID_CONFIG_REGION

#define FG_INVALID_CONFIG_REGION   -9001

◆ FG_INVALID_CONFIGFILE

#define FG_INVALID_CONFIGFILE   -5000

◆ FG_INVALID_CONFIGFILEEXT

#define FG_INVALID_CONFIGFILEEXT   FG_INVALID_CONFIGFILE

◆ FG_INVALID_DESIGN

#define FG_INVALID_DESIGN   -2050

mismatch between applet and required firmware version, mismatch applet/hardware fpga type, mismatch fpga no, CRC error during fpga configuration

◆ FG_INVALID_DESIGN_NAME

#define FG_INVALID_DESIGN_NAME   -26

◆ FG_INVALID_EVENTMASK

#define FG_INVALID_EVENTMASK   -2162

event mask does not match to available event types

◆ FG_INVALID_FILENAME

#define FG_INVALID_FILENAME   -2076

An applet parameter was set to an non existing filename

◆ FG_INVALID_FILESIZE

#define FG_INVALID_FILESIZE   -2077

An applet parameter was set to a file of the wrong size

◆ FG_INVALID_HANDLE

#define FG_INVALID_HANDLE   -6

◆ FG_INVALID_IMAGE_DIMENSIONS

#define FG_INVALID_IMAGE_DIMENSIONS   -7071

Image dimensions of a loaded file don't match

◆ FG_INVALID_MEMORY

#define FG_INVALID_MEMORY   -2060

◆ FG_INVALID_MODULO

#define FG_INVALID_MODULO   -7080

◆ FG_INVALID_PARAMETER

#define FG_INVALID_PARAMETER   -2070

the applet-parameter is not valid or a function call contains invalid data / arguments

◆ FG_INVALID_PORT_NUMBER

#define FG_INVALID_PORT_NUMBER   -61

◆ FG_INVALID_REGISTER

#define FG_INVALID_REGISTER   -7040

◆ FG_INVALID_SHADING_CORRECTION_FILE

#define FG_INVALID_SHADING_CORRECTION_FILE   -7060

◆ FG_INVALID_TYPE

#define FG_INVALID_TYPE   -2078

An applet parameter was set using an invalid type

◆ FG_INVALID_VALUE

#define FG_INVALID_VALUE   -2075

An applet parameter was set to an invalid value

◆ FG_MEMORY_ALREADY_ALLOCATED

#define FG_MEMORY_ALREADY_ALLOCATED   -2024

◆ FG_MEMORY_IN_USE

#define FG_MEMORY_IN_USE   -2061

the memory is already in use by another DMA channel

◆ FG_MICROENABLE_NOT_INIT

#define FG_MICROENABLE_NOT_INIT   -110

◆ FG_NO_APPLET_ID

#define FG_NO_APPLET_ID   -2055

◆ FG_NO_BOARD_AVAILABLE

#define FG_NO_BOARD_AVAILABLE   -20

◆ FG_NO_EVENTS_FOUND

#define FG_NO_EVENTS_FOUND   -2160

there are no event types available at the grabber / applet

◆ FG_NO_PICTURE_AVAILABLE

#define FG_NO_PICTURE_AVAILABLE   -2

◆ FG_NO_VALID_DESIGN

#define FG_NO_VALID_DESIGN   -2110

◆ FG_NO_VALID_LICENSE

#define FG_NO_VALID_LICENSE   -7020

◆ FG_NOT_AVAILABLE

#define FG_NOT_AVAILABLE   -12

◆ FG_NOT_ENOUGH_MEM

#define FG_NOT_ENOUGH_MEM   -500

◆ FG_NOT_ENOUGH_MEMORY

#define FG_NOT_ENOUGH_MEMORY   -2020

◆ FG_NOT_IMPLEMENTED

#define FG_NOT_IMPLEMENTED   -2130

◆ FG_NOT_INIT

#define FG_NOT_INIT   -2001

◆ FG_NOT_LOAD

#define FG_NOT_LOAD   -2080

◆ FG_NOT_WRONG_TRIGGER_MODE

#define FG_NOT_WRONG_TRIGGER_MODE   FG_WRONG_TRIGGER_MODE

◆ FG_OK

#define FG_OK   0

Indication of success

◆ FG_OPERATION_ABORTED

#define FG_OPERATION_ABORTED   -2091

◆ FG_OVERFLOW_ERR

#define FG_OVERFLOW_ERR   -401

◆ FG_PARAMETER_NOT_IN_FILE

#define FG_PARAMETER_NOT_IN_FILE   -9003

◆ FG_POWERCYCLE_REQUIRED

#define FG_POWERCYCLE_REQUIRED   -105

Reconfiguration requires a powercycle of the system

◆ FG_PTR_INVALID

#define FG_PTR_INVALID   -300

◆ FG_RANGE_ERR

#define FG_RANGE_ERR   -400

◆ FG_RECONFIGURATION_DISABLED

#define FG_RECONFIGURATION_DISABLED    -103

Reconfiguration crash protection was enabled; please use microDiagnostics to disable \ \

◆ FG_RECONFIGURE_FAILED

#define FG_RECONFIGURE_FAILED   -2053

◆ FG_REG_KEY_NOT_FOUND

#define FG_REG_KEY_NOT_FOUND   -121

◆ FG_REGISTER_INIT_FAILED

#define FG_REGISTER_INIT_FAILED   -7050

◆ FG_REGISTER_UPDATE_FAILED

#define FG_REGISTER_UPDATE_FAILED   -8020

◆ FG_RESSOURCES_STILL_IN_USE

#define FG_RESSOURCES_STILL_IN_USE   -28

◆ FG_RESTART_REQUIRED

#define FG_RESTART_REQUIRED   -104

Reconfiguration requires a restart of the system

◆ FG_RUNTIME_VERSION_TOO_OLD

#define FG_RUNTIME_VERSION_TOO_OLD   -703

◆ FG_SIZE_ERROR

#define FG_SIZE_ERROR   -200

◆ FG_SOFTWARE_TRIGGER_BUSY

#define FG_SOFTWARE_TRIGGER_BUSY   -60

◆ FG_SOFTWARE_TRIGGER_PENDING

#define FG_SOFTWARE_TRIGGER_PENDING   8803

◆ FG_STILL_ACTIVE

#define FG_STILL_ACTIVE   -2100

◆ FG_STILL_NOT_STARTED

#define FG_STILL_NOT_STARTED   -4000

◆ FG_SYNC_ACQUIRE_NOT_SUPPORTED

#define FG_SYNC_ACQUIRE_NOT_SUPPORTED   -2045

◆ FG_SYSTEM_LOCKED

#define FG_SYSTEM_LOCKED   -27

◆ FG_TIMEOUT_ERR

#define FG_TIMEOUT_ERR   -2120

Acquisition timeout, no more frames

◆ FG_TOKEN_NOT_FOUND_ERROR

#define FG_TOKEN_NOT_FOUND_ERROR   -8000

◆ FG_TOO_MANY_BUFFER

#define FG_TOO_MANY_BUFFER   -2011

◆ FG_TRANSFER_NOT_ACTIVE

#define FG_TRANSFER_NOT_ACTIVE   -3010

◆ FG_UNEXPECTED_HAPLOAD

#define FG_UNEXPECTED_HAPLOAD   -130

◆ FG_VALUE_OUT_OF_RANGE

#define FG_VALUE_OUT_OF_RANGE   -6000

◆ FG_VASDLL_NOT_LOAD

#define FG_VASDLL_NOT_LOAD   -122

◆ FG_VERSION_MISMATCH

#define FG_VERSION_MISMATCH   -701

◆ FG_WRITE_ACCESS_DENIED

#define FG_WRITE_ACCESS_DENIED   -8010

◆ FG_WRITE_LINE_SHADING_TIMEOUT

#define FG_WRITE_LINE_SHADING_TIMEOUT   -7070

◆ FG_WRONG_ARCHITECTURE

#define FG_WRONG_ARCHITECTURE   -50

◆ FG_WRONG_FIRMWARE_PCIE_VERSION

#define FG_WRONG_FIRMWARE_PCIE_VERSION   -53

The firmware in the frame grabber board does not match the requirements of the applet

◆ FG_WRONG_FIRMWARE_VERSION

#define FG_WRONG_FIRMWARE_VERSION   -51

The firmware in the frame grabber board does not match the requirements of the applet

◆ FG_WRONG_NUMBER_OF_BUFFER

#define FG_WRONG_NUMBER_OF_BUFFER   -2010

◆ FG_WRONG_RUNTIME_VERSION

#define FG_WRONG_RUNTIME_VERSION   -52

The applet requires a different runtime version

◆ FG_WRONG_SIZE

#define FG_WRONG_SIZE   -2002

◆ FG_WRONG_TRIGGER_MODE

#define FG_WRONG_TRIGGER_MODE   -2140

◆ FG_WRONG_TRIGGER_STATE

#define FG_WRONG_TRIGGER_STATE   -2141