PUCLIB 1.7.0.0
PHOTRON USB Control Library
Loading...
Searching...
No Matches
PUCCONST.h File Reference
#include <Windows.h>

Go to the source code of this file.

Data Structures

struct  PUC_GBE2_XFER_HEADER
 Structure for storing the parsed GbE-2 16-byte transfer header. More...

Macros

#define PUC_MAX_DEVICE   16
 Maximum number of connectable devices.
#define PUC_MAX_LEN   256
 Maximum number of characters.
#define PUC_Q_COUNT   64
 Quantization table count (8*8)
#define PUC_MIN_RING_BUF_COUNT   4
 Minimum ring buffer count for continuous transfer.
#define PUC_MAX_RING_BUF_COUNT   65535
 Maximum ring buffer count for continuous transfer.
#define PUC_XFER_TIMEOUT_AUTO   0
 Mode for automatically setting the timeout duration (ms) based on the frame rate when no response is received from the device.
#define PUC_XFER_TIMEOUT_INFINITE   0xFFFFFFFF
 Mode for setting the timeout duration (ms) to infinite when no response is received from the device.
#define PUC_SYNC_OUT_MAGNIFICATION_0_5   0
 Constant value expressing the output magnification rate of synchronization signal is 0.5.
#define PUC_MAX_DECODE_THREAD_COUNT   32
 Constant value expressing the thread count for multi thread decoding.
#define PUC_MAC_ADDRESS_SIZE   6
 MAC address size.
#define PUC_DETECT_TARGET_ALL   0x00000000
 Search target flag for PUC_DetectDevice2 (all device types)
#define PUC_DETECT_TARGET_UC1   0x00000001
 Search target flag for PUC_DetectDevice2 (UC1 / USB devices)
#define PUC_DETECT_TARGET_GBE2   0x00000002
 Search target flag for PUC_DetectDevice2 (GbE-2 / network devices)
#define PUC_DETECT_MODE_DISCOVERY   0x00000000
 Search method for PUC_DetectDevice2 (GbE-2 only): broadcast discovery on each adapter. Finds devices whose IP address is unknown.
#define PUC_DETECT_MODE_TARGET_IP   0x00000001
 Search method for PUC_DetectDevice2 (GbE-2 only): query the IP address given by nTargetIPAddress directly. Reaches devices that do not answer broadcast discovery (e.g. on another subnet).
#define PUC_CHK_SUCCEEDED(res)
 The macro to be positive when an error code is normal.
#define PUC_CHK_FAILED(res)
 The macro to be positive when an error code is not normal.

Typedefs

typedef void * PUC_HANDLE
 Device handle.
typedef PUC_HANDLE * PPUC_HANDLE
 Pointer for the device handle.
typedef struct PUC_GBE2_XFER_HEADER * PPUC_GBE2_XFER_HEADER

Enumerations

enum  PUC_MODE { PUC_OFF = 0 , PUC_ON = 1 }
 Enumeration for ON/OFF setting. More...
enum  PUC_SIGNAL { PUC_SIGNAL_POSI = 0 , PUC_SIGNAL_NEGA = 1 }
 Enumeration for signal polarity. More...
enum  PUC_SYNC_MODE { PUC_SYNC_INTERNAL = 0 , PUC_SYNC_EXTERNAL = 1 , PUC_SYNC_EXTERNAL_PTP = 2 }
 Enumeration for synchronization. More...
enum  PUC_COLOR_TYPE { PUC_COLOR_MONO = 0 , PUC_COLOR_COLOR = 1 }
 Enumeration for device color/monochrome setting. More...
