##########   This file is generated automatically based on fgrab_define.h   ##########

# pylint: disable=unused-import, unused-argument, wrong-spelling-in-comment


import ctypes
import enum
from ...core.utils import ctypes_wrap




def _int32(v): return (v+0x80000000)%0x100000000-0x80000000




##### DEFINE GROUPS #####


### CONST ###
FG_NO                    = _int32(0)
FG_YES                   = _int32(1)
FG_LOW                   = _int32(0)
FG_HIGH                  = _int32(1)
HIGH_ON_ZERO_LOW         = _int32(1)
HIGH_ON_ZERO_HIGH        = _int32(0)
FG_FALSE                 = _int32(0)
FG_TRUE                  = _int32(1)
FG_FALLING               = _int32(1)
FG_RISING                = _int32(0)
FG_ON                    = _int32(1)
FG_OFF                   = _int32(0)
FG_ZERO                  = _int32(0)
FG_ONE                   = _int32(1)
FG_APPLY                 = _int32(1)
FG_LEFT_ALIGNED          = _int32(1)
FG_RIGHT_ALIGNED         = _int32(0)
FG_SAVE_LUT_TO_FILE      = _int32(1)
FG_LOAD_LUT_FROM_FILE    = _int32(0)
FG_MSB                   = _int32(0)
FG_LSB                   = _int32(1)
MAX_BUF_NR               = _int32(1048576)
GRAB_INFINITE            = _int32(-1)
GRAB_ALL_BUFFERS         = _int32(-2)
ATM_SYNCHRONIZED         = _int32(3)
FG_SINGLE                = _int32(1)
FG_DOUBLE                = _int32(2)
FILTER_X1                = _int32(1)
FILTER_X2                = _int32(2)
FILTER_X4                = _int32(3)
HIGH_ACTIVE              = _int32(0)
LOW_ACTIVE               = _int32(1)
FG_CUSTOM_BIT_SHIFT_MODE = _int32(2)
ASYNC_TRIGGER_MULTIFRAME = _int32(8)
CAMERA_FVAL_MULTIFRAME   = _int32(9)
FG_PULSE_IMMEDIATE       = _int32(1)
FG_PULSE_WIDTH           = _int32(23)


class FG_BIT(enum.IntEnum):
    FG_0_BIT  = _int32(0)
    FG_1_BIT  = _int32(1)
    FG_2_BIT  = _int32(2)
    FG_3_BIT  = _int32(3)
    FG_4_BIT  = _int32(4)
    FG_5_BIT  = _int32(5)
    FG_6_BIT  = _int32(6)
    FG_7_BIT  = _int32(7)
    FG_8_BIT  = _int32(8)
    FG_9_BIT  = _int32(9)
    FG_10_BIT = _int32(10)
    FG_11_BIT = _int32(11)
    FG_12_BIT = _int32(12)
    FG_13_BIT = _int32(13)
    FG_14_BIT = _int32(14)
    FG_15_BIT = _int32(15)
    FG_16_BIT = _int32(16)
    FG_17_BIT = _int32(17)
    FG_18_BIT = _int32(18)
    FG_19_BIT = _int32(19)
    FG_20_BIT = _int32(20)
    FG_21_BIT = _int32(21)
    FG_22_BIT = _int32(22)
    FG_23_BIT = _int32(23)
    FG_24_BIT = _int32(24)
    FG_25_BIT = _int32(25)
    FG_26_BIT = _int32(26)
    FG_27_BIT = _int32(27)
    FG_28_BIT = _int32(28)
    FG_29_BIT = _int32(29)
    FG_30_BIT = _int32(30)
    FG_31_BIT = _int32(31)
    FG_32_BIT = _int32(32)
    FG_36_BIT = _int32(36)
    FG_48_BIT = _int32(48)
dFG_BIT={a.name:a.value for a in FG_BIT}
drFG_BIT={a.value:a.name for a in FG_BIT}


class FG_MODE(enum.IntEnum):
    CONTMODE      = _int32(0x10)
    HANDSHAKEMODE = _int32(0x20)
    BLOCKINGMODE  = _int32(0x20)
    PULSEMODE     = _int32(0x30)
dFG_MODE={a.name:a.value for a in FG_MODE}
drFG_MODE={a.value:a.name for a in FG_MODE}


class FG_IMGFMT(enum.IntEnum):
    FG_GRAY              = _int32(3)
    FG_GRAY_PLUS_PICNR   = _int32(30)
    FG_GRAY16            = _int32(1)
    FG_GRAY16_PLUS_PICNR = _int32(10)
    FG_GRAY10            = _int32(21)
    FG_GRAY12            = _int32(22)
    FG_GRAY14            = _int32(23)
    FG_GRAY32            = _int32(20)
    FG_COL24             = _int32(2)
    FG_COL32             = _int32(4)
    FG_COL30             = _int32(5)
    FG_COL36             = _int32(7)
    FG_COL42             = _int32(9)
    FG_COL48             = _int32(6)
    FG_RGBX32            = _int32(408)
    FG_RGBX40            = _int32(410)
    FG_RGBX48            = _int32(412)
    FG_RGBX56            = _int32(414)
    FG_RGBX64            = _int32(416)
    FG_BINARY            = _int32(8)
    FG_RAW               = _int32(50)
dFG_IMGFMT={a.name:a.value for a in FG_IMGFMT}
drFG_IMGFMT={a.value:a.name for a in FG_IMGFMT}


class FG_SYNC(enum.IntEnum):
    FG_INIT_LIBRARIES_SINGLE            = _int32(0)
    FG_INIT_LIBRARIES_MASTER            = _int32(1)
    FG_INIT_LIBRARIES_SLAVE             = _int32(2)
    FG_INIT_LIBRARIES_WAIT_FOR_SERVICE  = _int32(0x004)
    FG_INIT_LIBRARIES_SEQUENTIAL        = _int32(0x008)
    FG_INIT_LIBRARIES_AUTOSTART_ON_INIT = _int32(0x010)
dFG_SYNC={a.name:a.value for a in FG_SYNC}
drFG_SYNC={a.value:a.name for a in FG_SYNC}


class FG_ACQ(enum.IntEnum):
    ACQ_STANDARD    = _int32(0x1)
    ACQ_BLOCK       = _int32(0x2)
    ACQ_MODE_MASK   = _int32(0xffff)
    ACQ_NO_AUTOSTOP = _int32(0x10000)
dFG_ACQ={a.name:a.value for a in FG_ACQ}
drFG_ACQ={a.value:a.name for a in FG_ACQ}


class FG_GETSTATUS(enum.IntEnum):
    NUMBER_OF_GRABBED_IMAGES     = _int32(10)
    NUMBER_OF_LOST_IMAGES        = _int32(20)
    NUMBER_OF_BLOCK_LOST_IMAGES  = _int32(30)
    NUMBER_OF_BLOCKED_IMAGES     = _int32(40)
    NUMBER_OF_ACT_IMAGE          = _int32(50)
    NUMBER_OF_LAST_IMAGE         = _int32(60)
    NUMBER_OF_NEXT_IMAGE         = _int32(70)
    NUMBER_OF_IMAGES_IN_PROGRESS = _int32(80)
    BUFFER_STATUS                = _int32(90)
    GRAB_ACTIVE                  = _int32(100)
dFG_GETSTATUS={a.name:a.value for a in FG_GETSTATUS}
drFG_GETSTATUS={a.value:a.name for a in FG_GETSTATUS}


class FG_SETSTATUS(enum.IntEnum):
    FG_BLOCK       = _int32(0x100)
    FG_UNBLOCK     = _int32(0x200)
    FG_UNBLOCK_ALL = _int32(0x220)
    SEL_ACT_IMAGE  = _int32(200)
    SEL_LAST_IMAGE = _int32(210)
    SEL_NEXT_IMAGE = _int32(220)
    SEL_NUMBER     = _int32(230)
    SEL_NEW_IMAGE  = _int32(240)
dFG_SETSTATUS={a.name:a.value for a in FG_SETSTATUS}
drFG_SETSTATUS={a.value:a.name for a in FG_SETSTATUS}


