gbe.h Source File |
||
|
gbe.h
Go to the documentation of this file.
267};
395typedef int (*Gbe_BoardEventCallbackFunc_t)(struct BoardHandle *boardHandle, const GbeEventInfo * const eventInfo, const void* userData);
404typedef int (*Gbe_CameraEventCallbackFunc_t)(struct CameraHandle *cameraHandle, const GbeEventInfo * const eventInfo, const void* userData);
458int Gbe_getFirstCamera(struct BoardHandle *board_handle, int port, struct CameraHandle **camera_handle_ptr);
469int Gbe_getCameraByIndex(struct BoardHandle *board_handle, int port, unsigned int index, struct CameraHandle **camera_handle_ptr);
480int Gbe_getCameraByMac(struct BoardHandle *board_handle, int port, uint8_t mac[6], struct CameraHandle **camera_handle_ptr);
491int Gbe_getCameraByIp(struct BoardHandle *board_handle, int port, uint32_t ip, struct CameraHandle **camera_handle_ptr);
502int Gbe_getCameraByUserName(struct BoardHandle *board_handle, int port, char* user_name, struct CameraHandle **camera_handle_ptr);
560int Gbe_connectUdpSocket(struct BoardHandle *board_handle, int port, uint16_t *local_udp_port, uint32_t flags);
570int Gbe_disconnectUdpSocket(struct BoardHandle *board_handle, int port, uint16_t local_udp_port);
584int Gbe_sendUdpPayload(struct BoardHandle *board_handle, int port, uint16_t local_udp_port, uint32_t remote_ipv4, uint16_t remote_port, const void* buffer, size_t length);
597int Gbe_recvUdpDatagram(struct BoardHandle *board_handle, int port, uint16_t local_udp_port, void* buffer, size_t *length, int32_t timeout);
610int Gbe_sendForceIpCommand(struct BoardHandle *board_handle, int port, uint8_t mac[6], uint32_t ipv4, uint32_t ipv4_mask, uint32_t ipv4_gateway);
623int Gbe_sendActionCommand(struct BoardHandle *board_handle, int port, uint32_t ipv4, uint32_t device_key, uint32_t group_key, uint32_t group_mask);
633int Gbe_switchCameraConnection(struct CameraHandle *camera_handle, struct BoardHandle *board_handle, int port);
653int Gbe_getIntegerValue(struct CameraHandle *camera_handle, const char* name, int64_t* value_ptr);
665int Gbe_getIntegerValueLimits(struct CameraHandle *camera_handle, const char* name, int64_t* min_value_ptr, int64_t* max_value_ptr, int64_t *inc_value_ptr);
675int Gbe_setBooleanValue(struct CameraHandle *camera_handle, const char* name, unsigned int value);
685int Gbe_getBooleanValue(struct CameraHandle *camera_handle, const char* name, unsigned int* value_ptr);
716int Gbe_getFloatValueLimits(struct CameraHandle *camera_handle, const char* name, double* min_value_ptr, double* max_value_ptr);
736int Gbe_getStringValue(struct CameraHandle *camera_handle, const char* name, const char** value_ptr);
746int Gbe_setEnumerationValue(struct CameraHandle *camera_handle, const char* name, const char* value);
756int Gbe_getEnumerationValue(struct CameraHandle *camera_handle, const char* name, const char** value_ptr);
863int Gbe_registerReadFromCamera(struct CameraHandle *camera_handle, void* buffer, uint64_t address, size_t length);
875int Gbe_registerWriteToCamera(struct CameraHandle *camera_handle, const void* buffer, uint64_t address, size_t length);
887int Gbe_setBoardPropertyWithType(struct BoardHandle *board_handle, const char* propertyName, const void* propertyValuePtr, int propertyType);
899int Gbe_getBoardPropertyWithType(struct BoardHandle *board_handle, const char* propertyName, void* propertyValuePtr, int propertyType);
911int Gbe_setCameraPropertyWithType(struct CameraHandle *camera_handle, const char* propertyName, const void* propertyValuePtr, int propertyType);
923int Gbe_getCameraPropertyWithType(struct CameraHandle *camera_handle, const char* propertyName, void* propertyValuePtr, int propertyType);
943int Gbe_registerBoardEventCallback(struct BoardHandle *board_handle, Gbe_BoardEventCallbackFunc_t callback, const void* userData);
953int Gbe_registerCameraEventCallback(struct CameraHandle *camera_handle, Gbe_CameraEventCallbackFunc_t callback, const void* userData);
964int Gbe_SaveCameraParameters(struct CameraHandle *cameraHandle, const char* paramFileName, uint32_t flags);
975int Gbe_LoadCameraParameters(struct CameraHandle *cameraHandle, const char* paramFileName, uint32_t flags);
985int Gbe_ApplyChunkData(struct CameraHandle *cameraHandle, const void* buffer, size_t length, uint32_t flags);
995int Gbe_RequestMasterSlaveInit(unsigned int board, int slave, unsigned int flags, unsigned int timeout);
int Gbe_lockTLParams(struct CameraHandle *camera_handle) Lock GenICam transport layer parameters. int Gbe_getBoardPropertyWithType(struct BoardHandle *board_handle, const char *propertyName, void *propertyValuePtr, int propertyType) Get board property. int Gbe_setStringValue(struct CameraHandle *camera_handle, const char *name, const char *value) Set GenICam String value. int Gbe_sendActionCommand(struct BoardHandle *board_handle, int port, uint32_t ipv4, uint32_t device_key, uint32_t group_key, uint32_t group_mask) Sends an ACTION command over selected port. int Gbe_setCameraPropertyWithType(struct CameraHandle *camera_handle, const char *propertyName, const void *propertyValuePtr, int propertyType) Set camera property. int Gbe_disconnectCamera(struct CameraHandle *camera_handle) Release camera connection. int(* Gbe_BoardEventCallbackFunc_t)(struct BoardHandle *boardHandle, const GbeEventInfo *const eventInfo, const void *userData) Callback function definition for Board Events. Definition: gbe.h:395 int Gbe_getEnumerationValue(struct CameraHandle *camera_handle, const char *name, const char **value_ptr) Get GenICam Enumeration value. int Gbe_getCameraByIp(struct BoardHandle *board_handle, int port, uint32_t ip, struct CameraHandle **camera_handle_ptr) Get camera by IP on a port. int Gbe_initBoard(int board, int init_flag, struct BoardHandle **board_handle_ptr) Initializes the Gbe board. int Gbe_invalidateCache(struct CameraHandle *camera_handle) Invalidates the register cache for the camera. int Gbe_executeCommand(struct CameraHandle *camera_handle, const char *name) Execute GenICam Command. int Gbe_registerWriteToCamera(struct CameraHandle *camera_handle, const void *buffer, uint64_t address, size_t length) Write register content to camera. int Gbe_setBoardPropertyWithType(struct BoardHandle *board_handle, const char *propertyName, const void *propertyValuePtr, int propertyType) Set board property. int Gbe_isCommandDone(struct CameraHandle *camera_handle, const char *name) Check status of a GenICam Command. int Gbe_setEnumerationValue(struct CameraHandle *camera_handle, const char *name, const char *value) Set GenICam Enumeration value. int Gbe_callInternalFunction(int id, const void *const in, void *const out) Generic interface for calling an internal functions (not for public use!) struct CameraInfo * Gbe_getCameraInfo(struct CameraHandle *camera_handle) Get camera info. int Gbe_registerCameraEventCallback(struct CameraHandle *camera_handle, Gbe_CameraEventCallbackFunc_t callback, const void *userData) Register callback function for camera Gbe Events. int Gbe_getCameraByUserName(struct BoardHandle *board_handle, int port, char *user_name, struct CameraHandle **camera_handle_ptr) Get camera by camera user name on a port. int Gbe_scanNetwork(struct BoardHandle *board_handle, int port, int discovery_timeout) Scans the network for cameras. int Gbe_disconnectUdpSocket(struct BoardHandle *board_handle, int port, uint16_t local_udp_port) Remove local UDP socket. int Gbe_recvUdpDatagram(struct BoardHandle *board_handle, int port, uint16_t local_udp_port, void *buffer, size_t *length, int32_t timeout) Recv UDP datagram via camera socket. int Gbe_setFloatValue(struct CameraHandle *camera_handle, const char *name, double value) Set GenICam Float value. int Gbe_getCameraByIndex(struct BoardHandle *board_handle, int port, unsigned int index, struct CameraHandle **camera_handle_ptr) Get camera by index on a port. int Gbe_getFloatValueLimits(struct CameraHandle *camera_handle, const char *name, double *min_value_ptr, double *max_value_ptr) Get GenICam Float limit values. int(* Gbe_CameraEventCallbackFunc_t)(struct CameraHandle *cameraHandle, const GbeEventInfo *const eventInfo, const void *userData) Callback function definition for Camera Events. Definition: gbe.h:404 int Gbe_ApplyChunkData(struct CameraHandle *cameraHandle, const void *buffer, size_t length, uint32_t flags) Apply chunk data to the GenICam data model. int Gbe_unlockTLParams(struct CameraHandle *camera_handle) Unlock GenICam transport layer parameters. int Gbe_RequestMasterSlaveInit(unsigned int board, int slave, unsigned int flags, unsigned int timeout) Synchronize system wide Master/Slave initialization (call this function before Fg_Init(.... int Gbe_getIntegerValueLimits(struct CameraHandle *camera_handle, const char *name, int64_t *min_value_ptr, int64_t *max_value_ptr, int64_t *inc_value_ptr) Get GenICam Integer limit values. int Gbe_LoadCameraParameters(struct CameraHandle *cameraHandle, const char *paramFileName, uint32_t flags) Load a camera parameters file (name/value pairs) and applies value to camera. int Gbe_resetStreamChannel(struct CameraHandle *camera_handle) Reset stream channel of a camera connection. int Gbe_connectUdpSocket(struct BoardHandle *board_handle, int port, uint16_t *local_udp_port, uint32_t flags) Establish local UDP socket. int Gbe_switchCameraConnection(struct CameraHandle *camera_handle, struct BoardHandle *board_handle, int port) Switch established camera connection to another board/port. int Gbe_connectCamera(struct CameraHandle *camera_handle) Establish camera connection. int Gbe_sendUdpPayload(struct BoardHandle *board_handle, int port, uint16_t local_udp_port, uint32_t remote_ipv4, uint16_t remote_port, const void *buffer, size_t length) Send UDP payload via UDP socket. int Gbe_getFirstCamera(struct BoardHandle *board_handle, int port, struct CameraHandle **camera_handle_ptr) Get the first camera found on a port. int Gbe_stopAcquisition(struct CameraHandle *camera_handle) Stop image acquisition. int Gbe_getGenICamXML(struct CameraHandle *camera_handle, char *buffer, size_t *buffer_size) Get the GenICam XML data for the camera. int Gbe_enableChecks(struct CameraHandle *camera_handle, unsigned int flag) Enable/Disable GenICam checks (i.e. locked/available/implemented) int Gbe_getBooleanValue(struct CameraHandle *camera_handle, const char *name, unsigned int *value_ptr) Get GenICam Boolean value. int Gbe_getStringValue(struct CameraHandle *camera_handle, const char *name, const char **value_ptr) Get GenICam String value. int Gbe_connectCameraWithExternalXml(struct CameraHandle *camera_handle, const char *filename) Establish camera connection. int Gbe_getCameraCount(struct BoardHandle *board_handle, int port) Get the number of cameras found on a port. int Gbe_registerReadFromCamera(struct CameraHandle *camera_handle, void *buffer, uint64_t address, size_t length) Read register content from camera. int Gbe_setBooleanValue(struct CameraHandle *camera_handle, const char *name, unsigned int value) Set GenICam Boolean value. int Gbe_NotifyMasterInitialized(unsigned int board) Notify slave processes about a completed Fg_Init(...) as master process. int Gbe_registerBoardEventCallback(struct BoardHandle *board_handle, Gbe_BoardEventCallbackFunc_t callback, const void *userData) Register callback function for board Gbe Events. int Gbe_getFloatValue(struct CameraHandle *camera_handle, const char *name, double *value_ptr) Get GenICam Float value. int Gbe_SaveCameraParameters(struct CameraHandle *cameraHandle, const char *paramFileName, uint32_t flags) Save all current camera parameters to file (name/value pairs) int Gbe_getCameraPropertyWithType(struct CameraHandle *camera_handle, const char *propertyName, void *propertyValuePtr, int propertyType) Get camera property. int Gbe_startAcquisition(struct CameraHandle *camera_handle) Start image acquisition. int Gbe_getIntegerValue(struct CameraHandle *camera_handle, const char *name, int64_t *value_ptr) Get GenICam Integer value. int Gbe_gsConnectCamera(struct CameraHandle *camera_handle) Establish a camera connection without starting a GenAPI connection. int Gbe_getCameraByMac(struct BoardHandle *board_handle, int port, uint8_t mac[6], struct CameraHandle **camera_handle_ptr) Get camera by MAC on a port. int Gbe_setIntegerValue(struct CameraHandle *camera_handle, const char *name, int64_t value) Set GenICam Integer value. int Gbe_isServiceConnectionValid(struct BoardHandle *board_handle) Check if the service connection is still valid. int Gbe_sendForceIpCommand(struct BoardHandle *board_handle, int port, uint8_t mac[6], uint32_t ipv4, uint32_t ipv4_mask, uint32_t ipv4_gateway) Sends a FORCEIP command over selected port. Definition: gbe.h:221 Definition: gbe.h:352 Definition: gbe.h:356 Definition: gbe.h:347 Definition: gbe.h:276 Definition: gbe.h:328 Definition: gbe.h:269 Definition: gbe.h:335 Definition: gbe.h:307 Definition: gbe.h:342 Definition: gbe.h:294 Definition: gbe.h:289 Definition: gbe.h:377 Definition: gbe.h:1022 Definition: gbe.h:361 struct GbeEventInfoData_ExternalFrameLoss external_frame_loss Definition: gbe.h:368 struct GbeEventInfoData_TemperatureAlert temperature_alert Definition: gbe.h:364 struct GbeEventInfoData_CableDiagnostic cablediagnostic Definition: gbe.h:363 struct GbeEventInfoData_ActionCommandTimeout actioncommand_timeout Definition: gbe.h:372 struct GbeEventInfoData_ActionCommandLost actioncommand_lost Definition: gbe.h:371 struct GbeEventInfoData_CorruptedFrame corrupted_frame Definition: gbe.h:367 |