enum  PUCRESULT {
  PUC_SUCCEEDED = 0 , PUC_ERROR_UNINITIALIZE = 1 , PUC_ERROR_INITIALIZED = 2 , PUC_ERROR_NOT_EXIST_DEVICE_NO = 3 ,
  PUC_ERROR_ILLEGAL_DEVICE_HANDLE = 4 , PUC_ERROR_ILLEGAL_ARG = 5 , PUC_ERROR_ILLEGAL_RESOLUTION = 6 , PUC_ERROR_ILLEGAL_FRAME_RATE = 7 ,
  PUC_ERROR_ILLEGAL_EXPOSE_CLOCK = 8 , PUC_ERROR_DEVICE_OPEN = 9 , PUC_ERROR_DEVICE_NOTOPEN = 10 , PUC_ERROR_DEVICE_READ = 11 ,
  PUC_ERROR_DEVICE_WRITE = 12 , PUC_ERROR_MODULE_LOAD = 13 , PUC_ERROR_LOCK_TIMEOUT = 14 , PUC_ERROR_GET_CMD = 15 ,
  PUC_ERROR_SET_CMD = 16 , PUC_ERROR_NOTEQUAL_READ_SIZE = 17 , PUC_ERROR_NOTEQUAL_WRITE_SIZE = 18 , PUC_ERROR_XFER_DATA_INVALID_HEADER = 19 ,
  PUC_ERROR_XFER_DATA_BEGIN = 20 , PUC_ERROR_XFER_DATA_WAIT = 21 , PUC_ERROR_XFER_DATA_FINISH = 22 , PUC_ERROR_XFERRING = 23 ,
  PUC_ERROR_RING_BUF_COUNT = 24 , PUC_ERROR_SYNC_EXTERNAL = 25 , PUC_ERROR_NOTSUPPORT = 26 , PUC_ERROR_GPU_DECODE_PROCESS = 27 ,
  PUC_ERROR_ALLOCATE_BUFFUER = 28 , PUC_ERROR_FREE_BUFFER = 29 , PUC_ERROR_GPU_SYNCHRONIZE = 30 , PUC_ERROR_GPU_MEMORY_COPY = 31 ,
  PUC_ERROR_GPU_UNINITIALIZE =32 , PUC_ERROR_GET_ADAPTER_INFO = 33 , PUC_ERROR_DETECT_DEVICE = 34 , PUC_ERROR_SET_NETWORK_SETTING = 35 ,
  PUC_ERROR_DEVICE_CLOSE = 36 , PUC_ERROR_NO_SYNC = 37
}
 Error code. More...
enum  PUC_DEVICE_TYPE { PUC_DEVICE_UC1 = 0 , PUC_DEVICE_GBE2 = 1 , PUC_DEVICE_OTHERS = 2 }
 Enumeration for the device type. Stored in PUC_DETECT_INFO::nDeviceType by the device search functions, and used to select the device to open with PUC_OpenDevice2. More...
enum  PUC_GENERAL_OUT_SIGNAL_TYPE {
  VSYNC_POS = 0x0000 , VSYNC_NEG = 0x0001 , EXPOSE_POS = 0x0002 , EXPOSE_NEG = 0x0003 ,
  REC_POS = 0x0004 , REC_NEG = 0x0005 , TRIGGER_POS = 0x0006 , TRIGGER_NEG = 0x0007 ,
  READY_POS = 0x0008 , READY_NEG = 0x0009 , IRIG_RESET_POS = 0x000A , IRIG_RESET_NEG = 0x000B ,
  STRADDLING_POS = 0x000C , STRADDLING_NEG = 0x000D , PTP_PP_POS = 0x000E , PTP_PP_NEG = 0x000F
}
 The signal type assigned to a general output port. Names ending with POS are positive polarity and NEG are negative polarity.
Which types are available depends on the model, so check with PUC_GetSupportedGeneralOutSignal before use. More...
enum  PUC_GENERAL_IN_SIGNAL_TYPE {
  EVENT_POS_IN = 0x0000 , EVENT_NEG_IN = 0x0001 , TRIG_POS_IN = 0x0002 , TRIG_NEG_IN = 0x0003 ,
  READY_POS_IN = 0x0004 , READY_NEG_IN = 0x0005 , SYNC_POS_IN = 0x0006 , SYNC_NEG_IN = 0x0007 ,
  POWER_OFF_POS_IN = 0x0008 , POWER_OFF_NEG_IN = 0x0009 , EXPOSE_POS_IN = 0x000A , EXPOSE_NEG_IN = 0x000B
}
 The signal type assigned to a general input port. Names containing POS are positive polarity and NEG are negative polarity.
Which types are available depends on the model, so check with PUC_GetSupportedGeneralInSignal before use. More...
enum  PUC_NETWORK_INFO_TYPE {
  IPADDRESS = 0 , NETMASK = 1 , GATEWAY = 2 , DHCP_ON = 3 ,
  DHCP_OFF = 4
}
 The network setting to change with PUC_SetNetworkInfo. More...