class FG_PARAM_PROPERTY(enum.IntEnum):
    FG_PARAMETER_PROPERTY_ACCESS        = _int32(0x80000000)
    FG_PARAMETER_PROPERTY_MIN           = _int32(0xC0000000)
    FG_PARAMETER_PROPERTY_MAX           = _int32(0x40000000)
    FG_PARAMETER_PROPERTY_STEP          = _int32(0xE0000000)
    FP_PARAMETER_PROPERTY_ACCESS_READ   = _int32(0x1)
    FP_PARAMETER_PROPERTY_ACCESS_WRITE  = _int32(0x2)
    FP_PARAMETER_PROPERTY_ACCESS_MODIFY = _int32(0x4)
    FP_PARAMETER_PROPERTY_ACCESS_LOCKED = _int32(0x8)
dFG_PARAM_PROPERTY={a.name:a.value for a in FG_PARAM_PROPERTY}
drFG_PARAM_PROPERTY={a.value:a.name for a in FG_PARAM_PROPERTY}


class FG_PARAM(enum.IntEnum):
    FG_REVNR                                         = _int32(99)
    FG_WIDTH                                         = _int32(100)
    FG_HEIGHT                                        = _int32(200)
    FG_MAXWIDTH                                      = _int32(6100)
    FG_MAXHEIGHT                                     = _int32(6200)
    FG_ACTIVEPORT                                    = _int32(6300)
    FG_XOFFSET                                       = _int32(300)
    FG_YOFFSET                                       = _int32(400)
    FG_XSHIFT                                        = _int32(500)
    FG_TIMEOUT                                       = _int32(600)
    FG_APC_STOP_TIMEOUT                              = _int32(601)
    FG_STOP_TIMEOUT                                  = _int32(602)
    FG_FORMAT                                        = _int32(700)
    FG_CAMSUBTYP                                     = _int32(80)
    FG_FRAMESPERSEC                                  = _int32(90)
    FG_MAXFRAMESPERSEC                               = _int32(91)
    FG_MINFRAMESPERSEC                               = _int32(92)
    FG_LINESPERSEC                                   = _int32(95)
    FG_LINEPERIOD                                    = _int32(96)
    FG_LINEPERIODE                                   = _int32(96)
    FG_EXPOSURE                                      = _int32(10020)
    FG_LINEEXPOSURE                                  = _int32(10030)
    FG_HDSYNC                                        = _int32(10050)
    FG_PRESCALER                                     = _int32(10050)
    FG_LINETRIGGER                                   = _int32(10050)
    FG_RS232PARON                                    = _int32(10060)
    FG_MTU_SIZE                                      = _int32(200351)
    FG_PIXELDEPTH                                    = _int32(4000)
    FG_BITALIGNMENT                                  = _int32(4010)
    FG_LINEALIGNMENT                                 = _int32(4020)
    FG_COLOR_SELECT                                  = _int32(4030)
    FG_SWAP_CHANNELS                                 = _int32(200350)
    FG_CAMBITWIDTH                                   = _int32(5000)
    FG_CAMBITSHIFT                                   = _int32(5010)
    FG_CAMERA_WIDTH                                  = _int32(110133)
    FG_SHIFTCAMDATARIGHT                             = _int32(5020)
    FG_ROTATECAMDATA                                 = _int32(5020)
    FG_USEDVAL                                       = _int32(5025)
    FG_SWAPENDIAN                                    = _int32(5028)
    FG_MASKCAMDATA                                   = _int32(5030)
    FG_ADDOFFSET                                     = _int32(5035)
    FG_DROPPEDIMAGEES                                = _int32(5040)
    FG_SENSORREADOUT                                 = _int32(5050)
    FG_SENSORREADOUT_TAPS                            = _int32(5051)
    FG_SENSORREADOUT_DIREC                           = _int32(5052)
    FG_TRIGGERMODE                                   = _int32(8100)
    FG_LINETRIGGERMODE                               = _int32(8102)
    FG_IMGTRIGGERMODE                                = _int32(8104)
    FG_IMGTRIGGERON                                  = _int32(8106)
    FG_TRIGGERINSRC                                  = _int32(8110)
    FG_LINETRIGGERINSRC                              = _int32(8112)
    FG_IMGTRIGGERINSRC                               = _int32(8113)
    FG_LINETRIGGERINPOLARITY                         = _int32(8115)
    FG_IMGTRIGGERINPOLARITY                          = _int32(8116)
    FG_TRIGGERINPOLARITY                             = _int32(8116)
    FG_IMGTRIGGERGATEDELAY                           = _int32(8118)
    FG_USEROUT                                       = _int32(8120)
    FG_EXSYNCINVERT                                  = _int32(8200)
    FG_EXSYNCON                                      = _int32(8300)
    FG_EXSYNCDELAY                                   = _int32(8400)
    FG_EXSYNCPOLARITY                                = _int32(8420)
    FG_DEADTIME                                      = _int32(8450)
    FG_DEADTIME_OFFSET                               = _int32(8460)
    FG_BGRRGBORDER                                   = _int32(8500)
    FG_FLASHON                                       = _int32(8600)
    FG_SENDSOFTWARETRIGGER                           = _int32(8800)
    FG_SETSOFTWARETRIGGER                            = _int32(8801)
    FG_SOFTWARETRIGGER_QUEUE_FILLLEVEL               = _int32(8802)
    FG_LINETRIGGERDELAY                              = _int32(8900)
    FG_LIMIT_TRIGGER_PULSES                          = _int32(8950)
    FG_TRIGGERMASTERSYNC                             = _int32(9000)
    FG_SHAFTENCODERINSRC                             = _int32(9100)
    FG_SHAFTENCODERON                                = _int32(9110)
    FG_SHAFTENCODERLEADING                           = _int32(9120)
    FG_SHAFTENCODER_COMPCOUNTER                      = _int32(9125)
    FG_RGB_MAP_RED                                   = _int32(9200)
    FG_RGB_MAP_GREEN                                 = _int32(9210)
    FG_RGB_MAP_BLUE                                  = _int32(9220)
    FG_CAMSTATUS                                     = _int32(2000)
    FG_CAMSTATUS_EXTENDED                            = _int32(2050)
    FG_TWOCAMMODEL                                   = _int32(2100)
    FG_PORT                                          = _int32(3000)
    FG_NR_OF_DMAS                                    = _int32(3050)
    FG_TURBO_DMA_MODE                                = _int32(3051)
    FG_NR_OF_CAMS                                    = _int32(3060)
    FG_NR_OF_PROCESSES                               = _int32(3070)
    FG_DMA_PORT                                      = _int32(3080)
    FG_DMA_STARTED                                   = _int32(3081)
    FG_CAM_PORT                                      = _int32(3090)
    FG_RESET_GIGE_PORT_0                             = _int32(3100)
    FG_RESET_GIGE_PORT_1                             = _int32(3101)
    FG_RESET_GIGE_PORT_2                             = _int32(3102)
    FG_RESET_GIGE_PORT_3                             = _int32(3103)
    FG_TRANSFER_LEN                                  = _int32(5210)
    FG_STROBEPULSEDELAY                              = _int32(8700)
    FG_STROBEPULSEREDUCE                             = _int32(8710)
    FG_STROBEPULSESRCSEL                             = _int32(8720)
    FG_STROBEPULSEINVERT                             = _int32(8730)
    FG_FLASHTIME                                     = _int32(8740)
    FG_FLASHTIME_SYNC                                = _int32(8750)
    FG_CAMERA_LINK_CAMTYPE                           = _int32(11011)
    FG_CAMERA_LINK_CAMTYP                            = _int32(11011)
    FG_CL_CAMTYP                                     = _int32(11011)
    FG_CAMTYP                                        = _int32(11011)
    FG_GBE_CAMTYPE                                   = _int32(11011)
    FG_GBE_CAMTYP                                    = _int32(11011)
    FG_CAMERA_LINK_CORE_RESET                        = _int32(11012)
    FG_CAMERA_LINK_PIXEL_CLOCK                       = _int32(11013)
    FG_CAMERA_LINK_PIXEL_CLOCK_X                     = _int32(11014)
    FG_CAMERA_LINK_PIXEL_CLOCK_Y                     = _int32(11015)
    FG_CAMERA_LINK_PIXEL_CLOCK_Z                     = _int32(11016)
    FG_LOOKUPTABLE                                   = _int32(12000)
    FG_LUT_FILE                                      = _int32(12010)
    FG_LUT_SAVE_LOAD_FILE                            = _int32(12020)
    FG_LUT_ENABLE                                    = _int32(12030)
    FG_KNEE_LUT                                      = _int32(12100)
    FG_KNEE_LUT_FILE                                 = _int32(12110)
    FG_KNEE_LUT_SAVE_LOAD_FILE                       = _int32(12120)
    FG_KNEE_LUT_MODE                                 = _int32(12130)
    FG_KNEE_LUT_ACCESS                               = _int32(12140)
    FG_KNEE_LUT_SCALE                                = _int32(12101)
    FG_KNEE_LUT_OFFSET                               = _int32(12102)
    FG_KNEE_LUT_GAMMA                                = _int32(12103)
    FG_KNEE_LUT_INVERT                               = _int32(12104)
    FG_MEDIAN                                        = _int32(12200)
    FG_2DSHADINGPARAMETER                            = _int32(12500)
    FG_SCALINGFACTOR_RED                             = _int32(13000)
    FG_SCALINGFACTOR_BLUE                            = _int32(13010)
    FG_BAYERINIT                                     = _int32(13020)
    FG_SCALINGFACTOR_GREEN                           = _int32(13030)
    FG_CCSEL                                         = _int32(14000)
    FG_CCSEL0                                        = _int32(14001)
    FG_CCSEL1                                        = _int32(14002)
    FG_CCSEL2                                        = _int32(14003)
    FG_CCSEL3                                        = _int32(14004)
    FG_CCSEL_INVERT                                  = _int32(14005)
    FG_CCSEL_INVERT0                                 = _int32(14006)
    FG_CCSEL_INVERT1                                 = _int32(14007)
    FG_CCSEL_INVERT2                                 = _int32(14008)
    FG_CCSEL_INVERT3                                 = _int32(14009)
    FG_CC1_SOURCE                                    = _int32(14041)
    FG_CC1_POLARITY                                  = _int32(14031)
    FG_CC2_SOURCE                                    = _int32(14042)
    FG_CC2_POLARITY                                  = _int32(14032)
    FG_CC3_SOURCE                                    = _int32(14043)
    FG_CC3_POLARITY                                  = _int32(14033)
    FG_CC4_SOURCE                                    = _int32(14044)
    FG_CC4_POLARITY                                  = _int32(14034)
    FG_DIGIO_INPUT                                   = _int32(14010)
    FG_DIGIO_OUTPUT                                  = _int32(14020)
    FG_IMAGE_TAG                                     = _int32(22000)
    FG_TIMESTAMP                                     = _int32(22020)
    FG_TIMESTAMP_LONG                                = _int32(22030)
    FG_TIMESTAMP_LONG_FREQUENCY                      = _int32(22031)
    FG_LICENSESTRING0                                = _int32(23000)
    FG_LICENSESTRING1                                = _int32(23010)
    FG_LICENSESTRING2                                = _int32(23020)
    FG_ACCESS_POINTER                                = _int32(23030)
    FG_ROIX                                          = _int32(23100)
    FG_ROIY                                          = _int32(23110)
    FG_SHADING_SUBIMAGE                              = _int32(23120)
    FG_SHADING_MULTENABLE                            = _int32(23130)
    FG_SHADING_OFFSETENABLE                          = _int32(23140)
    FG_SHADING_SUBENABLE                             = _int32(23140)
    FG_SHADING_MAX_MULT                              = _int32(23135)
    FG_SHADING_RUNSUBIMAGE0                          = _int32(23121)
    FG_SHADING_RUNSUBIMAGE1                          = _int32(23122)
    FG_SHADING_RUNSUBIMAGE2                          = _int32(23123)
    FG_SHADING_RUNSUBIMAGE3                          = _int32(23124)
    FG_SHADING_ENABLEMULT0                           = _int32(23131)
    FG_SHADING_ENABLEMULT1                           = _int32(23132)
    FG_SHADING_ENABLEMULT2                           = _int32(23133)
    FG_SHADING_ENABLEMULT3                           = _int32(23134)
    FG_SHADING_ENABLESUB0                            = _int32(23141)
    FG_SHADING_ENABLESUB1                            = _int32(23142)
    FG_SHADING_ENABLESUB2                            = _int32(23143)
    FG_SHADING_ENABLESUB3                            = _int32(23144)
    FG_SHADING_FPNENABLE                             = _int32(23150)
    FG_SHADING_ENABLEFPN0                            = _int32(23151)
    FG_SHADING_ENABLEFPN1                            = _int32(23152)
    FG_SHADING_ENABLEFPN2                            = _int32(23153)
    FG_SHADING_ENABLEFPN3                            = _int32(23154)
    FG_SHADING_THRESHOLD0                            = _int32(23156)
    FG_SHADING_THRESHOLD1                            = _int32(23157)
    FG_SHADING_THRESHOLD2                            = _int32(23158)
    FG_SHADING_THRESHOLD3                            = _int32(23159)
    FG_SHADING_MULTFILE0                             = _int32(23160)
    FG_SHADING_SUBFILE0                              = _int32(23170)
    FG_SHADING_FPNFILE0                              = _int32(23180)
    FG_SHADING_MULTFILE1                             = _int32(23210)
    FG_SHADING_SUBFILE1                              = _int32(23225)
    FG_SHADING_FPNFILE1                              = _int32(23230)
    FG_SHADING_MULTFILE2                             = _int32(23240)
    FG_SHADING_SUBFILE2                              = _int32(23250)
    FG_SHADING_FPNFILE2                              = _int32(23260)
    FG_SHADING_MULTFILE3                             = _int32(23270)
    FG_SHADING_SUBFILE3                              = _int32(23280)
    FG_SHADING_FPNFILE3                              = _int32(23290)
    FG_CONTRAST                                      = _int32(23200)
    FG_BRIGHTNESS                                    = _int32(23220)
    FG_DOWNSCALE                                     = _int32(24040)
    FG_LINE_DOWNSCALE                                = _int32(24040)
    FG_LINE_DOWNSCALEINIT                            = _int32(24050)
    FG_FLASH_POLARITY                                = _int32(24060)
    FG_FLASHDELAY                                    = _int32(8700)
    FG_LOAD_SHADINGDATA                              = _int32(24070)
    FG_CLEAR_SHADINGDATA                             = _int32(24080)
    FG_LINESHADINGPARAMETER                          = _int32(24081)
    FG_1DSHADINGPARAMETER                            = _int32(24081)
    FG_LINESHADING_SUB_ENABLE                        = _int32(24082)
    FG_LINESHADING_MULT_ENABLE                       = _int32(24083)
    FG_ENABLEDISABLE_SHADING                         = _int32(24083)
    FG_SHADING_WIDTH                                 = _int32(24089)
    FG_AUTO_SHADING_WIDTH                            = _int32(24090)
    FG_WRITE_SHADING_12                              = _int32(24091)
    FG_LINESHADING_MULT_FILENAME                     = _int32(24084)
    FG_LINESHADING_SUB_FILENAME                      = _int32(24085)
    FG_LINESHADING_LOAD_FROM_FILE                    = _int32(24086)
    FG_LINESHADING_MODE                              = _int32(24087)
    FG_DMASTATUS                                     = _int32(24092)
    FG_LINEVALID_SIGNAL_COUNT                        = _int32(24093)
    FG_FRAMEVALID_SIGNAL_COUNT                       = _int32(24094)
    FG_1DSHADING_FILE                                = _int32(24084)
    FG_LOAD_1DSHADINGDATA                            = _int32(24086)
    FG_BURSTLENGTH                                   = _int32(24097)
    FG_SUPERFRAME                                    = _int32(24098)
    FG_PLX_CLK                                       = _int32(24102)
    FG_MEASURED_PCIE_CLK                             = _int32(24103)
    FG_FPGA_CLK                                      = _int32(24104)
    FG_HAP_FILE                                      = _int32(24108)
    FG_GLOBAL_ACCESS                                 = _int32(24110)
    FG_DOC_URL                                       = _int32(24112)
    FG_PARAM_DESCR                                   = _int32(24114)
    FG_REG_VALUE_STRING                              = _int32(24115)
    FG_CAMPORT_CONFIG                                = _int32(30000)
    FG_CAMERA_TYPE                                   = _int32(30001)
    FG_COLOR_FLAVOUR                                 = _int32(30002)
    FG_GEN_ENABLE                                    = _int32(30099)
    FG_GEN_PASSIVE                                   = _int32(30100)
    FG_GEN_ACTIVE                                    = _int32(30101)
    FG_GEN_WIDTH                                     = _int32(30102)
    FG_GEN_LINE_WIDTH                                = _int32(30103)
    FG_GEN_HEIGHT                                    = _int32(30104)
    FG_GEN_START                                     = _int32(30113)
    FG_GEN_LINE_GAP                                  = _int32(30105)
    FG_GEN_FREQ                                      = _int32(30106)
    FG_GEN_ACCURACY                                  = _int32(30107)
    FG_GEN_ROLL                                      = _int32(30112)
    FG_GEN_TAP1                                      = _int32(30108)
    FG_GEN_TAP2                                      = _int32(30109)
    FG_GEN_TAP3                                      = _int32(30110)
    FG_GEN_TAP4                                      = _int32(30111)
    FG_CAMERASIMULATOR_ENABLE                        = _int32(30099)
    FG_CAMERASIMULATOR_WIDTH                         = _int32(30102)
    FG_CAMERASIMULATOR_HEIGHT                        = _int32(200322)
    FG_CAMERASIMULATOR_LINE_GAP                      = _int32(30105)
    FG_CAMERASIMULATOR_FRAME_GAP                     = _int32(200325)
    FG_CAMERASIMULATOR_PATTERN                       = _int32(200326)
    FG_CAMERASIMULATOR_ROLL                          = _int32(200327)
    FG_CAMERASIMULATOR_SELECT_MODE                   = _int32(200328)
    FG_CAMERASIMULATOR_PIXEL_FREQUENCY               = _int32(30106)
    FG_CAMERASIMULATOR_LINERATE                      = _int32(200329)
    FG_CAMERASIMULATOR_FRAMERATE                     = _int32(200352)
    FG_CAMERASIMULATOR_ACTIVE                        = _int32(30101)
    FG_CAMERASIMULATOR_PASSIVE                       = _int32(30100)
    FG_CAMERASIMULATOR_TRIGGER_MODE                  = _int32(200355)
    FG_CAMERASIMULATOR_PATTERN_OFFSET                = _int32(200356)
    FG_CAMERASIMULATOR_FPS                           = _int32(200358)
    FG_APPLET_ID                                     = _int32(24010)
    FG_APPLET_VERSION                                = _int32(24020)
    FG_APPLET_REVISION                               = _int32(24030)
    FG_APPLET_BUILD_TIME                             = _int32(24011)
    FG_DESIGNCLK                                     = _int32(24040)
    FG_ALL                                           = _int32(24050)
    FG_THRESHOLD_H_MIN                               = _int32(25000)
    FG_THRESHOLD_H_MAX                               = _int32(25010)
    FG_THRESHOLD_S_MIN                               = _int32(25020)
    FG_THRESHOLD_S_MAX                               = _int32(25030)
    FG_THRESHOLD_I_MIN                               = _int32(25040)
    FG_THRESHOLD_I_MAX                               = _int32(25050)
    FG_DO_THRESHOLD_S                                = _int32(25060)
    FG_DO_THRESHOLD_I                                = _int32(25070)
    FG_SHADING_H                                     = _int32(25080)
    FG_SHADING_S                                     = _int32(25090)
    FG_SHADING_I                                     = _int32(25100)
    FG_FASTCONFIG_SEQUENCE                           = _int32(30010)
    FG_FASTCONFIG_PAGECMD                            = _int32(30020)
    FG_FASTCONFIG_PAGECMD_PTR                        = _int32(30030)
    FG_FASTCONFIG_PULSEDIGIO                         = _int32(30040)
    FG_IMG_SELECT_PERIOD                             = _int32(25110)
    FG_IMG_SELECT                                    = _int32(25111)
    FG_NROFEXTERN_TRIGGER                            = _int32(30110)
    FG_ACTIVATE_EXTERN_TRIGGER                       = _int32(30120)
    FG_READ_EXTERN_TRIGGER                           = _int32(30130)
    FG_NB_QUAD_IMG                                   = _int32(30300)
    FG_NB_STD_IMG                                    = _int32(30310)
    FG_BOARD_INFORMATION                             = _int32(42042)
    FG_LOGGING                                       = _int32(43010)
    FG_LOG_FLUSH                                     = _int32(43020)
    FG_LOG_CONSOLE                                   = _int32(43030)
    FG_CREATE_DUMP                                   = _int32(43040)
    FG_CABLE_SELECT                                  = _int32(1001010)
    FG_IMAGE_ENABLE                                  = _int32(1001020)
    FG_STAT_ENABLE                                   = _int32(1001030)
    FG_MIN_DX                                        = _int32(1001040)
    FG_THR1                                          = _int32(1001050)
    FG_THR2                                          = _int32(1001060)
    FG_MEDIAN_ON                                     = _int32(1001070)
    FG_DMA_WRITE                                     = _int32(1001080)
    FG_FAST_CONFIG                                   = _int32(1001090)
    FG_SYNC                                          = _int32(1001100)
    FG_NODMA1IR                                      = _int32(1001110)
    FG_FILLLEVEL                                     = _int32(110086)
    FG_OVERFLOW                                      = _int32(110087)
    FG_NOISEFILTER                                   = _int32(110016)
    FG_LUT_TYPE                                      = _int32(110017)
    FG_LUT_CUSTOM_FILE                               = _int32(300000)
    FG_LUT_SAVE_FILE                                 = _int32(110021)
    FG_PROCESSING_GAIN                               = _int32(300002)
    FG_PROCESSING_GAMMA                              = _int32(300003)
    FG_PROCESSING_OFFSET                             = _int32(300004)
    FG_PROCESSING_INVERT                             = _int32(300005)
    FG_LUT_IMPLEMENTATION_TYPE                       = _int32(300006)
    FG_SHADING_GAIN_ENABLE                           = _int32(300100)
    FG_SHADING_GRAY_FILENAME                         = _int32(300101)
    FG_SHADING_OFFSET_ENABLE                         = _int32(300102)
    FG_SHADING_BLACK_FILENAME                        = _int32(300103)
    FG_SHADING_GAIN_CORRECTION_MODE                  = _int32(300106)
    FG_SHADING_APPLY_SETTINGS                        = _int32(300107)
    FG_SHADING_GAIN_NORMALIZATION_VALUE              = _int32(300108)
    FG_AREATRIGGERMODE                               = _int32(300200)
    FG_TRIGGERSTATE                                  = _int32(300201)
    FG_TRIGGER_FRAMESPERSECOND                       = _int32(90)
    FG_TRIGGER_EXCEEDED_PERIOD_LIMITS                = _int32(300202)
    FG_TRIGGER_EXCEEDED_PERIOD_LIMITS_CLEAR          = _int32(300203)
    FG_TRIGGERIN_DEBOUNCE                            = _int32(300204)
    FG_TRIGGERIN_SRC                                 = _int32(8110)
    FG_TRIGGERIN_POLARITY                            = _int32(8116)
    FG_SOFTWARETRIGGER_IS_BUSY                       = _int32(110075)
    FG_TRIGGERIN_DOWNSCALE                           = _int32(300205)
    FG_TRIGGERIN_DOWNSCALE_PHASE                     = _int32(300206)
    FG_TRIGGERIN_STATS_PULSECOUNT                    = _int32(300207)
    FG_TRIGGERIN_STATS_PULSECOUNT_CLEAR              = _int32(300208)
    FG_TRIGGERIN_STATS_FREQUENCY                     = _int32(300209)
    FG_TRIGGERIN_STATS_MINFREQUENCY                  = _int32(300210)
    FG_TRIGGERIN_STATS_MAXFREQUENCY                  = _int32(300211)
    FG_TRIGGERIN_STATS_MINMAXFREQUENCY_CLEAR         = _int32(300212)
    FG_TRIGGER_MULTIPLY_PULSES                       = _int32(300213)
    FG_TRIGGERQUEUE_MODE                             = _int32(300214)
    FG_TRIGGERQUEUE_FILLLEVEL                        = _int32(300215)
    FG_TRIGGER_PULSEFORMGEN0_DOWNSCALE               = _int32(300216)
    FG_TRIGGER_PULSEFORMGEN0_DOWNSCALE_PHASE         = _int32(300217)
    FG_TRIGGER_PULSEFORMGEN0_DELAY                   = _int32(300218)
    FG_TRIGGER_PULSEFORMGEN0_WIDTH                   = _int32(300219)
    FG_TRIGGER_PULSEFORMGEN1_DOWNSCALE               = _int32(300220)
    FG_TRIGGER_PULSEFORMGEN1_DOWNSCALE_PHASE         = _int32(300221)
    FG_TRIGGER_PULSEFORMGEN1_DELAY                   = _int32(300222)
    FG_TRIGGER_PULSEFORMGEN1_WIDTH                   = _int32(300223)
    FG_TRIGGER_PULSEFORMGEN2_DOWNSCALE               = _int32(300224)
    FG_TRIGGER_PULSEFORMGEN2_DOWNSCALE_PHASE         = _int32(300225)
    FG_TRIGGER_PULSEFORMGEN2_DELAY                   = _int32(300226)
    FG_TRIGGER_PULSEFORMGEN2_WIDTH                   = _int32(300227)
    FG_TRIGGER_PULSEFORMGEN3_DOWNSCALE               = _int32(300228)
    FG_TRIGGER_PULSEFORMGEN3_DOWNSCALE_PHASE         = _int32(300229)
    FG_TRIGGER_PULSEFORMGEN3_DELAY                   = _int32(300230)
    FG_TRIGGER_PULSEFORMGEN3_WIDTH                   = _int32(300231)
    FG_TRIGGEROUT_SELECT0                            = _int32(300232)
    FG_TRIGGEROUT_SELECT1                            = _int32(300233)
    FG_TRIGGEROUT_SELECT2                            = _int32(300234)
    FG_TRIGGEROUT_SELECT3                            = _int32(300235)
    FG_TRIGGEROUT_STATS_SOURCE                       = _int32(300236)
    FG_TRIGGEROUT_STATS_PULSECOUNT                   = _int32(300237)
    FG_TRIGGEROUT_STATS_PULSECOUNT_CLEAR             = _int32(300238)
    FG_TRIGGERIN_EVENT_SRC                           = _int32(300239)
    FG_TRIGGER_QUEUE_FILLLEVEL_EVENT_ON_THRESHOLD    = _int32(300240)
    FG_TRIGGER_QUEUE_FILLLEVEL_EVENT_OFF_THRESHOLD   = _int32(300241)
    FG_TRIGGER_OUTPUT_EVENT_SELECT                   = _int32(300242)
    FG_TRIGGERIN_BYPASS_SRC                          = _int32(300243)
    FG_TRIGGEROUT_SELECT4                            = _int32(300244)
    FG_TRIGGEROUT_SELECT5                            = _int32(300245)
    FG_TRIGGEROUT_SELECT6                            = _int32(300246)
    FG_TRIGGEROUT_SELECT7                            = _int32(300247)
    FG_LUT_BASEPOINTS                                = _int32(300012)
    FG_LUT_IN_BITS                                   = _int32(300007)
    FG_LUT_OUT_BITS                                  = _int32(300008)
    FG_LUT_VALUE                                     = _int32(300001)
    FG_LUT_VALUE_RED                                 = _int32(300009)
    FG_LUT_VALUE_GREEN                               = _int32(300010)
    FG_LUT_VALUE_BLUE                                = _int32(300011)
    FG_SHADING_DEAD_PIXEL_INTERPOLATION_ENABLE       = _int32(300104)
    FG_SHADING_DEAD_PIXEL_INTERPOLATION_THRESHOLD    = _int32(300105)
    FG_MISSING_CAMERA_FRAME_RESPONSE                 = _int32(300248)
    FG_MISSING_CAMERA_FRAME_RESPONSE_CLEAR           = _int32(300249)
    FG_TRIGGERCC_SELECT0                             = _int32(300250)
    FG_TRIGGERCC_SELECT1                             = _int32(300251)
    FG_TRIGGERCC_SELECT2                             = _int32(300252)
    FG_TRIGGERCC_SELECT3                             = _int32(300253)
    FG_TRIGGER_LEGACY_MODE                           = _int32(300254)
    FG_SC_SUBSENSORCOUNT                             = _int32(110118)
    FG_SC_SENSORLENGTH                               = _int32(110119)
    FG_SC_TAPCOUNT                                   = _int32(110120)
    FG_SC_ROTATEDSENSOR                              = _int32(110121)
    FG_SC_READOUTDIRECTION                           = _int32(110122)
    FG_SC_PIXELORDER                                 = _int32(110123)
    FG_SC_UPDATESCHEME                               = _int32(110124)
    FG_IMAGEHEIGHT                                   = _int32(110061)
    FG_SHAFTENCODERMODE                              = _int32(110065)
    FG_IMGTRIGGER_IS_BUSY                            = _int32(110066)
    FG_IMGTRIGGERDEBOUNCING                          = _int32(110064)
    FG_TRIGGERCAMERA_GPO0                            = _int32(200330)
    FG_TRIGGERCAMERA_GPO1                            = _int32(200331)
    FG_TRIGGERCAMERA_GPO2                            = _int32(200332)
    FG_TRIGGERCAMERA_GPO3                            = _int32(200333)
    FG_TRIGGERCAMERA_GPO4                            = _int32(200334)
    FG_TRIGGERCAMERA_GPO5                            = _int32(200335)
    FG_TRIGGERCAMERA_GPO6                            = _int32(200336)
    FG_TRIGGERCAMERA_GPO7                            = _int32(200337)
    FG_TRIGGERCAMERA_OUT_SELECT                      = _int32(200338)
    FG_TRIGGERCAMERA_SOURCE                          = _int32(200338)
    FG_TRIGGERCAMERA_POLARITY                        = _int32(200354)
    FG_TRIGGERCAMERA_INPUT_MONITOR                   = _int32(200339)
    FG_TRIGGERCAMERA_GPI_MONITOR                     = _int32(200340)
    FG_SYSTEMMONITOR_FPGA_TEMPERATURE                = _int32(200341)
    FG_SYSTEMMONITOR_FPGA_VCC_INT                    = _int32(200342)
    FG_SYSTEMMONITOR_FPGA_VCC_AUX                    = _int32(200343)
    FG_SYSTEMMONITOR_BOARD_POWER                     = _int32(200344)
    FG_SYSTEMMONITOR_CXP_CHIP_TEMPERATURE            = _int32(200345)
    FG_SYSTEMMONITOR_RAM_CHIP_TEMPERATURE            = _int32(200346)
    FG_SYSTEMMONITOR_CXP_POWER_REGULATOR_TEMPERATURE = _int32(200347)
    FG_SYSTEMMONITOR_POWER_REGULATOR_TEMPERATURE     = _int32(200348)
    FG_SYSTEMMONITOR_FPGA_DNA                        = _int32(200349)
    FG_SYSTEMMONITOR_CHANNEL_CURRENT                 = _int32(200350)
    FG_SYSTEMMONITOR_CHANNEL_VOLTAGE                 = _int32(200351)
    FG_SYSTEMMONITOR_CHANNEL_STATE                   = _int32(200353)
    FG_SC                                            = _int32(110138)
    FG_SAMPLING_RATE                                 = _int32(200365)
    FG_PIXELFORMAT                                   = _int32(200368)
    FG_CXP_TRIGGER_PACKET_MODE                       = _int32(200369)
    FG_SHADING_ENABLE                                = _int32(300109)
    FG_SHAFTENCODER_COMPENSATION_ENABLE              = _int32(200370)
    FG_SHAFTENCODER_COMPENSATION_COUNT               = _int32(200371)
    FG_REVERSE_X                                     = _int32(300110)
    FG_TAPGEOMETRY                                   = _int32(300111)
    FG_VANTAGEPOINT                                  = _int32(300112)
    FG_SENSORWIDTH                                   = _int32(200220)
    FG_SENSORHEIGHT                                  = _int32(200221)
    FG_SYSTEMMONITOR_FPGA_VCC_BRAM                   = _int32(200372)
    FG_SYSTEMMONITOR_CURRENT_LINK_WIDTH              = _int32(200373)
    FG_SYSTEMMONITOR_CURRENT_LINK_SPEED              = _int32(200374)
    FG_SYSTEMMONITOR_PCIE_LINK_GEN2_CAPABLE          = _int32(200375)
    FG_SYSTEMMONITOR_PCIE_LINK_PARTNER_GEN2_CAPABLE  = _int32(200376)
    FG_SYSTEMMONITOR_PCIE_TRAINED_PAYLOAD_SIZE       = _int32(200377)
    FG_SYSTEMMONITOR_EXTENSION_CONNECTOR_PRESENT     = _int32(200378)
    FG_SYSTEMMONITOR_POCL_STATE_PORT_A               = _int32(200379)
    FG_SYSTEMMONITOR_POCL_STATE_PORT_B               = _int32(200380)
    FG_ALTERNATIVE_BOARD_DETECTION                   = _int32(200381)
    FG_CUSTOM_BIT_SHIFT_RIGHT                        = _int32(200396)
    FG_LINETRIGGERDEBOUNCING                         = _int32(110063)
    FG_IMGTRIGGER_ASYNC_HEIGHT                       = _int32(110067)
    FG_GPI                                           = _int32(140100)
    FG_FRONT_GPI                                     = _int32(200382)
    FG_TRIGGERIN_STATS_SOURCE                        = _int32(200398)
    FG_TRIGGERIN_STATS_POLARITY                      = _int32(200399)
    FG_TRIGGEROUT_SELECT_GPO_0                       = _int32(200384)
    FG_TRIGGEROUT_SELECT_GPO_1                       = _int32(200385)
    FG_TRIGGEROUT_SELECT_GPO_2                       = _int32(200386)
    FG_TRIGGEROUT_SELECT_GPO_3                       = _int32(200387)
    FG_TRIGGEROUT_SELECT_FRONT_GPO_0                 = _int32(200392)
    FG_TRIGGEROUT_SELECT_GPO_4                       = _int32(200388)
    FG_TRIGGEROUT_SELECT_GPO_5                       = _int32(200389)
    FG_TRIGGEROUT_SELECT_GPO_6                       = _int32(200390)
    FG_TRIGGEROUT_SELECT_GPO_7                       = _int32(200391)
    FG_TRIGGEROUT_SELECT_FRONT_GPO_1                 = _int32(200393)
    FG_OUTPUT_APPEND_NUMBER                          = _int32(200372)
    FG_LINE_PAYLOAD_SIZE                             = _int32(200400)
    FG_CLHS_TRIGGER_PULSE_MESSAGE                    = _int32(200401)
    FG_TRIGGEROUT_GPO_0_SOURCE                       = _int32(200384)
    FG_TRIGGEROUT_GPO_0_POLARITY                     = _int32(200410)
    FG_TRIGGEROUT_GPO_1_SOURCE                       = _int32(200385)
    FG_TRIGGEROUT_GPO_1_POLARITY                     = _int32(200411)
    FG_TRIGGEROUT_GPO_2_SOURCE                       = _int32(200386)
    FG_TRIGGEROUT_GPO_2_POLARITY                     = _int32(200412)
    FG_TRIGGEROUT_GPO_3_SOURCE                       = _int32(200387)
    FG_TRIGGEROUT_GPO_3_POLARITY                     = _int32(200413)
    FG_TRIGGEROUT_GPO_4_SOURCE                       = _int32(200388)
    FG_TRIGGEROUT_GPO_4_POLARITY                     = _int32(200414)
    FG_TRIGGEROUT_GPO_5_SOURCE                       = _int32(200389)
    FG_TRIGGEROUT_GPO_5_POLARITY                     = _int32(200415)
    FG_TRIGGEROUT_GPO_6_SOURCE                       = _int32(200390)
    FG_TRIGGEROUT_GPO_6_POLARITY                     = _int32(200416)
    FG_TRIGGEROUT_GPO_7_SOURCE                       = _int32(200391)
    FG_TRIGGEROUT_GPO_7_POLARITY                     = _int32(200417)
    FG_TRIGGEROUT_FRONT_GPO_0_SOURCE                 = _int32(200392)
    FG_TRIGGEROUT_FRONT_GPO_0_POLARITY               = _int32(200418)
    FG_TRIGGEROUT_FRONT_GPO_1_SOURCE                 = _int32(200393)
    FG_TRIGGEROUT_FRONT_GPO_1_POLARITY               = _int32(200419)
    FG_SIGNAL_ANALYZER_0_SOURCE                      = _int32(200420)
    FG_SIGNAL_ANALYZER_0_POLARITY                    = _int32(200421)
    FG_SIGNAL_ANALYZER_0_PERIOD_CURRENT              = _int32(200422)
    FG_SIGNAL_ANALYZER_0_PERIOD_MAX                  = _int32(200423)
    FG_SIGNAL_ANALYZER_0_PERIOD_MIN                  = _int32(200424)
    FG_SIGNAL_ANALYZER_0_PULSE_COUNT                 = _int32(200425)
    FG_SIGNAL_ANALYZER_1_SOURCE                      = _int32(200430)
    FG_SIGNAL_ANALYZER_1_POLARITY                    = _int32(200431)
    FG_SIGNAL_ANALYZER_1_PERIOD_CURRENT              = _int32(200432)
    FG_SIGNAL_ANALYZER_1_PERIOD_MAX                  = _int32(200433)
    FG_SIGNAL_ANALYZER_1_PERIOD_MIN                  = _int32(200434)
    FG_SIGNAL_ANALYZER_1_PULSE_COUNT                 = _int32(200435)
    FG_SIGNAL_ANALYZER_PULSE_COUNT_DIFFERENCE        = _int32(200439)
    FG_SIGNAL_ANALYZER_CLEAR                         = _int32(200438)
    FG_CUSTOM_SIGNAL_EVENT_0_SOURCE                  = _int32(200440)
    FG_CUSTOM_SIGNAL_EVENT_0_POLARITY                = _int32(200441)
    FG_CUSTOM_SIGNAL_EVENT_1_SOURCE                  = _int32(200442)
    FG_CUSTOM_SIGNAL_EVENT_1_POLARITY                = _int32(200443)
