|
OrbbecSDK 2.10.6
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
Device-related functions, including operations such as obtaining and creating a device, setting and obtaining device property, and obtaining sensors. More...
Go to the source code of this file.
Functions | |
| OB_EXPORT void | ob_delete_device (ob_device *device, ob_error **error) |
| Delete a device. | |
| OB_EXPORT ob_sensor_list * | ob_device_get_sensor_list (const ob_device *device, ob_error **error) |
| List all sensors. | |
| 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 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 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 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 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 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 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 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 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 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_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_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 bool | ob_device_is_license_authorization_supported (const ob_device *device, ob_error **error) |
| Check whether the device supports license authorization. | |
| 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 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_clear_license_info (ob_device *device, ob_error **error) |
| Clear license information stored on the 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_write_customer_data (ob_device *device, const void *data, uint32_t data_size, ob_error **error) |
| Set customer data. | |
| 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 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_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 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 bool | ob_device_is_global_timestamp_supported (const ob_device *device, ob_error **error) |
| Check if the device supports global timestamp. | |
| OB_EXPORT void | ob_device_enable_global_timestamp (ob_device *device, bool enable, ob_error **error) |
| Enable or disable global timestamp. | |
| 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_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 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 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_reboot (ob_device *device, ob_error **error) |
| Device reboot. | |
| OB_EXPORT ob_device_state | ob_device_get_device_state (const ob_device *device, ob_error **error) |
| Get the current device status. | |
| 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 void | ob_device_enable_heartbeat (ob_device *device, bool enable, ob_error **error) |
| Enable or disable the device heartbeat. | |
| 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, an error is reported through error. | |
| 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_device_set_monitor_poll_interval (ob_device *device, uint32_t interval_ms, ob_error **error) |
| Set the device monitor polling interval. | |
| OB_EXPORT uint32_t | ob_device_get_monitor_poll_interval (ob_device *device, ob_error **error) |
| Get the device monitor polling interval. | |
| 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 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 ob_device_info * | ob_device_get_device_info (const ob_device *device, ob_error **error) |
| Get device information. | |
| 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_name (const ob_device_info *info, 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 int | ob_device_info_get_vid (const ob_device_info *info, ob_error **error) |
| Get device vid. | |
| OB_EXPORT const char * | ob_device_info_get_uid (const ob_device_info *info, ob_error **error) |
| Get device uid. | |
| OB_EXPORT const char * | ob_device_info_get_serial_number (const ob_device_info *info, ob_error **error) |
| Get device serial number. | |
| OB_EXPORT const char * | ob_device_info_get_firmware_version (const ob_device_info *info, ob_error **error) |
| Get the firmware version number. | |
| 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 const char * | ob_device_info_get_ip_address (const ob_device_info *info, ob_error **error) |
| Get the device IP address. | |
| 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 const char * | ob_device_info_get_gateway (const ob_device_info *info, ob_error **error) |
| Get the network device gateway address. | |
| 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 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 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 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 const char * | ob_device_info_get_asicName (const ob_device_info *info, ob_error **error) |
| Get the chip name. | |
| 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 void | ob_delete_device_list (ob_device_list *list, ob_error **error) |
| Delete a device list. | |
| OB_EXPORT uint32_t | ob_device_list_get_count (const ob_device_list *list, ob_error **error) |
| Get the number of devices. | |
| 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_list_get_device_pid (const ob_device_list *list, uint32_t index, ob_error **error) |
| Get the pid of the specified device. | |
| 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 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 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 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_ip_address (const ob_device_list *list, uint32_t index, ob_error **error) |
| Get device ip address. | |
| 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 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_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 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 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_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 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 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 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 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 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 ob_device * | ob_device_list_get_device (const ob_device_list *list, uint32_t index, ob_error **error) |
| Create a device. | |
| 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_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 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 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 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 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 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_delete_camera_param_list (ob_camera_param_list *param_list, ob_error **error) |
| Delete the camera parameter list. | |
Device-related functions, including operations such as obtaining and creating a device, setting and obtaining device property, and obtaining sensors.
Definition in file Device.h.
| #define ob_device_list_device_count ob_device_list_get_count |
| #define ob_device_list_get_extension_info ob_device_info_get_extension_info |
| #define ob_device_upgrade ob_device_update_firmware |
| #define ob_device_upgrade_from_data ob_device_update_firmware_from_data |
| #define ob_device_get_supported_property ob_device_get_supported_property_item |
| #define ob_device_state_changed ob_device_set_state_changed_callback |
| #define ob_device_info_name ob_device_info_get_name |
| #define ob_device_info_pid ob_device_info_get_pid |
| #define ob_device_info_vid ob_device_info_get_vid |
| #define ob_device_info_uid ob_device_info_get_uid |
| #define ob_device_info_serial_number ob_device_info_get_serial_number |
| #define ob_device_info_firmware_version ob_device_info_get_firmware_version |
| #define ob_device_info_connection_type ob_device_info_get_connection_type |
| #define ob_device_info_ip_address ob_device_info_get_ip_address |
| #define ob_device_info_hardware_version ob_device_info_get_hardware_version |
| #define ob_device_info_supported_min_sdk_version ob_device_info_get_supported_min_sdk_version |
| #define ob_device_info_asicName ob_device_info_get_asicName |
| #define ob_device_info_device_type ob_device_info_get_device_type |
| #define ob_device_list_get_device_count ob_device_list_get_count |
| #define ob_camera_param_list_count ob_camera_param_list_get_count |
Delete a device.
| [in] | device | The device to be deleted. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_delete_device(), ob::Device::operator=(), and ob::Device::~Device().
| OB_EXPORT ob_sensor_list * ob_device_get_sensor_list | ( | const ob_device * | device, |
| ob_error ** | error ) |
List all sensors.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getSensorList(), and ob_device_get_sensor_list().
| OB_EXPORT ob_sensor * ob_device_get_sensor | ( | ob_device * | device, |
| ob_sensor_type | type, | ||
| ob_error ** | error ) |
Get a device's sensor.
| [in] | device | The device object. |
| [in] | type | The type of sensor to get. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getSensor(), and ob_device_get_sensor().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property to be set. |
| [in] | value | The property value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_int_property(), and ob::Device::setIntProperty().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property ID. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getIntProperty(), and ob_device_get_int_property().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property id. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getIntPropertyRange(), and ob_device_get_int_property_range().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property to be set. |
| [in] | value | The property value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_float_property(), and ob::Device::setFloatProperty().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property ID. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getFloatProperty(), and ob_device_get_float_property().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property id. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getFloatPropertyRange(), and ob_device_get_float_property_range().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property to be set. |
| [in] | value | The property value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_bool_property(), and ob::Device::setBoolProperty().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property ID. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getBoolProperty(), and ob_device_get_bool_property().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property id. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getBoolPropertyRange(), and ob_device_get_bool_property_range().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property to be set. |
| [in] | data | The property data to be set. |
| [in] | data_size | The size of the property to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_structured_data(), and ob::Device::setStructuredData().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property. |
| [out] | data | The obtained property data. |
| [out] | data_size | The size of the obtained property data. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getStructuredData(), and ob_device_get_structured_data().
| OB_EXPORT bool ob_device_is_license_authorization_supported | ( | const ob_device * | device, |
| ob_error ** | error ) |
Check whether the device supports license authorization.
This function only reports whether the device provides the license authorization capability. It does not read or validate the license information.
| [in] | device | The device object. |
| [out] | error | Log error messages. |
Referenced by ob::Device::isLicenseAuthorizationSupported(), and ob_device_is_license_authorization_supported().
| 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.
The license_info_json is a UTF-8 JSON string with the following structure. All binary fields are lowercase hex strings without a "0x" prefix and with a fixed length. Before writing, the SDK reads the currently connected device and compares it against "devInfo" to prevent writing a license to the wrong device; it does NOT verify the signature or recompute deviceHash (signature and device-binding checks are performed by the consumer/filter at runtime).
{ "formatVersion": 1, // license_info envelope version "devInfo": { // plaintext, NOT signed; used only to "deviceSn": "SN123456789", // guard against mis-writing to the "vid": "2BC5", // wrong device. vid/pid are 4-char "pid": "0660" // uppercase hex. }, "licenseInfo": { // signed authorization credential "schemaVersion": 1, // credential schema version "keyVersion": 1, // 16-bit signing public key id "featureFlags": "0000000000000001",// 8 bytes, 16-char lowercase hex "expireDate": 4294967295, // YYYYMMDD; 0xFFFFFFFF = permanent "deviceHash": "00112233445566778899aabbccddeeff", // 16 bytes, 32-char hex "signature": "...", // ECDSA P-256 r||s, 64 bytes, 128-char hex "vendorLicense": "..." // third-party vendor blob, lowercase hex (235 bytes) } }
| [in] | device | The device object. |
| [in] | license_info_json | The SDK license_info JSON string described above. |
| [in] | license_info_json_size | The byte size of license_info_json, excluding any trailing null terminator. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_write_license_info(), and ob::Device::writeLicenseInfo().
| 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.
| [in] | device | The device object. |
| [out] | license_info_json | The output buffer for SDK license_info JSON, null-terminated on success. |
| [in] | license_info_json_size | Size of the output buffer in bytes. Must be large enough to hold the JSON string and a trailing null terminator; 512 bytes is sufficient for the current schema. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_read_license_info(), and ob::Device::readLicenseInfo().
Clear license information stored on the device.
Erases the device license storage area so that the device returns to the "no license" state. Intended for internal repair, re-activation or debugging builds and should be gated by caller-side confirmation.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::clearLicenseInfo(), and ob_device_clear_license_info().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The ID of the property. |
| [out] | cb | The get data callback. |
| [out] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_get_raw_data().
| OB_EXPORT void ob_device_write_customer_data | ( | ob_device * | device, |
| const void * | data, | ||
| uint32_t | data_size, | ||
| ob_error ** | error ) |
Set customer data.
| [in] | device | The device object. |
| [in] | data | The property data to be set. |
| [in] | data_size | The size of the property to be set,the maximum length cannot exceed 65532 bytes. |
| [out] | error | Log error messages. |
Referenced by ob_device_write_customer_data(), and ob::Device::writeCustomerData().
| 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.
| [in] | device | The device object. |
| [out] | data | The obtained property data. |
| [out] | data_size | The size of the obtained property data. |
| [out] | error | Log error messages. |
Referenced by ob_device_read_customer_data(), and ob::Device::readCustomerData().
| 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.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getSupportedPropertyCount(), and ob_device_get_supported_property_count().
| 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.
| [in] | device | The device object. |
| [in] | index | The property index. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getSupportedProperty(), and ob_device_get_supported_property_item().
| 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.
| [in] | device | The device object. |
| [in] | property_id | The property id. |
| [in] | permission | The type of permission that needs to be interpreted. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::isPropertySupported(), and ob_device_is_property_supported().
| OB_EXPORT bool ob_device_is_global_timestamp_supported | ( | const ob_device * | device, |
| ob_error ** | error ) |
Check if the device supports global timestamp.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::isGlobalTimestampSupported(), and ob_device_is_global_timestamp_supported().
| OB_EXPORT void ob_device_enable_global_timestamp | ( | ob_device * | device, |
| bool | enable, | ||
| ob_error ** | error ) |
Enable or disable global timestamp.
| [in] | device | The device object. |
| [in] | enable | Whether to enable global timestamp. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::enableGlobalTimestamp(), and ob_device_enable_global_timestamp().
| 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.
| [in] | device | The device object. |
| [in] | path | The firmware path. |
| [in] | callback | The firmware upgrade progress callback. |
| [in] | async | Whether to execute asynchronously. |
| [in] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_update_firmware(), and ob::Device::updateFirmware().
| 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.
| [in] | device | The device object. |
| [in] | data | The firmware file data. |
| [in] | data_size | The firmware file size. |
| [in] | callback | The firmware upgrade progress callback. |
| [in] | async | Whether to execute asynchronously. |
| [in] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_update_firmware_from_data(), and ob::Device::updateFirmwareFromData().
| 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.
| [in] | device | The device object. |
| [in] | file_path_list | A list(2D array) of preset file paths, each up to OB_PATH_MAX characters. |
| [in] | path_count | The number of the preset file paths. |
| [in] | callback | The preset upgrade progress callback. |
| [in] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_update_optional_depth_presets(), and ob::Device::updateOptionalDepthPresets().
| 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.
| [in] | device | The device object. |
| [in] | data_list | A list of preset data blocks, each holding a data pointer and its size. |
| [in] | count | The number of the preset data blocks. |
| [in] | callback | The preset upgrade progress callback. |
| [in] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_update_optional_depth_presets_from_data(), and ob::Device::updateOptionalDepthPresets().
Device reboot.
| [in] | device | Device object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_reboot(), and ob::Device::reboot().
| OB_EXPORT ob_device_state ob_device_get_device_state | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get the current device status.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getDeviceState(), and ob_device_get_device_state().
| 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.
| [in] | device | The device object. |
| [in] | callback | The callback function to be called when the device status changes. |
| [in] | user_data | User-defined data that will be returned in the callback. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_state_changed_callback(), and ob::Device::setDeviceStateChangedCallback().
Enable or disable the device heartbeat.
When enabled, the SDK sends heartbeat signals at the device monitor polling interval. The default interval is 3000 ms and can be adjusted with ob_device_set_monitor_poll_interval. If the device does not support heartbeat, an error is reported through error.
| [in] | device | The device object. |
| [in] | enable | Whether to enable the device heartbeat. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::enableHeartbeat(), and ob_device_enable_heartbeat().
Enable or disable the device firmware log. If the device does not support firmware log, an error is reported through error.
| [in] | device | The device object. |
| [in] | enable | Whether to enable the firmware log. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::enableFirmwareLog(), and ob_device_enable_firmware_log().
Check whether the device firmware log is enabled.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::isFirmwareLogEnabled(), and ob_device_is_firmware_log_enabled().
| 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.
| [in] | device | The device object. |
| [in] | interval_ms | The polling interval for device heartbeat and firmware log retrieval, in milliseconds. The valid range is [1000, 10000]; values outside this range are clamped to the nearest bound. If the device does not support device monitor polling, an error is reported through error. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_set_monitor_poll_interval(), and ob::Device::setMonitorPollInterval().
Get the device monitor polling interval.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
error. Referenced by ob::Device::getMonitorPollInterval(), and ob_device_get_monitor_poll_interval().
| 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).
| [in] | device | The device object. |
| [in] | hardware_pps_time | unit: ms. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_sync_hardware_pps_time(), and ob::Device::syncDeviceHardwarePPSTime().
| 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.
This is a factory and debug function, which can be used to send and receive data from the device. The data format is secret and belongs to the device vendor.
| [in] | device | The device object. |
| [in] | send_data | The data to be sent to the device. |
| [in] | send_data_size | The size of the data to be sent to the device. |
| [out] | receive_data | The data received from the device. |
| [in,out] | receive_data_size | Pass in the expected size of the receive data, and return the actual size of the received data. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_send_and_receive_data(), and ob::Device::sendAndReceiveData().
| OB_EXPORT ob_device_info * ob_device_get_device_info | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get device information.
| [in] | device | The device to obtain information from. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getDeviceInfo(), and ob_device_get_device_info().
| OB_EXPORT void ob_delete_device_info | ( | ob_device_info * | info, |
| ob_error ** | error ) |
Delete device information.
| [in] | info | The device information to be deleted. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_delete_device_info(), and ob::DeviceInfo::~DeviceInfo().
| OB_EXPORT const char * ob_device_info_get_name | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get device name.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getName(), and ob_device_info_get_name().
| OB_EXPORT int ob_device_info_get_pid | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get device pid.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getPid(), and ob_device_info_get_pid().
| OB_EXPORT int ob_device_info_get_vid | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get device vid.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getVid(), and ob_device_info_get_vid().
| OB_EXPORT const char * ob_device_info_get_uid | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get device uid.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getUid(), and ob_device_info_get_uid().
| OB_EXPORT const char * ob_device_info_get_serial_number | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get device serial number.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getSerialNumber(), and ob_device_info_get_serial_number().
| OB_EXPORT const char * ob_device_info_get_firmware_version | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the firmware version number.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getFirmwareVersion(), and ob_device_info_get_firmware_version().
| OB_EXPORT const char * ob_device_info_get_connection_type | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the device connection type.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getConnectionType(), and ob_device_info_get_connection_type().
| OB_EXPORT const char * ob_device_info_get_ip_address | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the device IP address.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getIpAddress(), and ob_device_info_get_ip_address().
| OB_EXPORT const char * ob_device_info_get_subnet_mask | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the network device subnet mask.
| [in] | info | Device information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getDeviceSubnetMask(), and ob_device_info_get_subnet_mask().
| OB_EXPORT const char * ob_device_info_get_gateway | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the network device gateway address.
| [in] | info | Device information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getDeviceGateway(), and ob_device_info_get_gateway().
| OB_EXPORT const char * ob_device_info_get_hardware_version | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the hardware version number.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getHardwareVersion(), and ob_device_info_get_hardware_version().
| 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.
| [in] | device | The device object. |
| [in] | info_key | The key of the device extension information. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::isExtensionInfoExist(), and ob_device_is_extension_info_exist().
| 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.
Extension information is a set of key-value pair of string, user cat get the information by the key.
| [in] | device | The device object. |
| [in] | info_key | The key of the device extension information. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getExtensionInfo(), and ob_device_get_extension_info().
| 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.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getSupportedMinSdkVersion(), and ob_device_info_get_supported_min_sdk_version().
| OB_EXPORT const char * ob_device_info_get_asicName | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the chip name.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getAsicName(), and ob_device_info_get_asicName().
| OB_EXPORT ob_device_type ob_device_info_get_device_type | ( | const ob_device_info * | info, |
| ob_error ** | error ) |
Get the device type.
| [in] | info | Device Information |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceInfo::getDeviceType(), and ob_device_info_get_device_type().
| OB_EXPORT void ob_delete_device_list | ( | ob_device_list * | list, |
| ob_error ** | error ) |
Delete a device list.
| [in] | list | The device list object to be deleted. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_delete_device_list(), and ob::DeviceList::~DeviceList().
| OB_EXPORT uint32_t ob_device_list_get_count | ( | const ob_device_list * | list, |
| ob_error ** | error ) |
Get the number of devices.
| [in] | list | Device list object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getCount(), and ob_device_list_get_count().
| OB_EXPORT const char * ob_device_list_get_device_name | ( | const ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get device name.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getName(), and ob_device_list_get_device_name().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getPid(), and ob_device_list_get_device_pid().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getVid(), and ob_device_list_get_device_vid().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getUid(), and ob_device_list_get_device_uid().
| 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.
| [in] | list | Device list object. |
| [in] | index | Device index. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getSerialNumber(), and ob_device_list_get_device_serial_number().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getConnectionType(), and ob_device_list_get_device_connection_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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getIpAddress(), and ob_device_list_get_device_ip_address().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getSubnetMask(), and ob_device_list_get_device_subnet_mask().
| OB_EXPORT const char * ob_device_list_get_device_gateway | ( | const ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get device gateway.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getGateway(), and ob_device_list_get_device_gateway().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getLocalMacAddress(), and ob_device_list_get_device_local_mac().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getLocalIP(), and ob_device_list_get_device_local_ip().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getLocalSubnetLength(), and ob_device_list_get_device_local_subnet_length().
| 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.
| [in] | list | Device list object |
| [in] | index | Device index |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getLocalGateway(), and ob_device_list_get_device_local_gateway().
| 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.
| [in] | list | Device list object. |
| [in] | index | Device index. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getLocalNetInterfaceName(), and ob_device_list_get_device_local_net_if_name().
| 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.
| [in] | list | The device list object. |
| [in] | index | The index of the device in the list. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getIpSourceType(), and ob_device_list_get_device_ip_source_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.
| [in] | list | The device list object. |
| [in] | index | The index of the device in the list. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getUserName(), and ob_device_list_get_device_user_name().
| 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.
| [in] | list | Device list object. |
| [in] | index | The index of the device. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_list_query_device_access_state(), and ob::DeviceList::queryDeviceAccessState().
| 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.
| [in] | list | Device list object. |
| [in] | serial_number | The serial number of the device. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_list_query_device_access_state_by_serial_number(), and ob::DeviceList::queryDeviceAccessStateBySN().
| OB_EXPORT ob_device * ob_device_list_get_device | ( | const ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Create a device.
| [in] | list | Device list object. |
| [in] | index | The index of the device to create. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_list_get_device().
| 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.
| [in] | list | Device list object. |
| [in] | index | The index of the device to create. |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getDevice(), and ob_device_list_get_device_ex().
| 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.
| [in] | list | Device list object. |
| [in] | serial_number | The serial number of the device to create. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_list_get_device_by_serial_number().
| 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.
| [in] | list | Device list object. |
| [in] | serial_number | The serial number of the device to create. |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getDeviceBySN(), and ob_device_list_get_device_by_serial_number_ex().
| 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.
On Linux platform, for usb device, the uid of the device is composed of bus-port-dev, for example 1-1.2-1. But the SDK will remove the dev number and only keep the bus-port as the uid to create the device, for example 1-1.2, so that we can create a device connected to the specified USB port. Similarly, users can also directly pass in bus-port as uid to create device.
For GMSL device, the uid is GMSL port with "gmsl2-" prefix, for example gmsl2-1.
| [in] | list | Device list object. |
| [in] | uid | The UID of the device to create. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_device_list_get_device_by_uid().
| 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.
On Linux platform, for usb device, the uid of the device is composed of bus-port-dev, for example 1-1.2-1. But the SDK will remove the dev number and only keep the bus-port as the uid to create the device, for example 1-1.2, so that we can create a device connected to the specified USB port. Similarly, users can also directly pass in bus-port as uid to create device.
For GMSL device, the uid is GMSL port with "gmsl2-" prefix, for example gmsl2-1.
| [in] | list | Device list object. |
| [in] | uid | The UID of the device to create. |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DeviceList::getDeviceByUid(), and ob_device_list_get_device_by_uid_ex().
| 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.
| [in] | device | The device object. |
| [out] | error | Log error messages. |
Referenced by ob::Device::getCalibrationCameraParamList(), and ob_device_get_calibration_camera_param_list().
| 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.
| [in] | param_list | Camera parameter list |
| [out] | error | Log error messages |
Referenced by ob::CameraParamList::getCount(), and ob_camera_param_list_get_count().
| 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.
| [in] | param_list | Camera parameter list |
| [in] | index | Parameter index |
| [out] | error | Log error messages |
Referenced by ob::CameraParamList::getCameraParam(), and ob_camera_param_list_get_param().
| OB_EXPORT void ob_delete_camera_param_list | ( | ob_camera_param_list * | param_list, |
| ob_error ** | error ) |
Delete the camera parameter list.
| [in] | param_list | Camera parameter list |
| [out] | error | Log error messages |
Referenced by ob_delete_camera_param_list(), and ob::CameraParamList::~CameraParamList().