enum  PUC_SYNC_OUT_TIMES {
  X0_5 = 0x0101 , X1 = 1 , X2 = 2 , X4 = 4 ,
  X6 = 6 , X8 = 8 , X10 = 10 , X20 = 20 ,
  X30 = 30
}
 The output count magnification of the synchronization signal, given as a multiple of the framerate.
For example, X2 outputs the signal twice per frame. More...
enum  PUC_CAPABILITY {
  PUC_CAP_RESET_DEVICE = 0 , PUC_CAP_COMMAND_PASSTHROUGH , PUC_CAP_SYNC_OUT_SIGNAL , PUC_CAP_SYNC_OUT_MAGNIFICATION ,
  PUC_CAP_SYNC_OUT_TIMES , PUC_CAP_SYNC_IN_DELAY , PUC_CAP_TRIG_IN_DELAY , PUC_CAP_TRIG_OUT_WIDTH ,
  PUC_CAP_EXPOSE_DELAY , PUC_CAP_PP_OUT , PUC_CAP_EXTERNAL_SYNC_STATUS , PUC_CAP_EPOC_TIME ,
  PUC_CAP_KEEP_ALIVE , PUC_CAP_MAC_ADDRESS , PUC_CAP_HARDWARE_VERSION , PUC_CAP_NETWORK_INFO ,
  PUC_CAP_PIXEL_DEFECT , PUC_CAP_GENERAL_IO , PUC_CAP_FLASH_RESET , PUC_CAP_XFER_TIMEOUT ,
  PUC_CAP_GPU_DECODE , PUC_CAP_FAN
}
 Camera capability. Use with PUC_IsSupported to check whether a feature is available on the connected camera. More...

Macro Definition Documentation

◆ PUC_CHK_FAILED

#define PUC_CHK_FAILED ( res)
Value:
(res != PUC_SUCCEEDED)
@ PUC_SUCCEEDED
Succeeded.
Definition PUCCONST.h:115

The macro to be positive when an error code is not normal.

Definition at line 497 of file PUCCONST.h.

◆ PUC_CHK_SUCCEEDED

#define PUC_CHK_SUCCEEDED ( res)
Value:
(res == PUC_SUCCEEDED)

The macro to be positive when an error code is normal.

Definition at line 494 of file PUCCONST.h.

◆ PUC_DETECT_MODE_DISCOVERY

#define PUC_DETECT_MODE_DISCOVERY   0x00000000

Search method for PUC_DetectDevice2 (GbE-2 only): broadcast discovery on each adapter. Finds devices whose IP address is unknown.

Definition at line 268 of file PUCCONST.h.

◆ PUC_DETECT_MODE_TARGET_IP

#define PUC_DETECT_MODE_TARGET_IP   0x00000001

Search method for PUC_DetectDevice2 (GbE-2 only): query the IP address given by nTargetIPAddress directly. Reaches devices that do not answer broadcast discovery (e.g. on another subnet).

Definition at line 271 of file PUCCONST.h.

◆ PUC_DETECT_TARGET_ALL

#define PUC_DETECT_TARGET_ALL   0x00000000

Search target flag for PUC_DetectDevice2 (all device types)

Definition at line 258 of file PUCCONST.h.

◆ PUC_DETECT_TARGET_GBE2

#define PUC_DETECT_TARGET_GBE2   0x00000002

Search target flag for PUC_DetectDevice2 (GbE-2 / network devices)

Definition at line 264 of file PUCCONST.h.

◆ PUC_DETECT_TARGET_UC1

#define PUC_DETECT_TARGET_UC1   0x00000001

Search target flag for PUC_DetectDevice2 (UC1 / USB devices)

Definition at line 261 of file PUCCONST.h.

◆ PUC_MAC_ADDRESS_SIZE

#define PUC_MAC_ADDRESS_SIZE   6

MAC address size.

Definition at line 49 of file PUCCONST.h.

◆ PUC_MAX_DECODE_THREAD_COUNT

#define PUC_MAX_DECODE_THREAD_COUNT   32

Constant value expressing the thread count for multi thread decoding.

Definition at line 45 of file PUCCONST.h.

