Basler Logo

Basler Frame Grabber SDK: GbeEventInfo Struct Reference

GbeEventInfo Struct Reference

#include <gbe.h>

Data Fields

union {
   struct {
   }   actioncommand_lost
   struct {
      uint32_t   frameId
   }   broken_frame
   struct {
      uint16_t   differentialPair
      uint16_t   faultDistance
      uint16_t   port
      uint16_t   result
      uint32_t   type
   }   cablediagnostic
   struct {
      uint32_t   blockId
      uint16_t   packetId
   }   corrupted_frame
   struct {
      uint32_t   flags
      uint32_t   port
   }   discovery
   struct {
      uint32_t   cbId
      uint32_t   pbId
   }   external_frame_loss
   struct {
      uint16_t   blockId
      uint64_t   blockId64
      const uint8_t *   data
      uint16_t   dataLen
      uint16_t   eventId
      uint16_t   index
      uint16_t   reqId
      uint16_t   streamChannelIndex
      uint64_t   timestamp
   }   gevevent
   struct {
      uint32_t   frameId
   }   lost_frame
   struct {
      uint16_t   port
      uint32_t   type
   }   phy_irq
   struct {
      uint16_t   port
   }   temperature_alert
data
uint16_t type

Detailed Description

data structure for events received from the board and camera callback functions


Field Documentation

GBE_EVENT_ACTIONCOMMAND_LOST

blockId

the block id field from the GigE Vision Event network packet (==> blockId64 % 65536) (GBE_EVENT_GEVEVENT)

the block id (64 bit) field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

GBE_EVENT_BROKEN_FRAME

GBE_EVENT_CABLEDIAGNOSTIC_STATUS

cbId

GBE_EVENT_CORRUPTED_FRAME

union { ... } GbeEventInfo::data

event data

const uint8_t* GbeEventInfo::data

pointer to the data field from the GigE Vision EventData network packet (GBE_EVENT_GEVEVENT)

the data length field from the GigE Vision EventData network packet (GBE_EVENT_GEVEVENT)

the differential pair (GBE_EVENT_CABLEDIAGNOSTIC_STATUS)

struct { ... } GbeEventInfo::discovery

GBE_EVENT_DISCOVERY_CHANGE

the event id field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

GBE_EVENT_EXTERNAL_FRAME_LOSS

the cable diagnostic distance to cable fault (Unit: centimeters (Marvell PHYs)) (GBE_EVENT_CABLEDIAGNOSTIC_STATUS)

discovery change flags [Bit 0 = 1: camera added, Bit 0 = 0: camera removed] (GBE_EVENT_DISCOVERY_CHANGE)

frameId

struct { ... } GbeEventInfo::gevevent

GBE_EVENT_GEVEVENT

the index field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

struct { ... } GbeEventInfo::lost_frame

GBE_EVENT_LOST_FRAME

packetId

pbId

struct { ... } GbeEventInfo::phy_irq

GBE_EVENT_PHY_IRQ

the physical port of the cable diagnostics (GBE_EVENT_CABLEDIAGNOSTIC_STATUS)

the physical port of the temperature alert (GBE_EVENT_TEMPERATURE_ALERT)

the physical source port of the irq (GBE_EVENT_PHY_IRQ)

the port where the camera environment has changed (GBE_EVENT_DISCOVERY_CHANGE)

the request id field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

the cable diagnostic result (0 = OK, 1 = Open Cable Fault, 2 = Short Cable Fault (Same Pair), 4 = Timeout, 5 = Short Cable Fault (Cross Pair)) (GBE_EVENT_CABLEDIAGNOSTIC_STATUS)

the stream channel index field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

GBE_EVENT_TEMPERATURE_ALERT

the timestamp field from the GigE Vision Event network packet (GBE_EVENT_GEVEVENT)

status type (0 = Start, 1 = Stop, 2 = Status) (GBE_EVENT_CABLEDIAGNOSTIC_STATUS)

occurred irq type (GBE_EVENT_PHY_IRQ) 0 = Link Up 1 = Remote Fault 2 = Link Down 4 = Parallel Detect Fault 6 = Receive Error

event type identifier