##########   This file is generated automatically based on PCO_err.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 #####


class PCO_ERR(enum.IntEnum):
    PCO_NOERROR                                        = (0x00000000)
    PCO_ERROR_CODE_MASK                                = (0x00000FFF)
    PCO_ERROR_LAYER_MASK                               = (0x0000F000)
    PCO_ERROR_DEVICE_MASK                              = (0x00FF0000)
    PCO_ERROR_RESERVED_MASK                            = (0x1F000000)
    PCO_ERROR_IS_COMMON                                = (0x20000000)
    PCO_ERROR_IS_WARNING                               = (0x40000000)
    PCO_ERROR_IS_ERROR                                 = (0x80000000)
    PCO_ERROR_FIRMWARE                                 = (0x00001000)
    PCO_ERROR_DRIVER                                   = (0x00002000)
    PCO_ERROR_SDKDLL                                   = (0x00003000)
    PCO_ERROR_APPLICATION                              = (0x00004000)
    SC2_ERROR_POWER_CPLD                               = (0x00010000)
    SC2_ERROR_HEAD_UP                                  = (0x00020000)
    SC2_ERROR_MAIN_UP                                  = (0x00030000)
    SC2_ERROR_FWIRE_UP                                 = (0x00040000)
    SC2_ERROR_MAIN_FPGA                                = (0x00050000)
    SC2_ERROR_HEAD_FPGA                                = (0x00060000)
    SC2_ERROR_MAIN_BOARD                               = (0x00070000)
    SC2_ERROR_HEAD_CPLD                                = (0x00080000)
    SC2_ERROR_SENSOR                                   = (0x00090000)
    SC2_ERROR_POWER                                    = (0x000D0000)
    SC2_ERROR_GIGE                                     = (0x000E0000)
    SC2_ERROR_USB                                      = (0x000F0000)
    SC2_ERROR_BOOT_FPGA                                = (0x00100000)
    SC2_ERROR_BOOT_UP                                  = (0x00110000)
    SC2_ERROR_SDKDLL                                   = (0x000A0000)
    PCI540_ERROR_DRIVER                                = (0x00200000)
    PCI525_ERROR_DRIVER                                = (0x00210000)
    PCO_ERROR_DRIVER_FIREWIRE                          = (0x00300000)
    PCO_ERROR_DRIVER_USB                               = (0x00310000)
    PCO_ERROR_DRIVER_GIGE                              = (0x00320000)
    PCO_ERROR_DRIVER_CAMERALINK                        = (0x00330000)
    PCO_ERROR_DRIVER_USB3                              = (0x00340000)
    PCO_ERROR_DRIVER_WLAN                              = (0x00350000)
    SC2_ERROR_DRIVER                                   = (0x000B0000)
    PCO_ERROR_PCO_SDKDLL                               = (0x000A0000)
    PCO_ERROR_CONVERTDLL                               = (0x00110000)
    PCO_ERROR_FILEDLL                                  = (0x00120000)
    PCO_ERROR_JAVANATIVEDLL                            = (0x00130000)
    PCO_ERROR_PROGLIB                                  = (0x00140000)
    PCO_ERROR_CAMWARE                                  = (0x00100000)
    PCO_ERROR_PROGRAMMER                               = (0x00110000)
    PCO_ERROR_SDKAPPLICATION                           = (0x00120000)
    PCO_ERROR_WRONGVALUE                               = (0xA0000001)
    PCO_ERROR_INVALIDHANDLE                            = (0xA0000002)
    PCO_ERROR_NOMEMORY                                 = (0xA0000003)
    PCO_ERROR_NOFILE                                   = (0xA0000004)
    PCO_ERROR_TIMEOUT                                  = (0xA0000005)
    PCO_ERROR_BUFFERSIZE                               = (0xA0000006)
    PCO_ERROR_NOTINIT                                  = (0xA0000007)
    PCO_ERROR_DISKFULL                                 = (0xA0000008)
    PCO_ERROR_VALIDATION                               = (0xA0000010)
    PCO_ERROR_LIBRARYVERSION                           = (0xA0000011)
    PCO_ERROR_CAMERAVERSION                            = (0xA0000012)
    PCO_ERROR_NOTAVAILABLE                             = (0xA0000013)
    PCO_ERROR_FILE_OPEN                                = (0xA0000018)
    PCO_ERROR_FILE_READ                                = (0xA0000019)
    PCO_ERROR_FILE_WRITE                               = (0xA000001A)
    PCO_ERROR_FILE_UNKNOWN_FORMAT                      = (0xA000001B)
    PCO_ERROR_FILE_CHECKSUM                            = (0xA000001C)
    PCO_ERROR_FILE_WRONG_VALUE                         = (0xA000001D)
    PCO_ERROR_FILE_WRONG_VERSION                       = (0xA000001E)
    PCO_ERROR_DRIVER_NOTINIT                           = (0x80002001)
    PCO_ERROR_DRIVER_WRONGOS                           = (0x80002005)
    PCO_ERROR_DRIVER_NODRIVER                          = (0x80002006)
    PCO_ERROR_DRIVER_IOFAILURE                         = (0x80002007)
    PCO_ERROR_DRIVER_CHECKSUMERROR                     = (0x80002008)
    PCO_ERROR_DRIVER_INVMODE                           = (0x80002009)
    PCO_ERROR_DRIVER_DEVICEBUSY                        = (0x8000200B)
    PCO_ERROR_DRIVER_DATAERROR                         = (0x8000200C)
    PCO_ERROR_DRIVER_NOFUNCTION                        = (0x8000200D)
    PCO_ERROR_DRIVER_KERNELMEMALLOCFAILED              = (0x8000200E)
    PCO_ERROR_DRIVER_BUFFER_CANCELLED                  = (0x80002010)
    PCO_ERROR_DRIVER_INBUFFER_SIZE                     = (0x80002011)
    PCO_ERROR_DRIVER_OUTBUFFER_SIZE                    = (0x80002012)
    PCO_ERROR_DRIVER_FUNCTION_NOT_SUPPORTED            = (0x80002013)
    PCO_ERROR_DRIVER_BUFFER_SYSTEMOFF                  = (0x80002014)
    PCO_ERROR_DRIVER_DEVICEOFF                         = (0x80002015)
    PCO_ERROR_DRIVER_RESOURCE                          = (0x80002016)
    PCO_ERROR_DRIVER_BUSRESET                          = (0x80002017)
    PCO_ERROR_DRIVER_BUFFER_LOSTIMAGE                  = (0x80002018)
    PCO_ERROR_DRIVER_SYSERR                            = (0x80002020)
    PCO_ERROR_DRIVER_REGERR                            = (0x80002022)
    PCO_ERROR_DRIVER_WRONGVERS                         = (0x80002023)
    PCO_ERROR_DRIVER_FILE_READ_ERR                     = (0x80002024)
    PCO_ERROR_DRIVER_FILE_WRITE_ERR                    = (0x80002025)
    PCO_ERROR_DRIVER_LUT_MISMATCH                      = (0x80002026)
    PCO_ERROR_DRIVER_FORMAT_NOT_SUPPORTED              = (0x80002027)
    PCO_ERROR_DRIVER_BUFFER_DMASIZE                    = (0x80002028)
    PCO_ERROR_DRIVER_WRONG_ATMEL_FOUND                 = (0x80002029)
    PCO_ERROR_DRIVER_WRONG_ATMEL_SIZE                  = (0x8000202A)
    PCO_ERROR_DRIVER_WRONG_ATMEL_DEVICE                = (0x8000202B)
    PCO_ERROR_DRIVER_WRONG_BOARD                       = (0x8000202C)
    PCO_ERROR_DRIVER_READ_FLASH_FAILED                 = (0x8000202D)
    PCO_ERROR_DRIVER_HEAD_VERIFY_FAILED                = (0x8000202E)
    PCO_ERROR_DRIVER_HEAD_BOARD_MISMATCH               = (0x8000202F)
    PCO_ERROR_DRIVER_HEAD_LOST                         = (0x80002030)
    PCO_ERROR_DRIVER_HEAD_POWER_DOWN                   = (0x80002031)
    PCO_ERROR_DRIVER_CAMERA_BUSY                       = (0x80002032)
    PCO_ERROR_DRIVER_BUFFERS_PENDING                   = (0x80002033)
    PCO_ERROR_SDKDLL_NESTEDBUFFERSIZE                  = (0x80003001)
    PCO_ERROR_SDKDLL_BUFFERSIZE                        = (0x80003002)
    PCO_ERROR_SDKDLL_DIALOGNOTAVAILABLE                = (0x80003003)
    PCO_ERROR_SDKDLL_NOTAVAILABLE                      = (0x80003004)
    PCO_ERROR_SDKDLL_SYSERR                            = (0x80003005)
    PCO_ERROR_SDKDLL_BADMEMORY                         = (0x80003006)
    PCO_ERROR_SDKDLL_BUFCNTEXHAUSTED                   = (0x80003008)
    PCO_ERROR_SDKDLL_ALREADYOPENED                     = (0x80003009)
    PCO_ERROR_SDKDLL_ERRORDESTROYWND                   = (0x8000300A)
    PCO_ERROR_SDKDLL_BUFFERNOTVALID                    = (0x8000300B)
    PCO_ERROR_SDKDLL_WRONGBUFFERNR                     = (0x8000300C)
    PCO_ERROR_SDKDLL_DLLNOTFOUND                       = (0x8000300D)
    PCO_ERROR_SDKDLL_BUFALREADYASSIGNED                = (0x8000300E)
    PCO_ERROR_SDKDLL_EVENTALREADYASSIGNED              = (0x8000300F)
    PCO_ERROR_SDKDLL_RECORDINGMUSTBEON                 = (0x80003010)
    PCO_ERROR_SDKDLL_DLLNOTFOUND_DIVZERO               = (0x80003011)
    PCO_ERROR_SDKDLL_BUFFERALREADYQUEUED               = (0x80003012)
    PCO_ERROR_SDKDLL_BUFFERNOTQUEUED                   = (0x80003013)
    PCO_WARNING_SDKDLL_BUFFER_STILL_ALLOKATED          = (0xC0003001)
    PCO_WARNING_SDKDLL_NO_IMAGE_BOARD                  = (0xC0003002)
    PCO_WARNING_SDKDLL_COC_VALCHANGE                   = (0xC0003003)
    PCO_WARNING_SDKDLL_COC_STR_SHORT                   = (0xC0003004)
    PCO_ERROR_SDKDLL_RECORDER_RECORD_MUST_BE_OFF       = (0x80003021)
    PCO_ERROR_SDKDLL_RECORDER_ACQUISITION_MUST_BE_OFF  = (0x80003022)
    PCO_ERROR_SDKDLL_RECORDER_SETTINGS_CHANGED         = (0x80003023)
    PCO_ERROR_SDKDLL_RECORDER_NO_IMAGES_AVAILABLE      = (0x80003024)
    PCO_WARNING_SDKDLL_RECORDER_FILES_EXIST            = (0xC0003011)
    PCO_ERROR_APPLICATION_PICTURETIMEOUT               = (0x80004001)
    PCO_ERROR_APPLICATION_SAVEFILE                     = (0x80004002)
    PCO_ERROR_APPLICATION_FUNCTIONNOTFOUND             = (0x80004003)
    PCO_ERROR_APPLICATION_DLLNOTFOUND                  = (0x80004004)
    PCO_ERROR_APPLICATION_WRONGBOARDNR                 = (0x80004005)
    PCO_ERROR_APPLICATION_FUNCTIONNOTSUPPORTED         = (0x80004006)
    PCO_ERROR_APPLICATION_WRONGRES                     = (0x80004007)
    PCO_ERROR_APPLICATION_DISKFULL                     = (0x80004008)
    PCO_ERROR_APPLICATION_SET_VALUES                   = (0x80004009)
    PCO_WARNING_APPLICATION_RECORDERFULL               = (0xC0004001)
    PCO_WARNING_APPLICATION_SETTINGSADAPTED            = (0xC0004002)
    PCO_WARNING_APPLICATION_RECORDERWRAPPED            = (0xC0004003)
    PCO_ERROR_APPLICATION_CAMERATYPE                   = (0x80004010)
    PCO_ERROR_APPLICATION_FIRMWARE_CONSTRAINT          = (0x80004011)
    PCO_ERROR_APPLICATION_VARIANT_CONSTRAINT           = (0x80004012)
    PCO_ERROR_APPLICATION_SERIALNUM                    = (0x80004013)
    PCO_ERROR_APPLICATION_DEVICECOUNT                  = (0x80004014)
    PCO_ERROR_APPLICATION_DEVCODE                      = (0x80004015)
    PCO_ERROR_FIRMWARE_TELETIMEOUT                     = (0x80001001)
    PCO_ERROR_FIRMWARE_WRONGCHECKSUM                   = (0x80001002)
    PCO_ERROR_FIRMWARE_NOACK                           = (0x80001003)
    PCO_ERROR_FIRMWARE_WRONGSIZEARR                    = (0x80001004)
    PCO_ERROR_FIRMWARE_DATAINKONSISTENT                = (0x80001005)
    PCO_ERROR_FIRMWARE_UNKNOWN_COMMAND                 = (0x80001006)
    PCO_ERROR_FIRMWARE_INITFAILED                      = (0x80001008)
    PCO_ERROR_FIRMWARE_CONFIGFAILED                    = (0x80001009)
    PCO_ERROR_FIRMWARE_HIGH_TEMPERATURE                = (0x8000100A)
    PCO_ERROR_FIRMWARE_VOLTAGEOUTOFRANGE               = (0x8000100B)
    PCO_ERROR_FIRMWARE_I2CNORESPONSE                   = (0x8000100C)
    PCO_ERROR_FIRMWARE_CHECKSUMCODEFAILED              = (0x8000100D)
    PCO_ERROR_FIRMWARE_ADDRESSOUTOFRANGE               = (0x8000100E)
    PCO_ERROR_FIRMWARE_NODEVICEOPENED                  = (0x8000100F)
    PCO_ERROR_FIRMWARE_BUFFERTOSMALL                   = (0x80001010)
    PCO_ERROR_FIRMWARE_TOMUCHDATA                      = (0x80001011)
    PCO_ERROR_FIRMWARE_WRITEERROR                      = (0x80001012)
    PCO_ERROR_FIRMWARE_READERROR                       = (0x80001013)
    PCO_ERROR_FIRMWARE_NOTRENDERED                     = (0x80001014)
    PCO_ERROR_FIRMWARE_NOHANDLEAVAILABLE               = (0x80001015)
    PCO_ERROR_FIRMWARE_DATAOUTOFRANGE                  = (0x80001016)
    PCO_ERROR_FIRMWARE_NOTPOSSIBLE                     = (0x80001017)
    PCO_ERROR_FIRMWARE_UNSUPPORTED_SDRAM               = (0x80001018)
    PCO_ERROR_FIRMWARE_DIFFERENT_SDRAMS                = (0x80001019)
    PCO_ERROR_FIRMWARE_ONLY_ONE_SDRAM                  = (0x8000101A)
    PCO_ERROR_FIRMWARE_NO_SDRAM_MOUNTED                = (0x8000101B)
    PCO_ERROR_FIRMWARE_SEGMENTS_TOO_LARGE              = (0x8000101C)
    PCO_ERROR_FIRMWARE_SEGMENT_OUT_OF_RANGE            = (0x8000101D)
    PCO_ERROR_FIRMWARE_VALUE_OUT_OF_RANGE              = (0x8000101E)
    PCO_ERROR_FIRMWARE_IMAGE_READ_NOT_POSSIBLE         = (0x8000101F)
    PCO_ERROR_FIRMWARE_NOT_SUPPORTED                   = (0x80001020)
    PCO_ERROR_FIRMWARE_ARM_NOT_SUCCESSFUL              = (0x80001021)
    PCO_ERROR_FIRMWARE_RECORD_MUST_BE_OFF              = (0x80001022)
    PCO_ERROR_FIRMWARE_SEGMENT_TOO_SMALL               = (0x80001025)
    PCO_ERROR_FIRMWARE_COC_BUFFER_TO_SMALL             = (0x80001026)
    PCO_ERROR_FIRMWARE_COC_DATAINKONSISTENT            = (0x80001027)
    PCO_ERROR_FIRMWARE_CORRECTION_DATA_INVALID         = (0x80001028)
    PCO_ERROR_FIRMWARE_CCDCAL_NOT_FINISHED             = (0x80001029)
    PCO_ERROR_FIRMWARE_IMAGE_TRANSFER_PENDING          = (0x8000102A)
    PCO_ERROR_FIRMWARE_COC_TRIGGER_INVALID             = (0x80001030)
    PCO_ERROR_FIRMWARE_COC_PIXELRATE_INVALID           = (0x80001031)
    PCO_ERROR_FIRMWARE_COC_POWERDOWN_INVALID           = (0x80001032)
    PCO_ERROR_FIRMWARE_COC_SENSORFORMAT_INVALID        = (0x80001033)
    PCO_ERROR_FIRMWARE_COC_ROI_BINNING_INVALID         = (0x80001034)
    PCO_ERROR_FIRMWARE_COC_ROI_DOUBLE_INVALID          = (0x80001035)
    PCO_ERROR_FIRMWARE_COC_MODE_INVALID                = (0x80001036)
    PCO_ERROR_FIRMWARE_COC_DELAY_INVALID               = (0x80001037)
    PCO_ERROR_FIRMWARE_COC_EXPOS_INVALID               = (0x80001038)
    PCO_ERROR_FIRMWARE_COC_TIMEBASE_INVALID            = (0x80001039)
    PCO_ERROR_FIRMWARE_ACQUIRE_MODE_INVALID            = (0x8000103A)
    PCO_ERROR_FIRMWARE_IF_SETTINGS_INVALID             = (0x8000103B)
    PCO_ERROR_FIRMWARE_ROI_NOT_SYMMETRICAL             = (0x8000103C)
    PCO_ERROR_FIRMWARE_ROI_STEPPING                    = (0x8000103D)
    PCO_ERROR_FIRMWARE_ROI_SETTING                     = (0x8000103E)
    PCO_ERROR_FIRMWARE_COC_PERIOD_INVALID              = (0x80001040)
    PCO_ERROR_FIRMWARE_COC_MONITOR_INVALID             = (0x80001041)
    PCO_ERROR_FIRMWARE_UNKNOWN_DEVICE                  = (0x80001050)
    PCO_ERROR_FIRMWARE_DEVICE_NOT_AVAIL                = (0x80001051)
    PCO_ERROR_FIRMWARE_DEVICE_IS_OPEN                  = (0x80001052)
    PCO_ERROR_FIRMWARE_DEVICE_NOT_OPEN                 = (0x80001053)
    PCO_ERROR_FIRMWARE_NO_DEVICE_RESPONSE              = (0x80001054)
    PCO_ERROR_FIRMWARE_WRONG_DEVICE_TYPE               = (0x80001055)
    PCO_ERROR_FIRMWARE_ERASE_FLASH_FAILED              = (0x80001056)
    PCO_ERROR_FIRMWARE_DEVICE_NOT_BLANK                = (0x80001057)
    PCO_ERROR_FIRMWARE_ADDRESS_OUT_OF_RANGE            = (0x80001058)
    PCO_ERROR_FIRMWARE_PROG_FLASH_FAILED               = (0x80001059)
    PCO_ERROR_FIRMWARE_PROG_EEPROM_FAILED              = (0x8000105A)
    PCO_ERROR_FIRMWARE_READ_FLASH_FAILED               = (0x8000105B)
    PCO_ERROR_FIRMWARE_READ_EEPROM_FAILED              = (0x8000105C)
    PCO_ERROR_FIRMWARE_GIGE_COMMAND_IS_INVALID         = (0x080001080)
    PCO_ERROR_FIRMWARE_GIGE_UART_NOT_OPERATIONAL       = (0x080001081)
    PCO_ERROR_FIRMWARE_GIGE_ACCESS_DENIED              = (0x080001082)
    PCO_ERROR_FIRMWARE_GIGE_COMMAND_UNKNOWN            = (0x080001083)
    PCO_ERROR_FIRMWARE_GIGE_COMMAND_GROUP_UNKNOWN      = (0x080001084)
    PCO_ERROR_FIRMWARE_GIGE_INVALID_COMMAND_PARAMETERS = (0x080001085)
    PCO_ERROR_FIRMWARE_GIGE_INTERNAL_ERROR             = (0x080001086)
    PCO_ERROR_FIRMWARE_GIGE_INTERFACE_BLOCKED          = (0x080001087)
    PCO_ERROR_FIRMWARE_GIGE_INVALID_SESSION            = (0x080001088)
    PCO_ERROR_FIRMWARE_GIGE_BAD_OFFSET                 = (0x080001089)
    PCO_ERROR_FIRMWARE_GIGE_NV_WRITE_IN_PROGRESS       = (0x08000108a)
    PCO_ERROR_FIRMWARE_GIGE_DOWNLOAD_BLOCK_LOST        = (0x08000108b)
    PCO_ERROR_FIRMWARE_GIGE_DOWNLOAD_INVALID_LDR       = (0x08000108c)
    PCO_ERROR_FIRMWARE_GIGE_DRIVER_IMG_PKT_LOST        = (0x080001090)
    PCO_ERROR_FIRMWARE_GIGE_BANDWIDTH_CONFLICT         = (0x080001091)
    PCO_ERROR_FIRMWARE_FLICAM_EXT_MOD_OUT_OF_RANGE     = (0x80001100)
    PCO_ERROR_FIRMWARE_FLICAM_SYNC_PLL_NOT_LOCKED      = (0x80001101)
    PCO_WARNING_FIRMWARE_FUNC_ALREADY_ON               = (0xC0001001)
    PCO_WARNING_FIRMWARE_FUNC_ALREADY_OFF              = (0xC0001002)
    PCO_WARNING_FIRMWARE_HIGH_TEMPERATURE              = (0xC0001003)
    PCO_WARNING_FIRMWARE_OFFSET_NOT_LOCKED             = (0xC0001004)
dPCO_ERR={a.name:a.value for a in PCO_ERR}
drPCO_ERR={a.value:a.name for a in PCO_ERR}





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





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