◆ PUC_MAX_DEVICE

#define PUC_MAX_DEVICE   16

Maximum number of connectable devices.

Definition at line 21 of file PUCCONST.h.

◆ PUC_MAX_LEN

#define PUC_MAX_LEN   256

Maximum number of characters.

Definition at line 24 of file PUCCONST.h.

◆ PUC_MAX_RING_BUF_COUNT

#define PUC_MAX_RING_BUF_COUNT   65535

Maximum ring buffer count for continuous transfer.

Definition at line 33 of file PUCCONST.h.

◆ PUC_MIN_RING_BUF_COUNT

#define PUC_MIN_RING_BUF_COUNT   4

Minimum ring buffer count for continuous transfer.

Definition at line 30 of file PUCCONST.h.

◆ PUC_Q_COUNT

#define PUC_Q_COUNT   64

Quantization table count (8*8)

Definition at line 27 of file PUCCONST.h.

◆ PUC_SYNC_OUT_MAGNIFICATION_0_5

#define PUC_SYNC_OUT_MAGNIFICATION_0_5   0

Constant value expressing the output magnification rate of synchronization signal is 0.5.

Definition at line 42 of file PUCCONST.h.

◆ PUC_XFER_TIMEOUT_AUTO

#define PUC_XFER_TIMEOUT_AUTO   0

Mode for automatically setting the timeout duration (ms) based on the frame rate when no response is received from the device.

Definition at line 36 of file PUCCONST.h.

◆ PUC_XFER_TIMEOUT_INFINITE

#define PUC_XFER_TIMEOUT_INFINITE   0xFFFFFFFF

Mode for setting the timeout duration (ms) to infinite when no response is received from the device.

Definition at line 39 of file PUCCONST.h.

Typedef Documentation

◆ PPUC_GBE2_XFER_HEADER

◆ PPUC_HANDLE

Pointer for the device handle.

Definition at line 107 of file PUCCONST.h.

◆ PUC_HANDLE

typedef void* PUC_HANDLE

Device handle.

Definition at line 104 of file PUCCONST.h.

Enumeration Type Documentation

◆ PUC_CAPABILITY

Camera capability. Use with PUC_IsSupported to check whether a feature is available on the connected camera.

Enumerator
PUC_CAP_RESET_DEVICE 

Device reset.

PUC_CAP_COMMAND_PASSTHROUGH 

Raw command passthrough.

PUC_CAP_SYNC_OUT_SIGNAL 

SYNC OUT signal polarity.

PUC_CAP_SYNC_OUT_MAGNIFICATION 

SYNC OUT magnification.

PUC_CAP_SYNC_OUT_TIMES 

SYNC OUT times.

PUC_CAP_SYNC_IN_DELAY 

SYNC IN delay.

PUC_CAP_TRIG_IN_DELAY 

TRIG IN delay.

PUC_CAP_TRIG_OUT_WIDTH 

TRIG OUT width.

PUC_CAP_EXPOSE_DELAY 

Expose delay.

PUC_CAP_PP_OUT 

PP OUT width/delay.

PUC_CAP_EXTERNAL_SYNC_STATUS 

External sync status.

PUC_CAP_EPOC_TIME 

Camera clock setting.

PUC_CAP_KEEP_ALIVE 

Keep alive control.

PUC_CAP_MAC_ADDRESS 

MAC address.

PUC_CAP_HARDWARE_VERSION 

Hardware version.

PUC_CAP_NETWORK_INFO 

Network information.

PUC_CAP_PIXEL_DEFECT 

Pixel defect point.

PUC_CAP_GENERAL_IO 

General in/out signal.

PUC_CAP_FLASH_RESET 

Flash data reset.

PUC_CAP_XFER_TIMEOUT 

Transfer timeout setting takes effect.

PUC_CAP_GPU_DECODE 

GPU decode for this camera's data format.

PUC_CAP_FAN 

Fan control.

Definition at line 393 of file PUCCONST.h.

◆ PUC_COLOR_TYPE

Enumeration for device color/monochrome setting.

Enumerator
PUC_COLOR_MONO 

Monochrome.

PUC_COLOR_COLOR 

Color.

Definition at line 92 of file PUCCONST.h.

◆ PUC_DEVICE_TYPE