dFG_PARAM={a.name:a.value for a in FG_PARAM}
drFG_PARAM={a.value:a.name for a in FG_PARAM}


class FG_SIM_PATTERN(enum.IntEnum):
    FG_HORIZONTAL = _int32(1)
    FG_VERTICAL   = _int32(2)
    FG_DIAGONAL   = _int32(3)
dFG_SIM_PATTERN={a.name:a.value for a in FG_SIM_PATTERN}
drFG_SIM_PATTERN={a.value:a.name for a in FG_SIM_PATTERN}


class FG_SIM_SPEED(enum.IntEnum):
    FG_PIXEL_FREQUENCY = _int32(0)
    FG_LINERATE        = _int32(1)
    FG_FRAMERATE       = _int32(2)
dFG_SIM_SPEED={a.name:a.value for a in FG_SIM_SPEED}
drFG_SIM_SPEED={a.value:a.name for a in FG_SIM_SPEED}


class FG_LUT(enum.IntEnum):
    LUT_RED   = _int32(0)
    LUT_GREEN = _int32(1)
    LUT_BLUE  = _int32(2)
    LUT_GRAY  = _int32(3)
dFG_LUT={a.name:a.value for a in FG_LUT}
drFG_LUT={a.value:a.name for a in FG_LUT}


