int ob_device_list_get_device_pid(ob_device_list *list, uint32_t index, ob_error **error)
Get the pid of the specified device.
const char * ob_device_info_name(ob_device_info *info, ob_error **error)
Get device name.
ob_cmd_version ob_device_get_cmd_version(ob_device *device, ob_property_id property_id, ob_error **error)
Get cmdVersion of property.
void ob_device_write_i2c(ob_device *device, uint32_t module_id, uint32_t reg, uint32_t mask, uint32_t value, ob_error **error)
Write i2c register.
void ob_delete_device_list(ob_device_list *list, ob_error **error)
Delete device list.
ob_int_property_range ob_device_get_int_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get int type of device property range.
void ob_device_set_bool_property(ob_device *device, ob_property_id property_id, bool property, ob_error **error)
Set bool type of device property.
const char * ob_device_info_asicName(ob_device_info *info, ob_error **error)
Get chip name.
void ob_delete_data_bundle(ob_data_bundle *data_bundle, ob_error **error)
Free resource of data_bundle which come from OrbbecSDK's API.
void ob_device_set_structured_data(ob_device *device, ob_property_id property_id, const void *data, uint32_t data_size, ob_error **error)
Set structured type.
ob_device_type ob_device_info_device_type(ob_device_info *info, ob_error **error)
Get device type.
struct SensorImpl ob_sensor
int32_t ob_device_get_int_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get int type of device property.
uint64_t ob_device_sync_device_time(ob_device *device, ob_error **error)
Synchronize the device time (time to the device, synchronize the local system time to the device) ...
ob_depth_work_mode ob_device_get_current_depth_work_mode(ob_device *device, ob_error **error)
Get current depth work mode.
void ob_delete_device(ob_device *device, ob_error **error)
Delete device.
void ob_device_set_sync_config(ob_device *device, ob_device_sync_config device_sync_config, ob_error **error)
设置设备同步配置
void ob_device_write_flash(ob_device *device, uint32_t offset, const void *data, uint32_t data_size, ob_set_data_callback cb, bool async, void *user_data, ob_error **error)
Set the properties of writing to Flash [Asynchronous Callback].
enum OBPropertyID ob_property_id
ob_device_sync_config ob_device_get_sync_config(ob_device *device, ob_error **error)
获取当前设备同步配置
const char * ob_device_info_serial_number(ob_device_info *info, ob_error **error)
Get device serial number.
uint32_t ob_camera_param_list_count(ob_camera_param_list *param_list, ob_error **error)
Get the number of camera parameter lists.
const char * ob_device_info_uid(ob_device_info *info, ob_error **error)
Get device uid.
const char * ob_device_info_hardware_version(ob_device_info *info, ob_error **error)
Get hardware version number.
Control command property list maintenance.
void ob_delete_camera_param_list(ob_camera_param_list *param_list, ob_error **error)
Delete camera parameter list.
const char * ob_device_list_get_device_uid(ob_device_list *list, uint32_t index, ob_error **error)
Get the uid of the specified device.
enum OBSensorType ob_sensor_type
Command version of device property.
ob_device * ob_device_list_get_device(ob_device_list *list, uint32_t index, ob_error **error)
Create device.
ob_status ob_device_switch_depth_work_mode_by_name(ob_device *device, const char *mode_name, ob_error **error)
Switch depth work mode by work mode name.
ob_sensor * ob_device_get_sensor(ob_device *device, ob_sensor_type type, ob_error **error)
Get the device's sensors.
Provide structs commonly used in the SDK, enumerating constant definitions.
struct DeviceListImpl ob_device_list
void ob_device_get_raw_data(ob_device *device, ob_property_id property_id, ob_get_data_callback cb, bool async, void *user_data, ob_error **error)
Get raw data type of device property.
ob_sensor_list * ob_device_get_sensor_list(ob_device *device, ob_error **error)
List all sensors.
const char * ob_device_info_connection_type(ob_device_info *info, ob_error **error)
Get device connection type.
void ob_device_set_float_property(ob_device *device, ob_property_id property_id, float property, ob_error **error)
Set float type of device property.
struct DeviceImpl ob_device
const char * ob_device_info_usb_type(ob_device_info *info, ob_error **error)
Get usb connection type (DEPRECATED)
uint32_t ob_device_list_device_count(ob_device_list *list, ob_error **error)
Get the number of devices.
uint32_t ob_depth_work_mode_list_count(ob_depth_work_mode_list *work_mode_list, ob_error **error)
Get the depth work mode count that ob_depth_work_mode_list hold.
void ob_delete_device_info(ob_device_info *info, ob_error **error)
Delete device information.
float ob_device_get_float_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get float type of device property.
const char * ob_device_list_get_device_serial_number(ob_device_list *list, uint32_t index, ob_error **error)
Get the serial number of the specified device.
int ob_device_list_get_device_vid(ob_device_list *list, uint32_t index, ob_error **error)
Get the vid of the specified device.
void(* ob_device_state_callback)(ob_device_state state, const char *message, void *user_data)
device status callback
ob_bool_property_range ob_device_get_bool_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get the bool type of device property range.
void ob_device_read_ahb(ob_device *device, uint32_t reg, uint32_t mask, uint32_t *value, ob_error **error)
Read ahb register.
uint32_t ob_device_get_supported_property_count(ob_device *device, ob_error **error)
Get supported device properties count.
void ob_device_read_flash(ob_device *device, uint32_t offset, uint32_t data_size, ob_get_data_callback cb, bool async, void *user_data, ob_error **error)
Read Flash properties [asynchronous callback].
void(* ob_device_upgrade_callback)(ob_upgrade_state state, const char *message, uint8_t percent, void *user_data)
Firmware upgrade callback.
const char * ob_device_info_supported_min_sdk_version(ob_device_info *info, ob_error **error)
Get the minimum SDK version number supported by the device.
ob_device_info * ob_device_get_device_info(ob_device *device, ob_error **error)
Get device information.
void ob_device_set_raw_data(ob_device *device, ob_property_id property_id, void *data, uint32_t data_size, ob_set_data_callback cb, bool async, void *user_data, ob_error **error)
Set raw data type of device property.
void ob_device_reboot(ob_device *device, ob_error **error)
Device reboot.
const char * ob_device_list_get_device_name(ob_device_list *list, uint32_t index, ob_error **error)
Get device name (DEPRECATED)
struct DeviceInfoImpl ob_device_info
bool ob_device_get_bool_property(ob_device *device, ob_property_id property_id, ob_error **error)
Get bool type of device property.
ob_depth_work_mode_list * ob_device_get_depth_work_mode_list(ob_device *device, ob_error **error)
Request support depth work mode list.
ob_property_item ob_device_get_supported_property(ob_device *device, uint32_t index, ob_error **error)
Get supported device properties.
void ob_device_set_int_property(ob_device *device, ob_property_id property_id, int32_t property, ob_error **error)
Set int type of device property.
struct SensorListImpl ob_sensor_list
ob_protocol_version ob_device_get_protocol_version(ob_device *device, ob_error **error)
Get the property protocol version.
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 in the device. The parameters in the list...
void ob_device_state_changed(ob_device *device, ob_device_state_callback callback, void *user_data, ob_error **error)
Monitor device state change.
enum OBPermissionType ob_permission_type
bool ob_device_is_property_supported(ob_device *device, ob_property_id property_id, ob_permission_type permission, ob_error **error)
Check if device property permission is supported.
const char * ob_device_info_firmware_version(ob_device_info *info, ob_error **error)
Get the firmware version number.
void ob_device_get_structured_data(ob_device *device, ob_property_id property_id, void *data, uint32_t *data_size, ob_error **error)
Get structured type.
void ob_device_write_ahb(ob_device *device, uint32_t reg, uint32_t mask, uint32_t value, ob_error **error)
ahb write register
enum OB_CMD_VERSION ob_cmd_version
bool ob_device_activate_authorization(ob_device *device, const char *auth_code, ob_error **error)
Verify device authorization code.
ob_data_bundle * ob_device_get_structured_data_ext(ob_device *device, ob_property_id property_id, ob_error **error)
Get property struct data.
void(* ob_get_data_callback)(ob_data_tran_state state, ob_data_chunk *dataChunk, void *user_data)
read data callback
Used to describe the characteristics of each property.
int ob_device_info_pid(ob_device_info *info, ob_error **error)
Get device pid.
void ob_delete_depth_work_mode_list(ob_depth_work_mode_list *work_mode_list, ob_error **error)
Free resource of ob_depth_work_mode_list.
struct CameraParamListImpl ob_camera_param_list
void(* ob_set_data_callback)(ob_data_tran_state state, uint8_t percent, void *user_data)
Callback for writing data.
void ob_device_send_file_to_destination(ob_device *device, const char *file_path, const char *dst_path, ob_file_send_callback callback, bool async, void *user_data, ob_error **error)
Send files to the specified path of the device.
Boolean-scoped structure.
void ob_device_write_authorization_code(ob_device *device, const char *auth_code, ob_error **error)
Write device authorization code.
void ob_device_read_i2c(ob_device *device, uint32_t module_id, uint32_t reg, uint32_t mask, uint32_t *value, ob_error **error)
Read i2c register.
void(* ob_file_send_callback)(ob_file_tran_state state, const char *message, uint8_t percent, void *user_data)
file transfer callback
ob_device * ob_device_list_get_device_by_serial_number(ob_device_list *list, const char *serial_number, ob_error **error)
Create device.
ob_device_state ob_device_get_device_state(ob_device *device, ob_error **error)
Get current device status.
void ob_device_upgrade(ob_device *device, const char *path, ob_device_upgrade_callback callback, bool async, void *user_data, ob_error **error)
Device firmware upgrade.
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 camera parameter list.
Device synchronization configuration.
ob_float_property_range ob_device_get_float_property_range(ob_device *device, ob_property_id property_id, ob_error **error)
Get float type of device property range.
enum OBDeviceType ob_device_type
ob_depth_work_mode ob_depth_work_mode_list_get_item(ob_depth_work_mode_list *work_mode_list, uint32_t index, ob_error **error)
Get the index target of ob_depth_work_mode from work_mode_list.
void ob_device_set_structured_data_ext(ob_device *device, ob_property_id property_id, ob_data_bundle *data_bundle, ob_set_data_callback cb, void *user_data, ob_error **error)
Set property struct data.
struct OBDepthWorkModeListImpl ob_depth_work_mode_list
The error class exposed by the SDK, users can get detailed error information according to the erro...
ob_status ob_device_switch_depth_work_mode(ob_device *device, const ob_depth_work_mode *work_mode, ob_error **error)
Switch depth work mode by ob_depth_work_mode. Prefer invoke ob_device_switch_depth_work_mode_by_name ...
ob_device * ob_device_list_get_device_by_uid(ob_device_list *list, const char *uid, ob_error **error)
Create device.
int ob_device_info_vid(ob_device_info *info, ob_error **error)
Get device vid.