Enumeration for the device type. Stored in PUC_DETECT_INFO::nDeviceType by the device search functions, and used to select the device to open with PUC_OpenDevice2.

Enumerator
PUC_DEVICE_UC1 

INFINICAM UC-1 (USB connection)

PUC_DEVICE_GBE2 

INFINICAM GbE-2 (Ethernet connection)

PUC_DEVICE_OTHERS 

Other than the above. Not returned by the device search functions; reserved for the application to represent a non-camera device such as a file.

Definition at line 243 of file PUCCONST.h.

◆ PUC_GENERAL_IN_SIGNAL_TYPE

The signal type assigned to a general input port. Names containing POS are positive polarity and NEG are negative polarity.
Which types are available depends on the model, so check with PUC_GetSupportedGeneralInSignal before use.

Enumerator
EVENT_POS_IN 

Event input (positive)

EVENT_NEG_IN 

Event input (negative)

TRIG_POS_IN 

Trigger input (positive)

TRIG_NEG_IN 

Trigger input (negative)

READY_POS_IN 

Recording ready input (positive)

READY_NEG_IN 

Recording ready input (negative)

SYNC_POS_IN 

External synchronization input (positive)

SYNC_NEG_IN 

External synchronization input (negative)

POWER_OFF_POS_IN 

Power off input (positive)

POWER_OFF_NEG_IN 

Power off input (negative)

EXPOSE_POS_IN 

Exposure control input (positive).

EXPOSE_NEG_IN 

Exposure control input (negative).

Definition at line 319 of file PUCCONST.h.

◆ PUC_GENERAL_OUT_SIGNAL_TYPE

The signal type assigned to a general output port. Names ending with POS are positive polarity and NEG are negative polarity.
Which types are available depends on the model, so check with PUC_GetSupportedGeneralOutSignal before use.

Enumerator
VSYNC_POS 

Vertical synchronization signal (positive)

VSYNC_NEG 

Vertical synchronization signal (negative)

EXPOSE_POS 

Exposure period (positive)

EXPOSE_NEG 

Exposure period (negative)

REC_POS 

Recording state (positive)

REC_NEG 

Recording state (negative)

TRIGGER_POS 

Trigger input detection (positive)

TRIGGER_NEG 

Trigger input detection (negative)

READY_POS 

Recording ready state (positive)

READY_NEG 

Recording ready state (negative)

IRIG_RESET_POS 

IRIG time code reset (positive)

IRIG_RESET_NEG 

IRIG time code reset (negative)

STRADDLING_POS 

Straddling (two-shot) exposure (positive)

STRADDLING_NEG 

Straddling (two-shot) exposure (negative)

PTP_PP_POS 

PTP pulse per second (positive)

PTP_PP_NEG 

PTP pulse per second (negative)

Definition at line 279 of file PUCCONST.h.

◆ PUC_MODE

enum PUC_MODE

Enumeration for ON/OFF setting.

Enumerator
PUC_OFF 

OFF.

PUC_ON 

ON.

Definition at line 53 of file PUCCONST.h.

◆ PUC_NETWORK_INFO_TYPE

The network setting to change with PUC_SetNetworkInfo.

Enumerator
IPADDRESS 

IP address. Specify the value as a 32-bit value.

NETMASK 

Subnet mask. Specify the value as a 32-bit value.

GATEWAY 

Default gateway. Specify the value as a 32-bit value.

DHCP_ON 

Enables DHCP. The value argument is not used.

DHCP_OFF 

Disables DHCP. The value argument is not used.

Definition at line 351 of file PUCCONST.h.

◆ PUC_SIGNAL

enum PUC_SIGNAL

Enumeration for signal polarity.

Enumerator
PUC_SIGNAL_POSI 

Positive polarity signal.

PUC_SIGNAL_NEGA 

Negative polarity signal.

Definition at line 65 of file PUCCONST.h.

◆ PUC_SYNC_MODE

Enumeration for synchronization.

Enumerator
PUC_SYNC_INTERNAL 

Internal operation.

PUC_SYNC_EXTERNAL 

Synchronize to external signal.

PUC_SYNC_EXTERNAL_PTP 

Synchronize to the PTP (Precision Time Protocol) master clock. GbE-2 only.

Definition at line 77 of file PUCCONST.h.

