Reconnect related functions and types. More...
Data Structures | |
| struct | peak_reconnect_information |
| peak information whether reconnect is successful, the acquisition is running and the configuration is restored More... | |
Functions | |
| peak_status | peak_Reconnect_Enable (peak_interface_technology interfaceTech, peak_bool enabled) |
| Control whether the reconnect is enabled or disabled. | |
| peak_bool | peak_Reconnect_IsEnabled (peak_interface_technology interfaceTech) |
| Indicates whether the reconnect is active or inactive for the specified specified interface technology. | |
| peak_access_status | peak_Reconnect_GetAccessStatus (peak_interface_technology interfaceTech) |
| Query the reconnect access status. | |
Reconnect related functions and types.
The reconnect can be enabled or disabled for the specified interface technology. When the reconnect is activated, the camera automatically performs a reconnect if the physical connection is lost and restored. With an enabled reconnect the device will automatically be reopened and restored to its previous state. If the reconnect is active, additional messages are signaled. 'DeviceDisconnected' will be signaled when a physical connection loss is detected. The signal 'DeviceReconnected' will be sent when the camera reconnect is done. A 'DeviceLost' signal will be sent immediately when the reconnect is not active and a device is removed. When the reconnect is active and a disconnected device will be closed a 'DeviceLost' signal will occur.
Example to enable the reconnect for all supported interface technologies:
Example to use the reconnect and disconnect message
| peak_status peak_Reconnect_Enable | ( | peak_interface_technology | interfaceTech, |
| peak_bool | enabled ) |
Control whether the reconnect is enabled or disabled.
Sets the reconnect active or inactive.
| [in] | interfaceTech | interface technology to which the setting refers. |
| [in] | enabled | The desired enabled status. PEAK_TRUE for enabled, PEAK_FALSE for disabled. |
interfaceTech is an invalid interface technology. | peak_access_status peak_Reconnect_GetAccessStatus | ( | peak_interface_technology | interfaceTech | ) |
Query the reconnect access status.
Provides the current access status for the reconnect feature which is specified by its interface technology.
This function implements the Access Status Query principle.
| [in] | interfaceTech | interface technology to which the setting refers. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
| peak_bool peak_Reconnect_IsEnabled | ( | peak_interface_technology | interfaceTech | ) |
Indicates whether the reconnect is active or inactive for the specified specified interface technology.
| [in] | interfaceTech | interface technology to which the setting refers. |