COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Functions | |
vector< gige_acknowledge_ack > | gige_discover () |
Discover GIGE Camera. More... | |
gige_handle * | gige_open (char address[18], uint8_t privilege, uint32_t heartbeat_msec, uint32_t socket_usec, uint32_t streambps) |
Connect to 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 nbytes) |
Read GIGE memory. More... | |
void | gige_close (gige_handle *handle) |
Close 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 | 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... | |
int | a35_image (gige_handle *handle, uint32_t frames, uint8_t *buffer, uint16_t bsize) |
Take A35 image stream. More... | |
int | a35_config (gige_handle *handle, uint32_t xsize, uint32_t ysize, uint32_t video_rate) |
Configure a35 camera. More... | |
int | pt1000_image (gige_handle *handle, uint32_t frames, uint8_t *buffer, uint16_t bsize) |
Take PT1000 image stream. More... | |
int | pt1000_config (gige_handle *handle, uint32_t xsize, uint32_t ysize) |
Configure pt1000 camera. More... | |
vector<gige_acknowledge_ack> gige_discover | ( | ) |
Discover GIGE Camera.
Broadcast GIGE DISCOVERY_CMD, accepting all the reponses and returning them in a vector of gige_acknowledge_ack.
gige_handle* gige_open | ( | char | address[18], |
uint8_t | privilege, | ||
uint32_t | heartbeat_msec, | ||
uint32_t | socket_usec, | ||
uint32_t | streambps | ||
) |
Connect to camera.
Establish a GVCP control connection to a GIGE camera, at the indicated address, with the requested privileges. Once the camera connection is opened, some register must be either read or written within the supplied Heartbeat_Timeout period or the conection will be shut down.
address | IP address of the desired camera |
privilege | Requested privilege. |
heartbeat_msec | Period between commands to keep connection open. |
socket_usec | Timeout on socket listen calls. |
streambps | Bytes per Second throttle on camera flow rate (socket_usec will be increased to match decreasing streambps.) |
int gige_writereg | ( | gige_handle * | handle, |
uint32_t | address, | ||
uint32_t | data | ||
) |
Write Register.
Write indicated GigE register with provided data.
handle | Handle for GigE camera as returned from gige_open. |
address | Address of register. |
data | Data to be written. |
uint32_t gige_readreg | ( | gige_handle * | handle, |
uint32_t | address | ||
) |
Read GIGE Register.
Read indicated GigE register and return data.
handle | Handle for GigE camera as returned from gige_open. |
address | Address of register. |
uint32_t gige_readmem | ( | gige_handle * | handle, |
uint32_t | address, | ||
uint32_t | size | ||
) |
Read GIGE memory.
Read indicated GigE memory and return data.
handle | Handle for GigE camera as returned from gige_open. |
address | Address of memory. |
size | Size of memory area to read. |
void gige_close | ( | gige_handle * | handle | ) |
Close GigE Camera.
Close an existing Control Channel to a GigE camera by writing 0 to the CCP register and closing all sockets.
handle | Handle for GigE camera as returned from gige_open. |
uint32_t gige_address_to_value | ( | char * | address | ) |
IP Address to value.
Convert a 17 character IP address string to a 4 byte unsigned integer.
address | Dot notation IP address. |
char* gige_value_to_address | ( | uint32_t | value | ) |
IP Value to address.
Convert a 4 byte unsigned integer to a dot notation address string.
value | 4 byte unsigned integer. |
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.
Setup the basic image parameters for a Prosilica camera being used over GIGE. The camera must first be opened with a call to gige_open.
handle | Pointer to gige_handle returned by gige_open. |
format | Pixel format for output as defined in GigE Vision Prosilica constants. |
xbin | Factor for binning in x direction. |
ybin | Factor for binning in y direction. |
xsize | Number of pixels in x direction. |
ysize | Number of pixels in y direction. |
xoffset | Starting pixel of sub-image in x direction. |
yoffset | Starting pixel of sub-image in y direction. |
int prosilica_image | ( | gige_handle * | handle, |
uint16_t | emode, | ||
uint32_t | exposure, | ||
uint32_t | gain, | ||
uint8_t * | buffer, | ||
uint16_t | bsize | ||
) |
Take Prosilica image.
Command Prosilica camera being used over GIGE to take a single image of the indicated exposure length. The resulting image will be stored in the provided image buffer.
handle | Pointer to gige_handle returned by gige_open. |
emode | One of PROSILICA_ExposureMode_AutoOff, PROSILICA_ExposureMode_AutoOnce, PROSILICA_ExposureMode_Auto. |
exposure | Exposure time in usec. |
gain | DN mutiplicative value. |
buffer | Pointer to buffer for storing image. |
bsize | Maximum size of buffer. |
int a35_image | ( | gige_handle * | handle, |
uint32_t | frames, | ||
uint8_t * | buffer, | ||
uint16_t | bsize | ||
) |
Take A35 image stream.
Command A35 camera being used over GIGE to take a stream of images of the indicated exposure length. The resulting image will be stored in the provided image buffer.
handle | Pointer to gige_handle returned by gige_open. |
frames | Number of images to store. |
buffer | Pointer to buffer for storing image. |
bsize | Number of bytes to expect at a go. |
int a35_config | ( | gige_handle * | handle, |
uint32_t | xsize, | ||
uint32_t | ysize, | ||
uint32_t | video_rate | ||
) |
Configure a35 camera.
Setup the basic image parameters for a a35 camera being used over GIGE. The camera must first be opened with a call to gige_open.
handle | Pointer to gige_handle returned by gige_open. |
xsize | Number of pixels in x direction. |
ysize | Number of pixels in y direction. |
video_rate | 30 or 60 Hz. |
int pt1000_image | ( | gige_handle * | handle, |
uint32_t | frames, | ||
uint8_t * | buffer, | ||
uint16_t | bsize | ||
) |
Take PT1000 image stream.
Command PT1000 camera being used over GIGE to take a stream of images of the indicated exposure length. The resulting image will be stored in the provided image buffer.
handle | Pointer to gige_handle returned by gige_open. |
frames | Number of images to store. |
buffer | Pointer to buffer for storing image. |
bsize | Number of bytes to expect at a go. |
int pt1000_config | ( | gige_handle * | handle, |
uint32_t | xsize, | ||
uint32_t | ysize | ||
) |
Configure pt1000 camera.
Setup the basic image parameters for a pt1000 camera being used over GIGE. The camera must first be opened with a call to gige_open.
handle | Pointer to gige_handle returned by gige_open. |
xsize | Number of pixels in x direction. |
ysize | Number of pixels in y direction. |
video_rate | 30 or 60 Hz. |