◆ PUC_SYNC_OUT_TIMES

The output count magnification of the synchronization signal, given as a multiple of the framerate.
For example, X2 outputs the signal twice per frame.

Enumerator
X0_5 

x0.5 (once every two frames)

X1 

x1

X2 

x2

X4 

x4

X6 

x6

X8 

x8

X10 

x10

X20 

x20

X30 

x30

Definition at line 369 of file PUCCONST.h.

◆ PUCRESULT

enum PUCRESULT

Error code.

Enumerator
PUC_SUCCEEDED 

Succeeded.

PUC_ERROR_UNINITIALIZE 

Initialization has not been performed. Please execute the PUC_Initialize function.

PUC_ERROR_INITIALIZED 

Initialization is already complete.

PUC_ERROR_NOT_EXIST_DEVICE_NO 

The specified device number does not exist.

PUC_ERROR_ILLEGAL_DEVICE_HANDLE 

The specified device handle is NULL.

PUC_ERROR_ILLEGAL_ARG 

The specified argument is NULL.

PUC_ERROR_ILLEGAL_RESOLUTION 

The specified resolution cannot be set.

PUC_ERROR_ILLEGAL_FRAME_RATE 

The specified framerate cannot be set.

PUC_ERROR_ILLEGAL_EXPOSE_CLOCK 

The specified exposure time or non-exposure time (clock units) cannot be set.

PUC_ERROR_DEVICE_OPEN 

Failed to open the device.

PUC_ERROR_DEVICE_NOTOPEN 

The device is not open.

PUC_ERROR_DEVICE_READ 

Failed to read data from the device.

PUC_ERROR_DEVICE_WRITE 

Failed to write data to the device.

PUC_ERROR_MODULE_LOAD 

There are modules in the SDK that could not load.

PUC_ERROR_LOCK_TIMEOUT 

The exclusive process of the function has timed out.

PUC_ERROR_GET_CMD 

Failed to send a GET command to the device.

PUC_ERROR_SET_CMD 

Failed to send a SET command to the device.

PUC_ERROR_NOTEQUAL_READ_SIZE 

The data of specified size could not be read from the device.

PUC_ERROR_NOTEQUAL_WRITE_SIZE 

The data of specified size could not be written to the device.

PUC_ERROR_XFER_DATA_INVALID_HEADER 

The header information in the data received from the device is invalid.

PUC_ERROR_XFER_DATA_BEGIN 

Unable to start data transfer.

PUC_ERROR_XFER_DATA_WAIT 

An unexpected error occurred during waiting for a data transfer from the device.

PUC_ERROR_XFER_DATA_FINISH 

The data transfer ended abnormally.

PUC_ERROR_XFERRING 

Unable to process as a data transfer is in progress.

PUC_ERROR_RING_BUF_COUNT 

The specified ring buffer count is invalid.

PUC_ERROR_SYNC_EXTERNAL 

Unable to process as a synchronize to external signal is in progress.

PUC_ERROR_NOTSUPPORT 

This function is not supprted.

PUC_ERROR_GPU_DECODE_PROCESS 

GPU decode process failed.

PUC_ERROR_ALLOCATE_BUFFUER 

Failed to allocate buffer.

PUC_ERROR_FREE_BUFFER 

Failed to release the buffer.

PUC_ERROR_GPU_SYNCHRONIZE 

Failed to synchronize GPU processing.

PUC_ERROR_GPU_MEMORY_COPY 

Failed to copy GPU memory.

PUC_ERROR_GPU_UNINITIALIZE 

The setup required for GPU processing is not done, please run PUC_SetupGPUDecode.

PUC_ERROR_GET_ADAPTER_INFO 

Failed to get the network adapter information. Returned by PUC_GetAdaptersInfoList.

PUC_ERROR_DETECT_DEVICE 

Failed to search for devices. Returned by the device search functions such as PUC_DetectDevice2 / PUC_DiscoveryDevice.

PUC_ERROR_SET_NETWORK_SETTING 

Failed to write the network settings to the device. Returned by PUC_ForceSetNetworkSetting.

PUC_ERROR_DEVICE_CLOSE 

Failed to close the device.

PUC_ERROR_NO_SYNC 

External sync signal is not detected.

Definition at line 111 of file PUCCONST.h.