class FG_PORT(enum.IntEnum):
    PORT_A  = _int32(0)
    PORT_B  = _int32(1)
    PORT_C  = _int32(2)
    PORT_D  = _int32(3)
    PORT_AB = _int32(4)
dFG_PORT={a.name:a.value for a in FG_PORT}
drFG_PORT={a.value:a.name for a in FG_PORT}


class FG_COLOR(enum.IntEnum):
    FG_RED   = _int32(0)
    FG_GREEN = _int32(1)
    FG_BLUE  = _int32(2)
dFG_COLOR={a.name:a.value for a in FG_COLOR}
drFG_COLOR={a.value:a.name for a in FG_COLOR}


class FG_TRIGGER(enum.IntEnum):
    TRGINSOFTWARE        = _int32(-1)
    TRGINSRC_0           = _int32(0)
    TRGINSRC_1           = _int32(1)
    TRGINSRC_2           = _int32(2)
    TRGINSRC_3           = _int32(3)
    TRGINSRC_4           = _int32(4)
    TRGINSRC_5           = _int32(5)
    TRGINSRC_6           = _int32(6)
    TRGINSRC_7           = _int32(7)
    TRGINSRC_GPI_0       = _int32(0)
    TRGINSRC_GPI_1       = _int32(1)
    TRGINSRC_GPI_2       = _int32(2)
    TRGINSRC_GPI_3       = _int32(3)
    TRGINSRC_GPI_4       = _int32(4)
    TRGINSRC_GPI_5       = _int32(5)
    TRGINSRC_GPI_6       = _int32(6)
    TRGINSRC_GPI_7       = _int32(7)
    TRGINSRC_FRONT_GPI_0 = _int32(16)
    TRGINSRC_FRONT_GPI_1 = _int32(17)
    TRGINSRC_FRONT_GPI_2 = _int32(18)
    TRGINSRC_FRONT_GPI_3 = _int32(19)
