Camera attributes allow control and monitoring of various camera and driver parameters. This section details attribute types and associated functions that enable developers to interact with specific settings and features of the camera.
The camera supports multiple attribute types, each with designated functions for reading and writing values. Here’s a breakdown of the attribute types and the relevant functions:
EVT_CameraGetEnumParam
EVT_CameraSetEnumParam
EVT_CameraGetEnumParamRange
EVT_CameraGetUInt32Param
EVT_CameraSetUInt32Param
EVT_CameraGetUInt32ParamMin
EVT_CameraGetUInt32ParamMax
EVT_CameraGetUInt32ParamInc
EVT_CameraGetInt32Param
EVT_CameraSetInt32Param
EVT_CameraGetInt32ParamMin
EVT_CameraGetInt32ParamMax
EVT_CameraGetInt32ParamInc
EVT_CameraGetFloatParam
EVT_CameraSetFloatParam
EVT_CameraGetFloatParamMin
EVT_CameraGetFloatParamMax
EVT_CameraGetFloatParamUnit
EVT_CameraGetStringParam
EVT_CameraSetStringParam
EVT_CameraGetBoolParam
EVT_CameraSetBoolParam
EVT_CameraExecuteCommand
Each attribute type’s functions facilitate smooth camera configuration, such as setting exposure or triggering specific commands. For example, to adjust exposure time:
EVT_CameraSetUInt32Param(Camera, "Exposure", 1000); // Sets exposure time to 1000 µs
Range and increment retrieval: For UInt32 and Int32 attributes, functions are available to retrieve minimum and maximum values and increment steps. This capability allows developers to validate input values programmatically, ensuring compatibility with the camera’s supported parameters.