OrbbecSDK2 2.0.2
OrbbecSDK2: New generation Software-Development-Kit for Orbbec 3D-Sensor devices
载入中...
搜索中...
未找到
ob2device.h
浏览该文件的文档.
1#pragma once
2
3#include "ob2types.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
33void ob2_context_set_device_installed_callback(ob2_context_t context_handle, ob2_device_info_cb_t device_installed_cb, void *user_data, ob2_status_t *status);
34#define ob2_device_set_installed_callback ob2_context_set_device_installed_callback
35
64void ob2_context_set_device_removed_callback(ob2_context_t context_handle, ob2_device_info_cb_t device_removed_cb, void *user_data, ob2_status_t *status);
65#define ob2_device_set_removed_callback ob2_context_set_device_removed_callback
66
87#define ob2_device_get_installed_count ob2_context_get_installed_device_count
88
120#define ob2_device_get_installation_info ob2_context_get_installed_device_info
121
160ob2_device_t ob2_context_open_device(ob2_context_t context_handle, uint32_t index, ob2_status_t *status);
161#define ob2_device_open ob2_context_open_device
162
193ob2_device_t ob2_context_open_device_by_serial_number(ob2_context_t context_handle, const char *serial_number, ob2_status_t *status);
194#define ob2_device_open_by_serial_number ob2_context_open_device_by_serial_number
195
231#define ob2_device_open_by_url ob2_context_open_device_by_url
232
267ob2_device_t ob2_context_open_net_device(ob2_context_t context_handle, const char *address, uint32_t port, ob2_status_t *status);
268#define ob2_net_device_open ob2_context_open_net_device
269
287void ob2_device_close(ob2_device_t device_handle, ob2_status_t *status);
288
312
344void ob2_device_update_firmware(ob2_device_t device_handle, const char *firmware_file_path, ob2_firmware_update_state_cb_t callback, void *user_data,
345 ob2_enable_ctrl_t enable_async_mode, ob2_status_t *status);
346
372void ob2_device_reboot(ob2_device_t device_handle, ob2_status_t *status);
373
402
403#ifdef __cplusplus
404}
405#endif
void ob2_context_set_device_removed_callback(ob2_context_t context_handle, ob2_device_info_cb_t device_removed_cb, void *user_data, ob2_status_t *status)
设置设备移除(掉线)回调
ob2_device_t ob2_context_open_net_device(ob2_context_t context_handle, const char *address, uint32_t port, ob2_status_t *status)
打开网络设备
void ob2_device_close(ob2_device_t device_handle, ob2_status_t *status)
关闭设备
ob2_device_t ob2_context_open_device(ob2_context_t context_handle, uint32_t index, ob2_status_t *status)
通过索引号打开设备
void ob2_device_sync_clock_with_host(ob2_device_t device_handle, ob2_status_t *status)
同步设备时钟
ob2_device_info_t ob2_device_get_info(ob2_device_t device_handle, ob2_status_t *status)
获取设备信息
ob2_device_installation_info_t ob2_context_get_installed_device_info(ob2_context_t context_handle, uint32_t index, ob2_status_t *status)
通过索引号获取安装设备信息
ob2_device_t ob2_context_open_device_by_url(ob2_context_t context_handle, const char *url, ob2_status_t *status)
通过 URL 打开设备
void ob2_device_update_firmware(ob2_device_t device_handle, const char *firmware_file_path, ob2_firmware_update_state_cb_t callback, void *user_data, ob2_enable_ctrl_t enable_async_mode, ob2_status_t *status)
升级设备固件
void ob2_device_reboot(ob2_device_t device_handle, ob2_status_t *status)
设备重启
void ob2_context_set_device_installed_callback(ob2_context_t context_handle, ob2_device_info_cb_t device_installed_cb, void *user_data, ob2_status_t *status)
设置设备安装(上线)回调
ob2_device_t ob2_context_open_device_by_serial_number(ob2_context_t context_handle, const char *serial_number, ob2_status_t *status)
通过序列号打开设备
uint32_t ob2_context_get_installed_device_count(ob2_context_t context_handle, ob2_status_t *status)
获取已安装(上线)的设备数量
void(* ob2_firmware_update_state_cb_t)(ob2_update_state_t state, const char *message, uint8_t percent, void *user_data)
固件升级状态回调
Definition: ob2types.h:1521
ob2_enable_ctrl_t
使能 / 去使能定义
Definition: ob2types.h:639
struct OB2DeviceImpl * ob2_device_t
设备句柄定义
Definition: ob2types.h:31
void(* ob2_device_info_cb_t)(ob2_device_installation_info_t device_info, void *user_data)
设备信息回调,用于设备安装 / 移除监控
Definition: ob2types.h:1512
struct OB2ContextImpl * ob2_context_t
context 句柄定义
Definition: ob2types.h:19
设备详细信息,需要先打开设备后获取
Definition: ob2types.h:436
设备安装信息,可以用于打开设备
Definition: ob2types.h:398
用户函数调用返回的状态结构体
Definition: ob2types.h:312