dFG_TRIGGER={a.name:a.value for a in FG_TRIGGER}
drFG_TRIGGER={a.value:a.name for a in FG_TRIGGER}


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


class FG_APPLET(enum.IntEnum):
    SINGLE_AREA_GRAY                    = _int32(0x10)
    SINGLE_AREA_2DSHADING               = _int32(0x11)
    DUAL_AREA_GRAY                      = _int32(0x20)
    SINGLE_AREA_BAYER                   = _int32(0x30)
    DUAL_AREA_BAYER                     = _int32(0x31)
    SINGLE_AREA_GRAY_SHADING            = _int32(0x40)
    SDRAM_ACCESS                        = _int32(0x41)
    SINGLE_LINE_GRAY                    = _int32(0x50)
    SINGLE_LINE_RGB                     = _int32(0x60)
    DUAL_LINE_RGB                       = _int32(0x61)
    DUAL_LINE_RGB_SHADING               = _int32(0x62)
    DUAL_LINE_GRAY                      = _int32(0x70)
    VISIGLAS                            = _int32(0x80)
    TRUMPFINESS                         = _int32(0x81)
    SOUDRONIC                           = _int32(0x82)
    SINGLEHIGHPRECISION                 = _int32(0x83)
    SINGLE_AREA_GRAY_OFFSET             = _int32(0x84)
    SINGLE_AREA_HSI                     = _int32(0x90)
    SINGLE_AREA_RGB                     = _int32(0xa0)
    DUAL_AREA_RGB                       = _int32(0xb0)
    SINGLE_AREA_RGB_SEPARATION          = _int32(0xb1)
    MEDIUM_LINE_RGB                     = _int32(0xb2)
    MEDIUM_LINE_GRAY                    = _int32(0xb3)
    SINGLE_FAST_CONFIG                  = _int32(0xb5)
    FASTCONFIG_SINGLE_AREA_GRAY         = _int32(0xb5)
    SINGLE_AREA_GRAY_XXL                = _int32(0x110)
    SINGLE_AREA_2DSHADING_XXL           = _int32(0x111)
    DUAL_AREA_GRAY_XXL                  = _int32(0x120)
    SINGLE_AREA_BAYER_XXL               = _int32(0x130)
    DUAL_AREA_BAYER_XXL                 = _int32(0x131)
    SINGLE_AREA_GRAY_SHADING_XXL        = _int32(0x140)
    SDRAM_ACCESS_XXL                    = _int32(0x141)
    SINGLE_LINE_GRAY_XXL                = _int32(0x150)
    SINGLE_LINE_RGB_XXL                 = _int32(0x160)
    DUAL_LINE_RGB_XXL                   = _int32(0x161)
    DUAL_LINE_RGB_SHADING_XXL           = _int32(0x162)
    DUAL_LINE_GRAY_XXL                  = _int32(0x170)
    SINGLE_AREA_HSI_XXL                 = _int32(0x190)
    SINGLE_AREA_RGB_XXL                 = _int32(0x1a0)
    DUAL_AREA_RGB_XXL                   = _int32(0x1b0)
    SINGLE_AREA_RGB_SEPARATION_XXL      = _int32(0x1b1)
    MEDIUM_LINE_RGB_XXL                 = _int32(0x1b2)
    MEDIUM_LINE_GRAY_XXL                = _int32(0x1b3)
    MEDIUM_AREA_GRAY_XXL                = _int32(0x1b4)
    MEDIUM_AREA_RGB_XXL                 = _int32(0x1b5)
    SINGLE_AREA_BAYER12_XXL             = _int32(0x1c0)
    DUAL_AREA_GRAY12_XXL                = _int32(0x1d0)
    SINGLE_LINE_GRAY12_XXL              = _int32(0x1d1)
    DUAL_AREA_RGB36_XXL                 = _int32(0x1d2)
    DUAL_LINE_GRAY12_XXL                = _int32(0x1d3)
    MEDIUM_LINE_GRAY12_XXL              = _int32(0x1d4)
    SINGLE_AREA_GRAY12_XXL              = _int32(0x1d5)
    DUAL_LINE_RGB36_XXL                 = _int32(0x1d6)
    SINGLE_AREA_RGB36_XXL               = _int32(0x1d7)
    SINGLE_LINE_RGB36_XXL               = _int32(0x1d8)
    DUAL_AREA_BAYER12_XXL               = _int32(0x1d9)
    SINGLE_AREA_2DSHADING12_XXL         = _int32(0x1da)
    SINGLE_LINE_RGB24_XXL               = _int32(0x1db)
    LSC1020XXL                          = _int32(0x500)
    LSC1020JPGXXL                       = _int32(0x501)
    CLSC2050                            = _int32(0x502)
    CLSC2050JPGXXL                      = _int32(0x503)
    SEQUENCE_EXTRACTOR                  = _int32(0x510)
    SAG_COMPRESSION                     = _int32(0x520)
    MEDIUM_LINE_GRAY_FIR_XXL            = _int32(0x530)
    DUAL_LINE_RGB_SORTING_XXL           = _int32(0x540)
    SINGLE_LINE_GRAY_2X12_XXL           = _int32(0x550)
    MEDIUM_LINE_GRAY12                  = _int32(0x560)
    SINGLE_LINE_RGB36PIPELINE2_XXL      = _int32(0x570)
    DUAL_AREA_GRAY_16                   = _int32(0x580)
    DUAL_AREA_GRAY16_ME4BASEX1          = _int32(0xa400010)
    DUAL_AREA_RGB48_ME4BASEX1           = _int32(0xa400020)
    DUAL_LINE_GRAY16_ME4BASEX1          = _int32(0xa400030)
    DUAL_LINE_RGB48_ME4BASEX1           = _int32(0xa400040)
    MEDIUM_AREA_GRAY16_ME4BASEX1        = _int32(0xa400050)
    MEDIUM_AREA_RGB36_ME4BASEX1         = _int32(0xa400060)
    MEDIUM_LINE_GRAY16_ME4BASEX1        = _int32(0xa400070)
    MEDIUM_LINE_RGB36_ME4BASEX1         = _int32(0xa400080)
    DUAL_AREA_BAYER12_ME4FULLX1         = _int32(0xa410010)
    DUAL_AREA_GRAY16_ME4FULLX1          = _int32(0xa410020)
    DUAL_AREA_RGB48_ME4FULLX1           = _int32(0xa410030)
    DUAL_LINE_GRAY16_ME4FULLX1          = _int32(0xa410040)
    DUAL_LINE_RGB30_ME4FULLX1           = _int32(0xa410050)
    FULL_AREA_GRAY8_ME4FULLX1           = _int32(0xa410060)
    FULL_LINE_GRAY8_ME4FULLX1           = _int32(0xa410070)
    MEDIUM_AREA_GRAY16_ME4FULLX1        = _int32(0xa410080)
    MEDIUM_AREA_RGB36_ME4FULLX1         = _int32(0xa410090)
    MEDIUM_LINE_GRAY16_ME4FULLX1        = _int32(0xa4100a0)
    MEDIUM_LINE_RGB36_ME4FULLX1         = _int32(0xa4100b0)
    SINGLE_AREA_BAYERHQ_ME4FULLX1       = _int32(0xa4100c0)
    SINGLE_AREA_GRAY2DSHADING_ME4FULLX1 = _int32(0xa4100d0)
    DUAL_AREA_BAYER12_ME4FULLX4         = _int32(0xa440010)
    DUAL_AREA_GRAY16_ME4FULLX4          = _int32(0xa440020)
    DUAL_AREA_RGB48_ME4FULLX4           = _int32(0xa440030)
    DUAL_LINE_GRAY16_ME4FULLX4          = _int32(0xa440040)
    DUAL_LINE_RGB30_ME4FULLX4           = _int32(0xa440050)
    FULL_AREA_GRAY8_ME4FULLX4           = _int32(0xa440060)
    FULL_LINE_GRAY8_ME4FULLX4           = _int32(0xa440070)
    MEDIUM_AREA_GRAY16_ME4FULLX4        = _int32(0xa440080)
    MEDIUM_AREA_RGB36_ME4FULLX4         = _int32(0xa440090)
    MEDIUM_LINE_GRAY16_ME4FULLX4        = _int32(0xa4400a0)
    MEDIUM_LINE_RGB36_ME4FULLX4         = _int32(0xa4400b0)
    SINGLE_AREA_BAYERHQ_ME4FULLX4       = _int32(0xa4400c0)
    SINGLE_AREA_GRAY2DSHADING_ME4FULLX4 = _int32(0xa4400d0)
    QUAD_AREA_BAYER24_ME4GBEX4          = _int32(0xe440010)
    QUAD_AREA_GRAY16_ME4GBEX4           = _int32(0xe440020)
    QUAD_AREA_RG24_ME4GBEX4             = _int32(0xe440030)
    QUAD_AREA_RGB48_ME4GBEX4            = _int32(0xe440040)
    QUAD_AREA_GRAY8_ME4GBEX4            = _int32(0xe440050)
    QUAD_LINE_GRAY16_ME4GBEX4           = _int32(0xe440060)
    QUAD_LINE_RGB24_ME4GBEX4            = _int32(0xe440070)
    QUAD_LINE_GRAY8_ME4GBEX4            = _int32(0xe440080)
