GEV_STATUS GevWriteRegisterByName

(GEV_CAMERA_HANDLE handle, char *name,
 int selector, UINT32 size, void *data);

Description

Writes a camera register, identified by name. A helper function using the pattern GevGetRegisterPtrByName and GevRegisterWrite

Parameters

handle

GEV_CAMERA_HANDLE identifying the camera.

name

Name to use to search for a GEV_REGISTER structure for the camera.

selector

Index into a group of registers providing the same functionality. These register groups need to be set up properly in the GEV_REGISTER structure.

This is generally 0 as the ‘array’ based functions can be used to access multiple contiguous locations.

size

Size of the data being written.

*data

Pointer to the data to be written.

Return Value

GEV_STATUS STATUS

Possible values are:

GEVLIB_OK
GEVLIB_ERROR_INVALID_HANDLE
GEVLIB_ERROR_RESOURCE_NOT_ENABLED (GEV_REGISTER struct is for a register that is not available)
GEVLIB_ERROR_NOT_IMPLEMENTED (GEV_REGISTER struct is for a Read-Only register)
GEVLIB_ERROR_SOFTWARE (GEV_REGISTER struct defines an unsupported register type)


Related Topics

Member Function Descriptions