GenICam_SDK.docx
29
4.8 Enumerations
csiPixelFormat
Defines the currently supported pixel data formats
Definition
typedef enum csiPixelFormat {
CSI_PIX_FORMAT_UNKNOWN = 0x00000000,
//// Mono formats
CSI_PIX_FORMAT_MONO8 = 0x01080001,
CSI_PIX_FORMAT_MONO10 = 0x01100003,
CSI_PIX_FORMAT_MONO10_PACKED = 0x010A0046,
CSI_PIX_FORMAT_MONO12 = 0x01100005,
CSI_PIX_FORMAT_MONO12_PACKED = 0x010C0047,
CSI_PIX_FORMAT_MONO16 = 0x01100007,
//// Color formats
CSI_PIX_FORMAT_RGB8 = 0x02180014,
CSI_PIX_FORMAT_RGB10_PACKED = 0x021E005C,
CSI_PIX_FORMAT_RGBA8 = 0x02200016,
CSI_PIX_FORMAT_BGR8 = 0x02180015,
CSI_PIX_FORMAT_RGB16 = 0x02300033,
} csiPixelFormat;
Elements
The value of each entry corresponds to its value in PFNC standard. Please refer to the PFNC standard for more
information on each specific format:
https://www.emva.org/standards-technology/genicam/genicam-downloads/
csiDeviceAccessMode
Defines the mode in which a device will be opened
Definition
typedef enum csiDeviceAccessMode {
CSI_DEV_MODE_UNKNOWN = 0x00,
CSI_DEV_MODE_NONE = 0x01,
CSI_DEV_MODE_EXCLUSIVE,
CSI_DEV_MODE_READ,
CSI_DEV_MODE_CONTROL
} csiDeviceAccessMode;
Elements
CSI_DEV_MODE_UNKNOWN:
Undefined access mode
CSI_DEV_MODE_NONE:
No device access mode specified
CSI_DEV_MODE_EXCLUSIVE
The device will be opened exclusively; no other application will be allowed to
open the device.
CSI_DEV_MODE_READ
The device will be opened in read only mode, other application might open it in
read only mode too.
CSI_DEV_MODE_CONTROL
The device will be opened in control mode (read/write), other application might
still be able to open it in read mode.
csiDeviceAccessStatus
Defines the current access status of a device as returned from device discovery
Definition
typedef enum csiDeviceAccessStatus{
CSI_DEV_ACCESS_STATUS_UNKNOWN = 0x00,
CSI_DEV_ACCESS_STATUS_READWRITE = 0x01,
CSI_DEV_ACCESS_STATUS_READONLY = 0x02,
CSI_DEV_ACCESS_STATUS_NOACCESS = 0x03,
CSI_DEV_ACCESS_STATUS_BUSY = 0x04,
CSI_DEV_ACCESS_STATUS_OPEN_READWRITE = 0x05,
CSI_DEV_ACCESS_STATUS_OPEN_READ = 0x06
} csiDeviceAccessStatus;
Elements
CSI_DEV_ACCESS_STATUS_READWRITE
Device is not yet open and can be opened in read/write mode.
CSI_DEV_ACCESS_STATUS_READONLY
Device is not yet open and can be opened in read only mode.
CSI_DEV_ACCESS_STATUS_NOACCESS
Device is listed but cannot be opened.
CSI_DEV_ACCESS_STATUS_BUSY
Device is open by another process thus cannot be opened again.
CSI_DEV_ACCESS_STATUS_OPEN_READWRITE Device already owned by this producer in read write mode.
CSI_DEV_ACCESS_STATUS_OPEN_READ
Device already owned by this producer in read only mode.
csiFeatureType
Defines the data type of a feature
Definition
typedef enum csiFeatureType {
CSI_UNKNOWN_TYPE,
CSI_BOOLEAN_TYPE,
CSI_INT_TYPE,
CSI_FLOAT_TYPE,
CSI_STRING_TYPE,
CSI_ENUMERATION,
CSI_CATEGORY,
CSI_COMMAND,
CSI_REGISTER,
CSI_PORT
} csiFeatureType;
Elements
CSI_UNKNOWN_TYPE Unknown type
CSI_BOOLEAN_TYPE
Boolean data type
CSI_INT_TYPE
Integer data type
CSI_FLOAT_TYPE
Floating point data type
CSI_STRING_TYPE
String data type
CSI_ENUMERATION
Enumeration feature type
CSI_CATEGORY
Category feature type
CSI_COMMAND
Command feature type
CSI_REGISTER
Register feature type
CSI_PORT
Port of the feature note map