dFG_APPLET={a.name:a.value for a in FG_APPLET}
drFG_APPLET={a.value:a.name for a in FG_APPLET}


class ACQAPPLET(enum.IntEnum):
    LUT_TYPE_PROCESSING         = _int32(3)
    LUT_TYPE_CUSTOM             = _int32(0)
    LUT_IMPLEMENTATION_FULL_LUT = _int32(0)
    LUT_IMPLEMENTATION_KNEELUT  = _int32(1)
    FG_MAX_VALUE                = _int32(0)
    FG_MEAN_VALUE               = _int32(1)
    FG_MAX_RANGE                = _int32(2)
    FG_CUSTOM_VALUE             = _int32(3)
    FG_APPLY                    = _int32(1)
    ATM_GENERATOR               = _int32(1)
    ATM_EXTERNAL                = _int32(2)
    ATM_SOFTWARE                = _int32(4)
    TS_ACTIVE                   = _int32(0)
    TS_ASYNC_STOP               = _int32(1)
    TS_SYNC_STOP                = _int32(2)
    FG_ONE                      = _int32(1)
    FG_ZERO                     = _int32(0)
    IS_BUSY                     = _int32(1)
    IS_NOT_BUSY                 = _int32(0)
dACQAPPLET={a.name:a.value for a in ACQAPPLET}
drACQAPPLET={a.value:a.name for a in ACQAPPLET}


