COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
gige_lib.cpp File Reference

Support routines for GigE Vision cameras. More...

#include "device/general/gige_lib.h"
#include "support/timelib.h"
#include "math/mathlib.h"
#include <cstring>
#include <sys/select.h>
#include <sys/ioctl.h>
Include dependency graph for gige_lib.cpp:

Functions

gige_handlegige_open (char address[18], uint8_t privilege, uint32_t heartbeat_msec, uint32_t socket_usec, uint32_t streambps)
 Connect to camera. More...
 
void gige_close (gige_handle *handle)
 Close GigE Camera. More...
 
int gige_writereg (gige_handle *handle, uint32_t address, uint32_t data)
 Write Register. More...
 
uint32_t gige_readreg (gige_handle *handle, uint32_t address)
 Read GIGE Register. More...
 
uint32_t gige_readmem (gige_handle *handle, uint32_t address, uint32_t size)
 Read GIGE memory. More...
 
vector< gige_acknowledge_ackgige_discover ()
 Discover GIGE Camera. More...
 
uint32_t gige_address_to_value (char *address)
 IP Address to value. More...
 
char * gige_value_to_address (uint32_t value)
 IP Value to address. More...
 
int a35_config (gige_handle *handle, uint32_t xsize, uint32_t ysize, uint32_t video_rate)
 Configure a35 camera. More...
 
int a35_image (gige_handle *handle, uint32_t frames, uint8_t *buffer, uint16_t bsize)
 Take A35 image stream. More...
 
int pt1000_config (gige_handle *handle, uint32_t xsize, uint32_t ysize)
 Configure pt1000 camera. More...
 
int pt1000_image (gige_handle *handle, uint32_t frames, uint8_t *buffer, uint16_t bsize)
 Take PT1000 image stream. More...
 
int prosilica_config (gige_handle *handle, uint32_t format, uint32_t xbin, uint32_t ybin, uint32_t xsize, uint32_t ysize, uint32_t xoffset, uint32_t yoffset)
 Configure Prosilica camera. More...
 
int prosilica_image (gige_handle *handle, uint16_t emode, uint32_t exposure, uint32_t gain, uint8_t *buffer, uint16_t bsize)
 Take Prosilica image. More...
 
uint32_t gige_readreg2 (gige_handle *handle, uint32_t address)
 Read GIGE Register for A35 with different flag. More...
 
uint32_t gige_request (gige_handle *handle, uint32_t address)
 Send A35 discover message? More...
 

Detailed Description

Support routines for GigE Vision cameras.

gige_lib include file.