![]() |
IDS peak comfortC v1.12.0
|
Controls the behavior of the selected camera LED. More...
Enumerations | |
| enum | peak_led_target { PEAK_LED_TARGET_INVALID , PEAK_LED_TARGET_NETWORK , PEAK_LED_TARGET_STATUS } |
| peak LED target More... | |
| enum | peak_led_mode { PEAK_LED_MODE_INVALID , PEAK_LED_MODE_OFF , PEAK_LED_MODE_BLINK_SLOW , PEAK_LED_MODE_BLINK_FAST , PEAK_LED_MODE_CAMERA_STATUS , PEAK_LED_MODE_NETWORK_STATUS } |
| peak LED mode More... | |
Functions | |
| peak_access_status | peak_LED_GetAccessStatus (peak_camera_handle hCam) |
| Query LED access status. | |
| peak_status | peak_LED_Target_GetList (peak_camera_handle hCam, peak_led_target *targetList, size_t *targetCount) |
| Get the list of currently usable LED targets. | |
| peak_status | peak_LED_Mode_GetList (peak_camera_handle hCam, peak_led_target target, peak_led_mode *modeList, size_t *ledModeCount) |
| Get the list of currently usable LED modes of the specified LED target. | |
| peak_status | peak_LED_Set (peak_camera_handle hCam, peak_led_target target, peak_led_mode mode) |
| Set LED mode for the specified LED target. | |
| peak_status | peak_LED_Get (peak_camera_handle hCam, peak_led_target target, peak_led_mode *mode) |
| Get the LED mode for the specified LED target. | |
Controls the behavior of the selected camera LED.
Example to use the LED control feature:
| enum peak_led_mode |
peak LED mode
Available LED modes.
| Enumerator | |
|---|---|
| PEAK_LED_MODE_INVALID | Invalid LED mode. Use this value for the initialization of variables of type peak_led_mode. |
| PEAK_LED_MODE_OFF | Turns off LED. |
| PEAK_LED_MODE_BLINK_SLOW | Turns LED to slow flashing. |
| PEAK_LED_MODE_BLINK_FAST | Turns LED to fast flashing. |
| PEAK_LED_MODE_CAMERA_STATUS | Turns status LED to show camera status.
|
| PEAK_LED_MODE_NETWORK_STATUS | Turns network LED to show network status.
|
| enum peak_led_target |
peak LED target
Available LED target.
| Enumerator | |
|---|---|
| PEAK_LED_TARGET_INVALID | Invalid LED target. Use this value for the initialization of variables of type peak_led_target. |
| PEAK_LED_TARGET_NETWORK | The camera network LED target. |
| PEAK_LED_TARGET_STATUS | The camera status LED target. |
| peak_status peak_LED_Get | ( | peak_camera_handle | hCam, |
| peak_led_target | target, | ||
| peak_led_mode * | mode ) |
Get the LED mode for the specified LED target.
Reads the current LED mode of the specified LED target.
| [in] | hCam | The camera handle. |
| [out] | target | The LED target. |
| [out] | mode | The LED mode. |
target is an invalid target or *mode is an invalid pointer. hCam is an invalid camera handle. | peak_access_status peak_LED_GetAccessStatus | ( | peak_camera_handle | hCam | ) |
Query LED access status.
Provides the current access status for the LED feature.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
hCam is an invalid camera handle. | peak_status peak_LED_Mode_GetList | ( | peak_camera_handle | hCam, |
| peak_led_target | target, | ||
| peak_led_mode * | modeList, | ||
| size_t * | ledModeCount ) |
Get the list of currently usable LED modes of the specified LED target.
Queries the list of currently selectable LED modes.
The list of usable LED modes may depend on the LED target, the camera configuration and the camera status.
This function implements the Two Staged Data Query principle.
| [in] | hCam | The camera handle. |
| [in] | target | The LED target |
| [out] | modeList | Pointer to a user allocated array buffer to receive the LED mode list. If this parameter is NULL, *ledModeCount will contain the current number of LED modes. The required size of modeList in bytes is ledModeCount x sizeof(peak_led_mode). |
| [in,out] | ledModeCount |
|
modeList is not NULL and the value of *ledModeCount is too small to receive the expected amount of data. ledModeCount is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_LED_Set | ( | peak_camera_handle | hCam, |
| peak_led_target | target, | ||
| peak_led_mode | mode ) |
Set LED mode for the specified LED target.
Writes the LED mode for the specified LED target.
| [in] | hCam | The camera handle. |
| [out] | target | The LED target. |
| [out] | mode | The LED mode. |
Mode or target is out of range. Check the range of valid values via peak_LED_Target_GetList and peak_LED_Mode_GetList. Mode or target is an invalid value. Check peak_led_target and peak_led_mode. hCam is an invalid camera handle. | peak_status peak_LED_Target_GetList | ( | peak_camera_handle | hCam, |
| peak_led_target * | targetList, | ||
| size_t * | targetCount ) |
Get the list of currently usable LED targets.
Queries the list of currently selectable LED targets.
The list of usable LED targets may depend on the camera configuration and the camera status.
This function implements the Two Staged Data Query principle.
| [in] | hCam | The camera handle. |
| [out] | targetList | Pointer to a user allocated array buffer to receive the LED target list. If this parameter is NULL, targetCount will contain the current number of LED targets. The required size of targetList in bytes is targetCount x sizeof(peak_led_target). |
| [in,out] | targetCount |
|
targetList is not NULL and the value of *targetCount is too small to receive the expected amount of data. targetCount is an invalid pointer. hCam is an invalid camera handle.