Basler Logo

Basler Frame Grabber SDK: SgcEventInfo Struct Reference

SgcEventInfo Struct Reference

data structure for events received from the board callback functions More...

#include <siso_genicam.h>

Data Fields

union {
   struct {
      uint32_t   cameraIndex
   }   camera_connection_lost
   struct {
      uint32_t   linkConnectionState
      uint32_t   phyIndex
   }   link_connection_state_changed
data
uint16_t eventID

Detailed Description

data structure for events received from the board callback functions

Remarks:
SgcEventInfo is a structure, that gets filled by the callback interface of siso_genicam. Which event is notified can be determined by evaluating the member eventID (event type identifier). the event types correspond to the SGC_EVENT_CXXX constants (defines). Specific events types correspond to specific additional information. These information is represented as different components of the union. When evaluating the additional information, the member eventID needs to be determined first.

Field Documentation

SGC_EVENT_CAMERA_CONNECTION_LOST

the camera index where the camera disconnection occurred

union { ... } SgcEventInfo::data

event data

event type identifier

SGC_EVENT_LINK_CONNECTION_ESTABLISHED SGC_EVENT_LINK_CONNECTION_LOST

new state of connection, see SGC_ELCS_XXX

physical port, where the state change was detected/performed