class FG_PULSEGEN(enum.IntEnum):
    PULSEGEN0           = _int32(0)
    PULSEGEN1           = _int32(1)
    PULSEGEN2           = _int32(2)
    PULSEGEN3           = _int32(3)
    GND                 = _int32(4)
    VCC                 = _int32(5)
    NOT_PULSEGEN0       = _int32(6)
    NOT_PULSEGEN1       = _int32(7)
    NOT_PULSEGEN2       = _int32(8)
    NOT_PULSEGEN3       = _int32(9)
    CAM_A_PULSEGEN0     = _int32(50)
    CAM_A_PULSEGEN1     = _int32(51)
    CAM_A_PULSEGEN2     = _int32(52)
    CAM_A_PULSEGEN3     = _int32(53)
    CAM_A_NOT_PULSEGEN0 = _int32(60)
    CAM_A_NOT_PULSEGEN1 = _int32(61)
    CAM_A_NOT_PULSEGEN2 = _int32(62)
    CAM_A_NOT_PULSEGEN3 = _int32(63)
    CAM_B_PULSEGEN0     = _int32(54)
    CAM_B_PULSEGEN1     = _int32(55)
    CAM_B_PULSEGEN2     = _int32(56)
    CAM_B_PULSEGEN3     = _int32(57)
    CAM_B_NOT_PULSEGEN0 = _int32(64)
    CAM_B_NOT_PULSEGEN1 = _int32(65)
    CAM_B_NOT_PULSEGEN2 = _int32(66)
    CAM_B_NOT_PULSEGEN3 = _int32(67)
    CAM_C_PULSEGEN0     = _int32(68)
    CAM_C_PULSEGEN1     = _int32(69)
    CAM_C_PULSEGEN2     = _int32(70)
    CAM_C_PULSEGEN3     = _int32(71)
    CAM_C_NOT_PULSEGEN0 = _int32(76)
    CAM_C_NOT_PULSEGEN1 = _int32(77)
    CAM_C_NOT_PULSEGEN2 = _int32(78)
    CAM_C_NOT_PULSEGEN3 = _int32(79)
    CAM_D_PULSEGEN0     = _int32(72)
    CAM_D_PULSEGEN1     = _int32(73)
    CAM_D_PULSEGEN2     = _int32(74)
    CAM_D_PULSEGEN3     = _int32(75)
    CAM_D_NOT_PULSEGEN0 = _int32(80)
    CAM_D_NOT_PULSEGEN1 = _int32(81)
    CAM_D_NOT_PULSEGEN2 = _int32(82)
    CAM_D_NOT_PULSEGEN3 = _int32(83)
dFG_PULSEGEN={a.name:a.value for a in FG_PULSEGEN}
drFG_PULSEGEN={a.value:a.name for a in FG_PULSEGEN}


class FG_BYPASS(enum.IntEnum):
    INPUT_BYPASS           = _int32(10)
    NOT_INPUT_BYPASS       = _int32(11)
    BYPASS_GPI_0           = _int32(10)
    NOT_BYPASS_GPI_0       = _int32(20)
    BYPASS_GPI_1           = _int32(11)
    NOT_BYPASS_GPI_1       = _int32(21)
    BYPASS_GPI_2           = _int32(12)
    NOT_BYPASS_GPI_2       = _int32(22)
    BYPASS_GPI_3           = _int32(13)
    NOT_BYPASS_GPI_3       = _int32(23)
    BYPASS_GPI_4           = _int32(14)
    NOT_BYPASS_GPI_4       = _int32(24)
    BYPASS_GPI_5           = _int32(15)
    NOT_BYPASS_GPI_5       = _int32(25)
    BYPASS_GPI_6           = _int32(16)
    NOT_BYPASS_GPI_6       = _int32(26)
    BYPASS_GPI_7           = _int32(17)
    NOT_BYPASS_GPI_7       = _int32(27)
    BYPASS_FRONT_GPI_0     = _int32(30)
    NOT_BYPASS_FRONT_GPI_0 = _int32(40)
    BYPASS_FRONT_GPI_1     = _int32(31)
    NOT_BYPASS_FRONT_GPI_1 = _int32(41)
    BYPASS_FRONT_GPI_2     = _int32(32)
    NOT_BYPASS_FRONT_GPI_2 = _int32(42)
    BYPASS_FRONT_GPI_3     = _int32(33)
    NOT_BYPASS_FRONT_GPI_3 = _int32(43)
dFG_BYPASS={a.name:a.value for a in FG_BYPASS}
drFG_BYPASS={a.value:a.name for a in FG_BYPASS}


class FG_POCL(enum.IntEnum):
    FG_INITIALIZE                 = _int32(0)
    FG_POCL_CONNECTION_SENSE      = _int32(1)
    FG_POCL_CAMERA_DETECTED       = _int32(2)
    FG_POCL_CAMERA_CLOCK_DETECTED = _int32(3)
    FG_CL_CAMERA_DETECTED         = _int32(4)
    FG_CL_CAMERA_CLOCK_DETECTED   = _int32(5)
    FG_POCL_WAIT_FOR_CONNECTION   = _int32(6)
    FG_CL_WAIT_FOR_CONNECTION     = _int32(7)
    FG_POCL_DISABLED              = _int32(8)
dFG_POCL={a.name:a.value for a in FG_POCL}
drFG_POCL={a.value:a.name for a in FG_POCL}


class FG_LINEORDER(enum.IntEnum):
    FG_LINEORDER     = _int32(920000)
    FG_LINEORDER_RGB = _int32(0)
    FG_LINEORDER_BGR = _int32(1)
dFG_LINEORDER={a.name:a.value for a in FG_LINEORDER}
drFG_LINEORDER={a.value:a.name for a in FG_LINEORDER}


class FG_ALARM(enum.IntEnum):
    DEVICE_ALARM_TEMPERATURE = (0x00000001)
    DEVICE_ALARM_PHY         = (0x00000002)
    DEVICE_ALARM_POE         = (0x00000004)
    DEVICE_ALARM_ACL_0       = (0x00000010)
    DEVICE_ALARM_ACL_1       = (0x00000020)
    DEVICE_ALARM_ACL_2       = (0x00000040)
    DEVICE_ALARM_ACL_3       = (0x00000080)
    DEVICE_STATUS_CONFIGURED = (0x00000001)
    DEVICE_STATUS_LOCKED     = (0x00000002)
    DEVICE_STATUS_OVERTEMP   = (0x40000000)
    DEVICE_STATUS_DEAD       = (0x80000000)
dFG_ALARM={a.name:a.value for a in FG_ALARM}
drFG_ALARM={a.value:a.name for a in FG_ALARM}





##### TYPE DEFINITIONS #####





##### FUNCTION DEFINITIONS #####


