OrbbecSDK 2.10.6
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
Device.h
Go to the documentation of this file.
1// Copyright (c) Orbbec Inc. All Rights Reserved.
2// Licensed under the MIT License.
3
8#pragma once
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include "ObTypes.h"
15#include "Property.h"
16#include "MultipleDevices.h"
17#include "Advanced.h"
18
25OB_EXPORT void ob_delete_device(ob_device *device, ob_error **error);
26
36
47
56OB_EXPORT void ob_device_set_int_property(ob_device *device, ob_property_id property_id, int32_t value, ob_error **error);
57
67OB_EXPORT int32_t ob_device_get_int_property(ob_device *device, ob_property_id property_id, ob_error **error);
68
79
88OB_EXPORT void ob_device_set_float_property(ob_device *device, ob_property_id property_id, float value, ob_error **error);
89
99OB_EXPORT float ob_device_get_float_property(ob_device *device, ob_property_id property_id, ob_error **error);
100
111
120OB_EXPORT void ob_device_set_bool_property(ob_device *device, ob_property_id property_id, bool value, ob_error **error);
121
131OB_EXPORT bool ob_device_get_bool_property(ob_device *device, ob_property_id property_id, ob_error **error);
132
143
153OB_EXPORT void ob_device_set_structured_data(ob_device *device, ob_property_id property_id, const uint8_t *data, uint32_t data_size, ob_error **error);
154
164OB_EXPORT void ob_device_get_structured_data(ob_device *device, ob_property_id property_id, uint8_t *data, uint32_t *data_size, ob_error **error);
165
177
211OB_EXPORT void ob_device_write_license_info(ob_device *device, const char *license_info_json, uint32_t license_info_json_size, ob_error **error);
212
222OB_EXPORT void ob_device_read_license_info(const ob_device *device, char *license_info_json, uint32_t license_info_json_size, ob_error **error);
223
234OB_EXPORT void ob_device_clear_license_info(ob_device *device, ob_error **error);
235
245OB_EXPORT void ob_device_get_raw_data(ob_device *device, ob_property_id property_id, ob_get_data_callback cb, void *user_data, ob_error **error);
246
255OB_EXPORT void ob_device_write_customer_data(ob_device *device, const void *data, uint32_t data_size, ob_error **error);
256
265OB_EXPORT void ob_device_read_customer_data(ob_device *device, void *data, uint32_t *data_size, ob_error **error);
266
275OB_EXPORT uint32_t ob_device_get_supported_property_count(const ob_device *device, ob_error **error);
276
286OB_EXPORT ob_property_item ob_device_get_supported_property_item(const ob_device *device, uint32_t index, ob_error **error);
287
298OB_EXPORT bool ob_device_is_property_supported(const ob_device *device, ob_property_id property_id, ob_permission_type permission, ob_error **error);
299
308OB_EXPORT bool ob_device_is_global_timestamp_supported(const ob_device *device, ob_error **error);
309
317OB_EXPORT void ob_device_enable_global_timestamp(ob_device *device, bool enable, ob_error **error);
318
329OB_EXPORT void ob_device_update_firmware(ob_device *device, const char *path, ob_device_fw_update_callback callback, bool async, void *user_data,
330 ob_error **error);
331
343OB_EXPORT void ob_device_update_firmware_from_data(ob_device *device, const uint8_t *data, uint32_t data_size, ob_device_fw_update_callback callback,
344 bool async, void *user_data, ob_error **error);
345
356OB_EXPORT void ob_device_update_optional_depth_presets(ob_device *device, const char file_path_list[][OB_PATH_MAX], uint8_t path_count,
357 ob_device_fw_update_callback callback, void *user_data, ob_error **error);
358
369OB_EXPORT void ob_device_update_optional_depth_presets_from_data(ob_device *device, const ob_data_view *data_list, uint8_t count,
370 ob_device_fw_update_callback callback, void *user_data, ob_error **error);
371
380OB_EXPORT void ob_device_reboot(ob_device *device, ob_error **error);
381
391
400OB_EXPORT void ob_device_set_state_changed_callback(ob_device *device, ob_device_state_callback callback, void *user_data, ob_error **error);
401
414OB_EXPORT void ob_device_enable_heartbeat(ob_device *device, bool enable, ob_error **error);
415
423OB_EXPORT void ob_device_enable_firmware_log(ob_device *device, bool enable, ob_error **error);
424
433OB_EXPORT bool ob_device_is_firmware_log_enabled(ob_device *device, ob_error **error);
434
443OB_EXPORT void ob_device_set_monitor_poll_interval(ob_device *device, uint32_t interval_ms, ob_error **error);
444
454OB_EXPORT uint32_t ob_device_get_monitor_poll_interval(ob_device *device, ob_error **error);
455
465OB_EXPORT bool ob_device_sync_hardware_pps_time(ob_device *device, uint64_t hardware_pps_time, ob_error **error);
466
479OB_EXPORT void ob_device_send_and_receive_data(ob_device *device, const uint8_t *send_data, uint32_t send_data_size, uint8_t *receive_data,
480 uint32_t *receive_data_size, ob_error **error);
481
491
498OB_EXPORT void ob_delete_device_info(ob_device_info *info, ob_error **error);
499
508OB_EXPORT const char *ob_device_info_get_name(const ob_device_info *info, ob_error **error);
509
518OB_EXPORT int ob_device_info_get_pid(const ob_device_info *info, ob_error **error);
519
528OB_EXPORT int ob_device_info_get_vid(const ob_device_info *info, ob_error **error);
529
538OB_EXPORT const char *ob_device_info_get_uid(const ob_device_info *info, ob_error **error);
539
548OB_EXPORT const char *ob_device_info_get_serial_number(const ob_device_info *info, ob_error **error);
549
558OB_EXPORT const char *ob_device_info_get_firmware_version(const ob_device_info *info, ob_error **error);
559
568OB_EXPORT const char *ob_device_info_get_connection_type(const ob_device_info *info, ob_error **error);
569
580OB_EXPORT const char *ob_device_info_get_ip_address(const ob_device_info *info, ob_error **error);
581
589OB_EXPORT const char *ob_device_info_get_subnet_mask(const ob_device_info *info, ob_error **error);
590
599OB_EXPORT const char *ob_device_info_get_gateway(const ob_device_info *info, ob_error **error);
600
609OB_EXPORT const char *ob_device_info_get_hardware_version(const ob_device_info *info, ob_error **error);
610
620OB_EXPORT bool ob_device_is_extension_info_exist(const ob_device *device, const char *info_key, ob_error **error);
621
632OB_EXPORT const char *ob_device_get_extension_info(const ob_device *device, const char *info_key, ob_error **error);
633
642OB_EXPORT const char *ob_device_info_get_supported_min_sdk_version(const ob_device_info *info, ob_error **error);
643
652OB_EXPORT const char *ob_device_info_get_asicName(const ob_device_info *info, ob_error **error);
653
663
670OB_EXPORT void ob_delete_device_list(ob_device_list *list, ob_error **error);
671
680OB_EXPORT uint32_t ob_device_list_get_count(const ob_device_list *list, ob_error **error);
681
691OB_EXPORT const char *ob_device_list_get_device_name(const ob_device_list *list, uint32_t index, ob_error **error);
692
702OB_EXPORT int ob_device_list_get_device_pid(const ob_device_list *list, uint32_t index, ob_error **error);
703
713OB_EXPORT int ob_device_list_get_device_vid(const ob_device_list *list, uint32_t index, ob_error **error);
714
724OB_EXPORT const char *ob_device_list_get_device_uid(const ob_device_list *list, uint32_t index, ob_error **error);
725
735OB_EXPORT const char *ob_device_list_get_device_serial_number(const ob_device_list *list, uint32_t index, ob_error **error);
736
747OB_EXPORT const char *ob_device_list_get_device_connection_type(const ob_device_list *list, uint32_t index, ob_error **error);
748
760OB_EXPORT const char *ob_device_list_get_device_ip_address(const ob_device_list *list, uint32_t index, ob_error **error);
761
773OB_EXPORT const char *ob_device_list_get_device_subnet_mask(const ob_device_list *list, uint32_t index, ob_error **error);
774
786OB_EXPORT const char *ob_device_list_get_device_gateway(const ob_device_list *list, uint32_t index, ob_error **error);
787
799OB_EXPORT const char *ob_device_list_get_device_local_mac(const ob_device_list *list, uint32_t index, ob_error **error);
800
812OB_EXPORT const char *ob_device_list_get_device_local_ip(const ob_device_list *list, uint32_t index, ob_error **error);
813
825OB_EXPORT uint8_t ob_device_list_get_device_local_subnet_length(const ob_device_list *list, uint32_t index, ob_error **error);
826
838OB_EXPORT const char *ob_device_list_get_device_local_gateway(const ob_device_list *list, uint32_t index, ob_error **error);
839
851OB_EXPORT const char *ob_device_list_get_device_local_net_if_name(const ob_device_list *list, uint32_t index, ob_error **error);
852
867
880OB_EXPORT const char *ob_device_list_get_device_user_name(const ob_device_list *list, uint32_t index, ob_error **error);
881
900
920 ob_error **error);
921
935OB_EXPORT ob_device *ob_device_list_get_device(const ob_device_list *list, uint32_t index, ob_error **error);
936
951OB_EXPORT ob_device *ob_device_list_get_device_ex(const ob_device_list *list, uint32_t index, ob_device_access_mode accessMode, ob_error **error);
952
966OB_EXPORT ob_device *ob_device_list_get_device_by_serial_number(const ob_device_list *list, const char *serial_number, ob_error **error);
967
982OB_EXPORT ob_device *ob_device_list_get_device_by_serial_number_ex(const ob_device_list *list, const char *serial_number, ob_device_access_mode accessMode,
983 ob_error **error);
984
1002OB_EXPORT ob_device *ob_device_list_get_device_by_uid(const ob_device_list *list, const char *uid, ob_error **error);
1003
1022OB_EXPORT ob_device *ob_device_list_get_device_by_uid_ex(const ob_device_list *list, const char *uid, ob_device_access_mode accessMode, ob_error **error);
1023
1037
1046OB_EXPORT uint32_t ob_camera_param_list_get_count(ob_camera_param_list *param_list, ob_error **error);
1047
1057OB_EXPORT ob_camera_param ob_camera_param_list_get_param(ob_camera_param_list *param_list, uint32_t index, ob_error **error);
1058
1065OB_EXPORT void ob_delete_camera_param_list(ob_camera_param_list *param_list, ob_error **error);
1066
1067// The following interfaces are deprecated and are retained here for compatibility purposes.
1068#define ob_device_list_device_count ob_device_list_get_count
1069#define ob_device_list_get_extension_info ob_device_info_get_extension_info
1070#define ob_device_upgrade ob_device_update_firmware
1071#define ob_device_upgrade_from_data ob_device_update_firmware_from_data
1072#define ob_device_get_supported_property ob_device_get_supported_property_item
1073#define ob_device_state_changed ob_device_set_state_changed_callback
1074#define ob_device_info_name ob_device_info_get_name
1075#define ob_device_info_pid ob_device_info_get_pid
1076#define ob_device_info_vid ob_device_info_get_vid
1077#define ob_device_info_uid ob_device_info_get_uid
1078#define ob_device_info_serial_number ob_device_info_get_serial_number
1079#define ob_device_info_firmware_version ob_device_info_get_firmware_version
1080#define ob_device_info_connection_type ob_device_info_get_connection_type
1081#define ob_device_info_ip_address ob_device_info_get_ip_address
1082#define ob_device_info_hardware_version ob_device_info_get_hardware_version
1083#define ob_device_info_supported_min_sdk_version ob_device_info_get_supported_min_sdk_version
1084#define ob_device_info_asicName ob_device_info_get_asicName
1085#define ob_device_info_device_type ob_device_info_get_device_type
1086#define ob_device_list_get_device_count ob_device_list_get_count
1087#define ob_camera_param_list_count ob_camera_param_list_get_count
1088
1089#ifdef __cplusplus
1090}
1091#endif
OB_EXPORT const char * ob_device_list_get_device_local_ip(const ob_device_list *list, uint32_t index, ob_error **error)
Get the IP address of the host network interface corresponding to the network device.
OB_EXPORT ob_device * ob_device_list_get_device(const ob_device_list *list, uint32_t index, ob_error **error)
Create a device.
OB_EXPORT const char * ob_device_info_get_uid(const ob_device_info *info, ob_error **error)
Get device uid.
OB_EXPORT uint32_t ob_device_get_monitor_poll_interval(ob_device *device, ob_error **error)
Get the device monitor polling interval.
OB_EXPORT ob_ip_source_type ob_device_list_get_device_ip_source_type(const ob_device_list *list, uint32_t index, ob_error **error)
Get the current GVCP IP configuration status of the device at the specified index.
OB_EXPORT ob_device * ob_device_list_get_device_by_serial_number(const ob_device_list *list, const char *serial_number, ob_error **error)
Create a device.
OB_EXPORT ob_device * ob_device_list_get_device_by_serial_number_ex(const ob_device_list *list, const char *serial_number, ob_device_access_mode accessMode, ob_error **error)
Create a device.
OB_EXPORT uint32_t ob_device_list_get_count(const ob_device_list *list, ob_error **error)
Get the number of devices.
OB_EXPORT void ob_device_enable_heartbeat(ob_device *device, bool enable, ob_error **error)
Enable or disable the device heartbeat.
OB_EXPORT ob_property_item ob_device_get_supported_property_item(const ob_device *device, uint32_t index, ob_error **error)
Get the type of property supported by the device.
OB_EXPORT const char * ob_device_list_get_device_local_net_if_name(const ob_device_list *list, uint32_t index, ob_error **error)
Get the name of the host network interface corresponding to the device.
OB_EXPORT void ob_device_set_structured_data(ob_device *device, ob_property_id property_id, const uint8_t *data, uint32_t data_size, ob_error **error)
Set structured data.
OB_EXPORT void ob_device_reboot(ob_device *device, ob_error **error)
Device reboot.
OB_EXPORT void ob_device_set_int_property(ob_device *device, ob_property_id property_id, int32_t value, ob_error **error)
Set an integer type of device property.
OB_EXPORT const char * ob_device_list_get_device_subnet_mask(const ob_device_list *list, uint32_t index, ob_error **error)
Get device subnet mask.
OB_EXPORT int ob_device_info_get_vid(const ob_device_info *info, ob_error **error)
Get device vid.
OB_EXPORT ob_device_state ob_device_get_device_state(const ob_device *device, ob_error **error)
Get the current device status.
OB_EXPORT const char * ob_device_info_get_name(const ob_device_info *info, ob_error **error)
Get device name.
OB_EXPORT void ob_device_set_monitor_poll_interval(ob_device *device, uint32_t interval_ms, ob_error **error)
Set the device monitor polling interval.
OB_EXPORT ob_device_access_state ob_device_list_query_device_access_state(const ob_device_list *list, uint32_t index, ob_error **error)
Query the current device access state without opening the device.
OB_EXPORT bool ob_device_is_global_timestamp_supported(const ob_device *device, ob_error **error)
Check if the device supports global timestamp.
OB_EXPORT const char * ob_device_info_get_subnet_mask(const ob_device_info *info, ob_error **error)
Get the network device subnet mask.
OB_EXPORT ob_float_property_range ob_device_get_float_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get the float type of device property range.
OB_EXPORT const char * ob_device_info_get_asicName(const ob_device_info *info, ob_error **error)
Get the chip name.
OB_EXPORT const char * ob_device_info_get_supported_min_sdk_version(const ob_device_info *info, ob_error **error)
Get the minimum SDK version number supported by the device.
OB_EXPORT uint8_t ob_device_list_get_device_local_subnet_length(const ob_device_list *list, uint32_t index, ob_error **error)
Get the subnet length of the host network interface corresponding to the network device.
OB_EXPORT const char * ob_device_list_get_device_local_mac(const ob_device_list *list, uint32_t index, ob_error **error)
Get the MAC address of the host network interface corresponding to the network device.
OB_EXPORT bool ob_device_get_bool_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get a boolean type of device property.
OB_EXPORT const char * ob_device_get_extension_info(const ob_device *device, const char *info_key, ob_error **error)
Get the device extension information.
OB_EXPORT uint32_t ob_device_get_supported_property_count(const ob_device *device, ob_error **error)
Get the number of properties supported by the device.
OB_EXPORT ob_device * ob_device_list_get_device_by_uid_ex(const ob_device_list *list, const char *uid, ob_device_access_mode accessMode, ob_error **error)
Create device by uid.
OB_EXPORT bool ob_device_is_firmware_log_enabled(ob_device *device, ob_error **error)
Check whether the device firmware log is enabled.
OB_EXPORT void ob_delete_device_info(ob_device_info *info, ob_error **error)
Delete device information.
OB_EXPORT const char * ob_device_info_get_connection_type(const ob_device_info *info, ob_error **error)
Get the device connection type.
OB_EXPORT int ob_device_list_get_device_vid(const ob_device_list *list, uint32_t index, ob_error **error)
Get the vid of the specified device.
OB_EXPORT bool ob_device_is_license_authorization_supported(const ob_device *device, ob_error **error)
Check whether the device supports license authorization.
OB_EXPORT const char * ob_device_list_get_device_name(const ob_device_list *list, uint32_t index, ob_error **error)
Get device name.
OB_EXPORT int ob_device_info_get_pid(const ob_device_info *info, ob_error **error)
Get device pid.
OB_EXPORT bool ob_device_is_property_supported(const ob_device *device, ob_property_id property_id, ob_permission_type permission, ob_error **error)
Check if a device property permission is supported.
OB_EXPORT void ob_device_enable_firmware_log(ob_device *device, bool enable, ob_error **error)
Enable or disable the device firmware log. If the device does not support firmware log,...
OB_EXPORT void ob_device_update_optional_depth_presets_from_data(ob_device *device, const ob_data_view *data_list, uint8_t count, ob_device_fw_update_callback callback, void *user_data, ob_error **error)
Update the device optional depth presets from data loaded in memory.
OB_EXPORT void ob_device_set_float_property(ob_device *device, ob_property_id property_id, float value, ob_error **error)
Set a float type of device property.
OB_EXPORT ob_camera_param ob_camera_param_list_get_param(ob_camera_param_list *param_list, uint32_t index, ob_error **error)
Get camera parameters from the camera parameter list.
OB_EXPORT void ob_device_write_customer_data(ob_device *device, const void *data, uint32_t data_size, ob_error **error)
Set customer data.
OB_EXPORT ob_int_property_range ob_device_get_int_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get the integer type of device property range.
OB_EXPORT ob_sensor * ob_device_get_sensor(ob_device *device, ob_sensor_type type, ob_error **error)
Get a device's sensor.
OB_EXPORT ob_camera_param_list * ob_device_get_calibration_camera_param_list(ob_device *device, ob_error **error)
Get the original parameter list of camera calibration saved on the device.
OB_EXPORT bool ob_device_is_extension_info_exist(const ob_device *device, const char *info_key, ob_error **error)
Check if the device extension information exists.
OB_EXPORT void ob_delete_camera_param_list(ob_camera_param_list *param_list, ob_error **error)
Delete the camera parameter list.
OB_EXPORT const char * ob_device_info_get_hardware_version(const ob_device_info *info, ob_error **error)
Get the hardware version number.
OB_EXPORT ob_device_access_state ob_device_list_query_device_access_state_by_serial_number(const ob_device_list *list, const char *serial_number, ob_error **error)
Query the current device access state by serial number without opening the device.
OB_EXPORT const char * ob_device_list_get_device_serial_number(const ob_device_list *list, uint32_t index, ob_error **error)
Get the serial number of the specified device.
OB_EXPORT void ob_device_send_and_receive_data(ob_device *device, const uint8_t *send_data, uint32_t send_data_size, uint8_t *receive_data, uint32_t *receive_data_size, ob_error **error)
Send data to the device and receive data from the device.
OB_EXPORT const char * ob_device_info_get_serial_number(const ob_device_info *info, ob_error **error)
Get device serial number.
OB_EXPORT ob_device_info * ob_device_get_device_info(const ob_device *device, ob_error **error)
Get device information.
OB_EXPORT void ob_device_read_license_info(const ob_device *device, char *license_info_json, uint32_t license_info_json_size, ob_error **error)
Read signed device license information as SDK license_info JSON.
OB_EXPORT void ob_device_enable_global_timestamp(ob_device *device, bool enable, ob_error **error)
Enable or disable global timestamp.
OB_EXPORT ob_device_type ob_device_info_get_device_type(const ob_device_info *info, ob_error **error)
Get the device type.
OB_EXPORT const char * ob_device_list_get_device_ip_address(const ob_device_list *list, uint32_t index, ob_error **error)
Get device ip address.
OB_EXPORT void ob_device_set_state_changed_callback(ob_device *device, ob_device_state_callback callback, void *user_data, ob_error **error)
Set the device state changed callback.
OB_EXPORT const char * ob_device_list_get_device_local_gateway(const ob_device_list *list, uint32_t index, ob_error **error)
Get the gateway of the host network interface corresponding to the network device.
OB_EXPORT void ob_device_update_optional_depth_presets(ob_device *device, const char file_path_list[][OB_PATH_MAX], uint8_t path_count, ob_device_fw_update_callback callback, void *user_data, ob_error **error)
Update the device optional depth presets.
OB_EXPORT ob_device * ob_device_list_get_device_ex(const ob_device_list *list, uint32_t index, ob_device_access_mode accessMode, ob_error **error)
Create a device.
OB_EXPORT ob_device * ob_device_list_get_device_by_uid(const ob_device_list *list, const char *uid, ob_error **error)
Create device by uid.
OB_EXPORT const char * ob_device_info_get_ip_address(const ob_device_info *info, ob_error **error)
Get the device IP address.
OB_EXPORT void ob_delete_device(ob_device *device, ob_error **error)
Delete a device.
OB_EXPORT void ob_device_get_raw_data(ob_device *device, ob_property_id property_id, ob_get_data_callback cb, void *user_data, ob_error **error)
Get raw data of a device property.
OB_EXPORT void ob_device_get_structured_data(ob_device *device, ob_property_id property_id, uint8_t *data, uint32_t *data_size, ob_error **error)
Get structured data of a device property.
OB_EXPORT ob_sensor_list * ob_device_get_sensor_list(const ob_device *device, ob_error **error)
List all sensors.
OB_EXPORT int ob_device_list_get_device_pid(const ob_device_list *list, uint32_t index, ob_error **error)
Get the pid of the specified device.
OB_EXPORT float ob_device_get_float_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get a float type of device property.
OB_EXPORT uint32_t ob_camera_param_list_get_count(ob_camera_param_list *param_list, ob_error **error)
Get the number of camera parameter lists.
OB_EXPORT const char * ob_device_info_get_gateway(const ob_device_info *info, ob_error **error)
Get the network device gateway address.
OB_EXPORT ob_bool_property_range ob_device_get_bool_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get the boolean type of device property range.
OB_EXPORT void ob_device_update_firmware(ob_device *device, const char *path, ob_device_fw_update_callback callback, bool async, void *user_data, ob_error **error)
Update the device firmware.
OB_EXPORT void ob_device_read_customer_data(ob_device *device, void *data, uint32_t *data_size, ob_error **error)
Get customer data of a device property.
OB_EXPORT const char * ob_device_list_get_device_uid(const ob_device_list *list, uint32_t index, ob_error **error)
Get the uid of the specified device.
OB_EXPORT void ob_device_set_bool_property(ob_device *device, ob_property_id property_id, bool value, ob_error **error)
Set a boolean type of device property.
OB_EXPORT void ob_device_write_license_info(ob_device *device, const char *license_info_json, uint32_t license_info_json_size, ob_error **error)
Write signed device license information.
OB_EXPORT int32_t ob_device_get_int_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get an integer type of device property.
OB_EXPORT void ob_device_update_firmware_from_data(ob_device *device, const uint8_t *data, uint32_t data_size, ob_device_fw_update_callback callback, bool async, void *user_data, ob_error **error)
Update the device firmware from data.
OB_EXPORT bool ob_device_sync_hardware_pps_time(ob_device *device, uint64_t hardware_pps_time, ob_error **error)
Synchronize the device time (synchronize hardwarePPS time to device).
OB_EXPORT const char * ob_device_list_get_device_connection_type(const ob_device_list *list, uint32_t index, ob_error **error)
Get device connection type.
OB_EXPORT const char * ob_device_list_get_device_user_name(const ob_device_list *list, uint32_t index, ob_error **error)
Get the user-defined name of the device at the specified index.
OB_EXPORT void ob_delete_device_list(ob_device_list *list, ob_error **error)
Delete a device list.
OB_EXPORT void ob_device_clear_license_info(ob_device *device, ob_error **error)
Clear license information stored on the device.
OB_EXPORT const char * ob_device_list_get_device_gateway(const ob_device_list *list, uint32_t index, ob_error **error)
Get device gateway.
OB_EXPORT const char * ob_device_info_get_firmware_version(const ob_device_info *info, ob_error **error)
Get the firmware version number.
This file contains the multiple devices related API witch is used to control the synchronization betw...
Provide structs commonly used in the SDK, enumerating constant definitions.
struct ob_sensor_t ob_sensor
Definition ObTypes.h:29
struct OBDataView ob_data_view
struct OBCameraParam ob_camera_param
struct ob_camera_param_list_t ob_camera_param_list
Definition ObTypes.h:28
ob_device_access_mode
Device access mode for GVCP device.
Definition ObTypes.h:2055
void(*) ob_device_state_callback(ob_device_state state, const char *message, void *user_data)
Callback for device status.
Definition ObTypes.h:2122
struct ob_device_info_t ob_device_info
Definition ObTypes.h:24
enum OBDeviceType ob_device_type
struct ob_device_t ob_device
Definition ObTypes.h:23
void(*) ob_get_data_callback(ob_data_tran_state state, ob_data_chunk *dataChunk, void *user_data)
Callback for reading data.
Definition ObTypes.h:2140
ob_device_access_state
Device access state queried from GVCP CCP without opening the device.
Definition ObTypes.h:2067
struct OBFloatPropertyRange ob_float_property_range
struct OBBoolPropertyRange ob_bool_property_range
struct OBIntPropertyRange ob_int_property_range
#define OB_PATH_MAX
maximum path length
Definition ObTypes.h:61
struct ob_device_list_t ob_device_list
Definition ObTypes.h:25
void(*) ob_device_fw_update_callback(ob_fw_update_state state, const char *message, uint8_t percent, void *user_data)
Callback for firmware upgrade.
Definition ObTypes.h:2113
uint64_t ob_device_state
Definition ObTypes.h:741
ob_ip_source_type
Definition ObTypes.h:2078
enum OBSensorType ob_sensor_type
struct ob_sensor_list_t ob_sensor_list
Definition ObTypes.h:30
enum OBPermissionType ob_permission_type
Control command property list maintenance.
struct OBPropertyItem ob_property_item
enum OBPropertyID ob_property_id
The error class exposed by the SDK, users can get detailed error information according to the error.
Definition ObTypes.h:162