![chromasens GEN I CAM-SDK Скачать руководство пользователя страница 4](http://html.mh-extra.com/html/chromasens/gen-i-cam-sdk/gen-i-cam-sdk_manual_2605694004.webp)
GenICam_SDK.docx
4
1.2 Conventions used in this manual
1.2.1 Styles
Notification
To ease the use of the document and to clearly indicate the type of the used data different colors for the
different elements are used. Three different colors are used when displaying elements in tables:
Enumerations:
For example:
csiEventType
Defines events which can be received from the SDK
Definition
typedef
enum
csiEventType {
CSI_EVT_NEWIMAGEDATA = 0x00,
CSI_EVT_ERROR = 0x01,
CSI_EVT_MODULE = 0x02,
CSI_EVT_CUSTOM = 0x1000
} csiEventType;
Elements
CSI_EVT_NEWIMAGEDATA: New image data received
CSI_EVT_ERROR: Error occurred in the SDK
CSI_EVT_MODULE: General event notification
CSI_EVT_CUSTOM: A custom event was triggered
Structures:
For example:
Struct-name
csiDiscoveryInfo
Variable type
Element name
Description
uint32_t
numDevices
double
progress
bool
discoveryRunning
Functions:
For example:
csiDiscoverDevices
Searches for the devices currently connected to the system
Syntax
csiErr csiDiscoverDevices(
csiDiscoveryInfo* discoveryInfoOut,
uint64_t timeoutMilliseconds,
csiDiscoveryInfoCallbackFunc discCallbackFunc
= NULL,
const char* additionalSearchPaths
= NULL,
bool overrideSearchPath CSI_DEFAULT_PARAM_FALSE);
Parameters:
In:
timeoutMilliseconds: The amount of time to search on a specific transport layer for a device
discCallBackFunc: pointer to a callback function which gets called when a result was received
AdditionalSearchPaths: as default only the paths given in the system variable “GENICAM_GENTL64_PATH” are being searched for the
used transport layers
overrideSearchPath: If set, only the given path is searched for transport layers to use.
Out:
discoveryInfoOut: The structure will be filled with the available devices
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment: