![]() |
IDS peak comfortC v1.9.0
|
Enumerations | |
| enum | peak_gain_type { PEAK_GAIN_TYPE_INVALID , PEAK_GAIN_TYPE_ANALOG , PEAK_GAIN_TYPE_DIGITAL , PEAK_GAIN_TYPE_COMBINED } |
| peak Gain type More... | |
| enum | peak_gain_channel { PEAK_GAIN_CHANNEL_INVALID , PEAK_GAIN_CHANNEL_RED , PEAK_GAIN_CHANNEL_GREEN , PEAK_GAIN_CHANNEL_BLUE , PEAK_GAIN_CHANNEL_MASTER } |
| peak Gain channel More... | |
Functions | |
| peak_access_status | peak_Gain_GetAccessStatus (peak_camera_handle hCam, peak_gain_type gainType, peak_gain_channel gainChannel) |
| Query the gain access status for the specified gain type and gain channel. | |
| peak_status | peak_Gain_GetChannelList (peak_camera_handle hCam, peak_gain_type gainType, peak_gain_channel *gainChannelList, size_t *gainChannelCount) |
| Get the list of available gain channels for the given gain type. | |
| peak_status | peak_Gain_GetRange (peak_camera_handle hCam, peak_gain_type gainType, peak_gain_channel gainChannel, double *minGain, double *maxGain, double *incGain) |
| Get the current range of valid gain values for the specified gain type and gain channel. | |
| peak_status | peak_Gain_Set (peak_camera_handle hCam, peak_gain_type gainType, peak_gain_channel gainChannel, double gain) |
| Set the gain for the specified gain type and gain channel. | |
| peak_status | peak_Gain_Get (peak_camera_handle hCam, peak_gain_type gainType, peak_gain_channel gainChannel, double *gain) |
| Get the gain value for the specified gain type and gain channel. | |
Gain related functions and types.
This feature is applied in the camera.
There is also a host implementation. See Host Features / Gain.
| enum peak_gain_channel |
peak Gain channel
The gain channel is used in the gain related functions and specifies which channel of gain is addressed or used.
| enum peak_gain_type |
peak Gain type
The gain type is used in the gain related functions and specifies which type of gain is addressed or used.
| peak_status peak_Gain_Get | ( | peak_camera_handle | hCam, |
| peak_gain_type | gainType, | ||
| peak_gain_channel | gainChannel, | ||
| double * | gain | ||
| ) |
Get the gain value for the specified gain type and gain channel.
Reads the current gain value for the specified gain type and gain channel.
| [in] | hCam | The camera handle. |
| [in] | gainType | The addressed gain type. |
| [in] | gainChannel | The addressed gain channel. |
| [out] | gain | The gain value. |
gainType is an invalid gain type or gainChannel is an invalid gain channel or gain is an invalid pointer. Check peak_gain_type and peak_gain_channel. hCam is an invalid camera handle. | peak_access_status peak_Gain_GetAccessStatus | ( | peak_camera_handle | hCam, |
| peak_gain_type | gainType, | ||
| peak_gain_channel | gainChannel | ||
| ) |
Query the gain access status for the specified gain type and gain channel.
Provides the current access status of the gain feature for the specified gain type and gain channel.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
| [in] | gainType | The gain type. |
| [in] | gainChannel | The gain channel. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
gainType is an invalid gain type or gainChannel is an invalid gain channel. Check peak_gain_type and peak_gain_channel. hCam is an invalid camera handle. | peak_status peak_Gain_GetChannelList | ( | peak_camera_handle | hCam, |
| peak_gain_type | gainType, | ||
| peak_gain_channel * | gainChannelList, | ||
| size_t * | gainChannelCount | ||
| ) |
Get the list of available gain channels for the given gain type.
Queries the list of available gain channels for the specified gain type.
This function implements the Two Staged Data Query principle.
| [in] | hCam | The camera handle. |
| [in] | gainType | The addressed gain type. |
| [out] | gainChannelList | Pointer to a user allocated array buffer to receive the gain channel list. If this parameter is NULL, gainChannelCount will contain the number of gain channels. The required size of gainChannelList in bytes is gainChannelCount x sizeof(peak_gain_channel). |
| [in,out] | gainChannelCount |
|
gainChannelList is not NULL and the value of *gainChannelCount is too small to receive the expected amount of data. gainType is an invalid gain channel or gainChannelCount is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_Gain_GetRange | ( | peak_camera_handle | hCam, |
| peak_gain_type | gainType, | ||
| peak_gain_channel | gainChannel, | ||
| double * | minGain, | ||
| double * | maxGain, | ||
| double * | incGain | ||
| ) |
Get the current range of valid gain values for the specified gain type and gain channel.
Queries the current range of valid values for the gain for the specified gain type and gain channel.
The range of valid gain values may depend on the camera configuration and the camera status.
| [in] | hCam | The camera handle. |
| [in] | gainType | The addressed gain type. |
| [in] | gainChannel | The addressed gain channel. |
| [out] | minGain | The minimum gain value. |
| [out] | maxGain | The maximum gain value. |
| [out] | incGain | The gain value increment. |
gainType is an invalid gain type or gainChannel is an invalid gain channel or at least one of minGain, maxGain, and incGain is an invalid pointer. Check peak_gain_type and peak_gain_channel. hCam is an invalid camera handle. | peak_status peak_Gain_Set | ( | peak_camera_handle | hCam, |
| peak_gain_type | gainType, | ||
| peak_gain_channel | gainChannel, | ||
| double | gain | ||
| ) |
Set the gain for the specified gain type and gain channel.
Writes the desired gain value for the specified gain type and gain channel.
| [in] | hCam | The camera handle. |
| [in] | gainType | The addressed gain type. |
| [in] | gainChannel | The addressed gain channel. |
| [in] | gain | The gain value to set. |
gain is out of range. Check the range of valid values via peak_Gain_GetRange. gainType is an invalid gain type or gainChannel is an invalid gain channel. Check peak_gain_type and peak_gain_channel. hCam is an invalid camera handle.