|
OrbbecSDK
1.0.0
|
设备相关函数,包括获取创建设备,设置及获取设备属性,获取传感器等操作 更多...
#include "ObTypes.h"

函数 | |
| uint32_t | ob_device_list_device_count (ob_device_list *list, ob_error **error) |
| 获取设备数量 更多... | |
| ob_device_info * | ob_device_list_get_device_info (ob_device_list *list, uint32_t index, ob_error **error) |
| 获取设备信息 更多... | |
| const char * | ob_device_list_get_device_name (ob_device_list *list, uint32_t index, ob_error **error) |
| 获取指定设备名称 更多... | |
| int | ob_device_list_get_device_pid (ob_device_list *list, uint32_t index, ob_error **error) |
| 获取指定设备pid 更多... | |
| int | ob_device_list_get_device_vid (ob_device_list *list, uint32_t index, ob_error **error) |
| 获取指定设备vid 更多... | |
| const char * | ob_device_list_get_device_uid (ob_device_list *list, uint32_t index, ob_error **error) |
| 获取指定设备uid 更多... | |
| ob_device * | ob_get_device (ob_device_list *list, uint32_t index, ob_error **error) |
| 创建设备 更多... | |
| void | ob_delete_device (ob_device *device, ob_error **error) |
| 删除设备 更多... | |
| void | ob_delete_device_info (ob_device_info *info, ob_error **error) |
| 删除设备信息 更多... | |
| void | ob_delete_device_list (ob_device_list *list, ob_error **error) |
| 删除设备列表 更多... | |
| ob_device_info * | ob_device_get_device_info (ob_device *device, ob_error **error) |
| 获取设备信息 更多... | |
| ob_sensor_list * | ob_device_get_sensor_list (ob_device *device, ob_error **error) |
| 获取设备的所有传感器 更多... | |
| ob_sensor * | ob_device_get_sensor (ob_device *device, ob_sensor_type type, ob_error **error) |
| 获取设备的传感器 更多... | |
| void | ob_device_set_int_property (ob_device *device, ob_global_unified_property property_id, int32_t property, ob_error **error) |
| 设置int类型的设备属性 更多... | |
| int32_t | ob_device_get_int_property (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取int类型的设备属性 更多... | |
| void | ob_device_set_float_property (ob_device *device, ob_global_unified_property property_id, float property, ob_error **error) |
| 设置float类型的设备属性 更多... | |
| float | ob_device_get_float_property (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取float类型的设备属性 更多... | |
| void | ob_device_set_bool_property (ob_device *device, ob_global_unified_property property_id, bool property, ob_error **error) |
| 设置bool类型的设备属性 更多... | |
| bool | ob_device_get_bool_property (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取bool类型的设备属性 更多... | |
| void | ob_device_set_structured_data (ob_device *device, ob_global_unified_property property_id, const void *data, uint32_t data_size, ob_error **error) |
| 设置结构体类型的设备属性 更多... | |
| void | ob_device_get_structured_data (ob_device *device, ob_global_unified_property property_id, void *data, uint32_t *data_size, ob_error **error) |
| 获取结构体类型的设备属性 更多... | |
| bool | ob_device_set_raw_data (ob_device *device, ob_global_unified_property property_id, void *data, uint32_t data_size, ob_set_data_callback cb, bool async, void *user_data, ob_error **error) |
| 设置raw data类型d 设备属性 更多... | |
| bool | ob_device_get_raw_data (ob_device *device, ob_global_unified_property property_id, ob_get_data_callback cb, bool async, void *user_data, ob_error **error) |
| 获取raw data类型的设备属性 更多... | |
| bool | ob_device_is_property_supported (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 判断设备属性是否支持 更多... | |
| ob_int_property_range | ob_device_get_int_property_range (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取int类型的设备属性范围 更多... | |
| ob_float_property_range | ob_device_get_float_property_range (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取float类型的设备属性范围 更多... | |
| ob_bool_property_range | ob_device_get_bool_property_range (ob_device *device, ob_global_unified_property property_id, ob_error **error) |
| 获取bool类型的设备属性范围 更多... | |
| void | ob_device_write_ahb (ob_device *device, uint32_t reg, uint32_t mask, uint32_t value, ob_error **error) |
| ahb写寄存器 更多... | |
| void | ob_device_read_ahb (ob_device *device, uint32_t reg, uint32_t mask, uint32_t *value, ob_error **error) |
| ahb读寄存器 更多... | |
| void | ob_device_write_i2c (ob_device *device, uint32_t module_id, uint32_t reg, uint32_t mask, uint32_t value, ob_error **error) |
| i2c写寄存器 更多... | |
| void | ob_device_read_i2c (ob_device *device, uint32_t module_id, uint32_t reg, uint32_t mask, uint32_t *value, ob_error **error) |
| i2c读寄存器 更多... | |
| bool | 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) |
| 设置写入Flash的属性[异步回调] 更多... | |
| bool | 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) |
| 读取Flash的属性[异步回调] 更多... | |
| uint64_t | ob_device_sync_device_time (ob_device *device, ob_error **error) |
| 同步设备时间(向设备授时,同步本地系统时间到设备) 更多... | |
| bool | ob_device_upgrade (ob_device *device, const char *path, ob_device_upgrade_callback callback, bool async, void *user_data, ob_error **error) |
| 设备固件升级 更多... | |
| ob_device_state | ob_device_get_device_state (ob_device *device, ob_error **error) |
| 获取当前设备状态 更多... | |
| void | ob_device_state_changed (ob_device *device, ob_device_state_callback callback, void *user_data, ob_error **error) |
| 设置设备状态监听 更多... | |
| bool | 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) |
| 发送文件到设备指定路径 更多... | |
| bool | ob_device_activate_authorization (ob_device *device, const char *auth_code, ob_error **error) |
| 验证设备授权码 更多... | |
| void | ob_device_write_authorization_code (ob_device *device, const char *auth_code, ob_error **error) |
| 写入设备授权码 更多... | |
| ob_camera_intrinsic | ob_device_get_camera_intrinsic (ob_device *device, ob_sensor_type sensor_type, ob_error **error) |
| 获取相机内参(会根据当前镜像状态返回) 更多... | |
| ob_camera_distortion | ob_device_get_camera_distortion (ob_device *device, ob_sensor_type sensor_type, ob_error **error) |
| 获取相机畸变参数(会根据当前镜像状态返回) 更多... | |
| ob_d2c_transform | ob_device_get_d2c_transform (ob_device *device, ob_error **error) |
| 获取d2c旋转矩阵(会根据当前镜像状态返回) 更多... | |
| const char * | ob_device_info_name (ob_device_info *info, ob_error **error) |
| 获取设备名 更多... | |
| int | ob_device_info_pid (ob_device_info *info, ob_error **error) |
| 获取设备pid 更多... | |
| int | ob_device_info_vid (ob_device_info *info, ob_error **error) |
| 获取设备vid 更多... | |
| const char * | ob_device_info_uid (ob_device_info *info, ob_error **error) |
| 获取设备uid 更多... | |
| const char * | ob_device_info_serial_number (ob_device_info *info, ob_error **error) |
| 获取设备序列号 更多... | |
| const char * | ob_device_info_firmware_version (ob_device_info *info, ob_error **error) |
| 获取固件版本号 更多... | |
| const char * | ob_device_info_usb_type (ob_device_info *info, ob_error **error) |
| 获取usb连接类型 更多... | |
设备相关函数,包括获取创建设备,设置及获取设备属性,获取传感器等操作
在文件 Device.h 中定义.
| void ob_delete_device | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
删除设备
| [in] | device | 要删除的设备 |
| [out] | error | 记录错误信息 |
| void ob_delete_device_info | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
删除设备信息
| void ob_delete_device_list | ( | ob_device_list * | list, |
| ob_error ** | error | ||
| ) |
删除设备列表
| [in] | list | 要删除的设备列表对象 |
| [out] | error | 记录错误信息 |
| bool ob_device_activate_authorization | ( | ob_device * | device, |
| const char * | auth_code, | ||
| ob_error ** | error | ||
| ) |
验证设备授权码
| [in] | device | 设备对象 |
| [in] | auth_code | 授权码 |
| [out] | error | 记录错误信息 |
| bool ob_device_get_bool_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取bool类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| ob_bool_property_range ob_device_get_bool_property_range | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取bool类型的设备属性范围
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| ob_camera_distortion ob_device_get_camera_distortion | ( | ob_device * | device, |
| ob_sensor_type | sensor_type, | ||
| ob_error ** | error | ||
| ) |
获取相机畸变参数(会根据当前镜像状态返回)
| [in] | device | 设备对象 |
| [in] | sensor_type | sensor类型 |
| [out] | error | 记录错误信息 |
| ob_camera_intrinsic ob_device_get_camera_intrinsic | ( | ob_device * | device, |
| ob_sensor_type | sensor_type, | ||
| ob_error ** | error | ||
| ) |
获取相机内参(会根据当前镜像状态返回)
| [in] | device | 设备对象 |
| [in] | sensor_type | sensor类型 |
| [out] | error | 记录错误信息 |
| ob_d2c_transform ob_device_get_d2c_transform | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
获取d2c旋转矩阵(会根据当前镜像状态返回)
| [in] | device | 设备对象 |
| [out] | error | 记录错误信息 |
| ob_device_info* ob_device_get_device_info | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
获取设备信息
| [in] | device | 要获取信息的设备 |
| [out] | error | 记录错误信息 |
| ob_device_state ob_device_get_device_state | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
获取当前设备状态
| [out] | error | 记录错误信息 |
| float ob_device_get_float_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取float类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| ob_float_property_range ob_device_get_float_property_range | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取float类型的设备属性范围
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| int32_t ob_device_get_int_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取int类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| ob_int_property_range ob_device_get_int_property_range | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
获取int类型的设备属性范围
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| bool ob_device_get_raw_data | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_get_data_callback | cb, | ||
| bool | async, | ||
| void * | user_data, | ||
| ob_error ** | error | ||
| ) |
获取raw data类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要获取的属性id |
| [in] | cb | 获取数据给返回和进度回调 |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| ob_sensor* ob_device_get_sensor | ( | ob_device * | device, |
| ob_sensor_type | type, | ||
| ob_error ** | error | ||
| ) |
获取设备的传感器
| [in] | device | 设备对象 |
| [in] | type | 要获取的传感器类型 |
| [out] | error | 记录错误信息 |
| ob_sensor_list* ob_device_get_sensor_list | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
获取设备的所有传感器
| [in] | device | 设备对象 |
| [out] | error | 记录错误信息 |
| void ob_device_get_structured_data | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| void * | data, | ||
| uint32_t * | data_size, | ||
| ob_error ** | error | ||
| ) |
获取结构体类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要获取的属性id |
| [out] | data | 获取的属性数据 |
| [out] | data_size | 获取的属性大小 |
| [out] | error | 记录错误信息 |
| const char* ob_device_info_firmware_version | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取固件版本号
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| const char* ob_device_info_name | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取设备名
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| int ob_device_info_pid | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取设备pid
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| const char* ob_device_info_serial_number | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取设备序列号
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| const char* ob_device_info_uid | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取设备uid
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| const char* ob_device_info_usb_type | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取usb连接类型
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| int ob_device_info_vid | ( | ob_device_info * | info, |
| ob_error ** | error | ||
| ) |
获取设备vid
| [in] | info | 设备信息 |
| [out] | error | 记录错误信息 |
| bool ob_device_is_property_supported | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| ob_error ** | error | ||
| ) |
判断设备属性是否支持
| [in] | device | 设备对象 |
| [in] | property_id | 属性id |
| [out] | error | 记录错误信息 |
| uint32_t ob_device_list_device_count | ( | ob_device_list * | list, |
| ob_error ** | error | ||
| ) |
获取设备数量
| [in] | list | 设备列表对象 |
| [out] | error | 记录错误信息 |
| ob_device_info* ob_device_list_get_device_info | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
获取设备信息
| [in] | list | 设备列表对象 |
| [in] | index | 设备索引 |
| [out] | error | 记录错误信息 |
| const char* ob_device_list_get_device_name | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
获取指定设备名称
| [in] | list | 设备列表对象 |
| [in] | index | 设备索引 |
| [out] | error | 记录错误信息 |
| int ob_device_list_get_device_pid | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
获取指定设备pid
| [in] | list | 设备列表对象 |
| [in] | index | 设备索引 |
| [out] | error | 记录错误信息 |
| const char* ob_device_list_get_device_uid | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
获取指定设备uid
| [in] | list | 设备列表对象 |
| [in] | index | 设备索引 |
| [out] | error | 记录错误信息 |
| int ob_device_list_get_device_vid | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
获取指定设备vid
| [in] | list | 设备列表对象 |
| [in] | index | 设备索引 |
| [out] | error | 记录错误信息 |
| void ob_device_read_ahb | ( | ob_device * | device, |
| uint32_t | reg, | ||
| uint32_t | mask, | ||
| uint32_t * | value, | ||
| ob_error ** | error | ||
| ) |
ahb读寄存器
| [in] | device | 设备对象 |
| reg | 要读取的寄存器 | |
| mask | 掩码 | |
| value | 要读取的值 | |
| [out] | error | 记录错误信息 |
| bool 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 | ||
| ) |
读取Flash的属性[异步回调]
| [in] | device | 设备对象 |
| offset | flash偏移地址 | |
| data_size | 要读取的数据大小 | |
| cb | 读flash数据及进度回调 | |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| void ob_device_read_i2c | ( | ob_device * | device, |
| uint32_t | module_id, | ||
| uint32_t | reg, | ||
| uint32_t | mask, | ||
| uint32_t * | value, | ||
| ob_error ** | error | ||
| ) |
i2c读寄存器
| [in] | device | 设备对象 |
| module_id | 要读取的的i2c模块id | |
| reg | 要读取的寄存器 | |
| mask | 掩码 | |
| value | 要读取的值 | |
| [out] | error | 记录错误信息 |
| bool 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 | ||
| ) |
发送文件到设备指定路径
| [in] | device | 设备对象 |
| [in] | file_path | 源文件路径 |
| [in] | dst_path | 指定设备端文件接受路径 |
| [in] | callback | 文件发送进度回调 |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| void ob_device_set_bool_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| bool | property, | ||
| ob_error ** | error | ||
| ) |
设置bool类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要设置的属性id |
| [in] | property | 要设置的属性值 |
| [out] | error | 记录错误信息 |
| void ob_device_set_float_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| float | property, | ||
| ob_error ** | error | ||
| ) |
设置float类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要设置的属性id |
| [in] | property | 要设置的属性值 |
| [out] | error | 记录错误信息 |
| void ob_device_set_int_property | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| int32_t | property, | ||
| ob_error ** | error | ||
| ) |
设置int类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要设置的属性id |
| [in] | property | 要设置的属性值 |
| [out] | error | 记录错误信息 |
| bool ob_device_set_raw_data | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| void * | data, | ||
| uint32_t | data_size, | ||
| ob_set_data_callback | cb, | ||
| bool | async, | ||
| void * | user_data, | ||
| ob_error ** | error | ||
| ) |
设置raw data类型d 设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要设置的属性id |
| [in] | data | 要设置的属性数据 |
| [in] | data_size | 要设置的属性大小 |
| [in] | cb | 设置进度回调 |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| void ob_device_set_structured_data | ( | ob_device * | device, |
| ob_global_unified_property | property_id, | ||
| const void * | data, | ||
| uint32_t | data_size, | ||
| ob_error ** | error | ||
| ) |
设置结构体类型的设备属性
| [in] | device | 设备对象 |
| [in] | property_id | 要设置的属性id |
| [in] | data | 要设置的属性数据 |
| [in] | data_size | 要设置的属性大小 |
| [out] | error | 记录错误信息 |
| void ob_device_state_changed | ( | ob_device * | device, |
| ob_device_state_callback | callback, | ||
| void * | user_data, | ||
| ob_error ** | error | ||
| ) |
设置设备状态监听
| [in] | device | 设备对象 |
| [in] | callback | 设备状态发生改变时的回调 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| uint64_t ob_device_sync_device_time | ( | ob_device * | device, |
| ob_error ** | error | ||
| ) |
同步设备时间(向设备授时,同步本地系统时间到设备)
| [in] | device | 设备对象 |
| [out] | uint64_t | 命令往返时间延时(round trip time, rtt) |
| [out] | error | 记录错误信息 |
| bool ob_device_upgrade | ( | ob_device * | device, |
| const char * | path, | ||
| ob_device_upgrade_callback | callback, | ||
| bool | async, | ||
| void * | user_data, | ||
| ob_error ** | error | ||
| ) |
设备固件升级
| [in] | device | 设备对象 |
| [in] | path | 固件路径 |
| [in] | callback | 固件升级进度回调 |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| void ob_device_write_ahb | ( | ob_device * | device, |
| uint32_t | reg, | ||
| uint32_t | mask, | ||
| uint32_t | value, | ||
| ob_error ** | error | ||
| ) |
ahb写寄存器
| [in] | device | 设备对象 |
| reg | 要写入的寄存器 | |
| mask | 掩码 | |
| value | 要写入的值 | |
| [out] | error | 记录错误信息 |
| void ob_device_write_authorization_code | ( | ob_device * | device, |
| const char * | auth_code, | ||
| ob_error ** | error | ||
| ) |
写入设备授权码
| [in] | device | 设备对象 |
| [in] | auth_code | 授权码 |
| [out] | error | 记录错误信息 |
| bool 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 | ||
| ) |
设置写入Flash的属性[异步回调]
| [in] | device | 设备对象 |
| offset | flash偏移地址 | |
| data | 要写入的属性数据 | |
| data_size | 要写入的属性大小 | |
| cb | 写进度回调 | |
| [in] | async | 是否异步执行 |
| [in] | user_data | 用户自定义数据,会在回调中返回 |
| [out] | error | 记录错误信息 |
| void ob_device_write_i2c | ( | ob_device * | device, |
| uint32_t | module_id, | ||
| uint32_t | reg, | ||
| uint32_t | mask, | ||
| uint32_t | value, | ||
| ob_error ** | error | ||
| ) |
i2c写寄存器
| [in] | device | 设备对象 |
| module_id | 要写入的i2c模块id | |
| reg | 要写入的寄存器 | |
| mask | 掩码 | |
| value | 要写入的值 | |
| [out] | error | 记录错误信息 |
| ob_device* ob_get_device | ( | ob_device_list * | list, |
| uint32_t | index, | ||
| ob_error ** | error | ||
| ) |
创建设备
| [in] | list | 设备列表对象 |
| index | 要创建设备的索引 | |
| [out] | error | 记录错误信息 |
1.8.11