Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
52bcea2f
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
52bcea2f
编写于
2月 07, 2022
作者:
A
Austin
提交者:
Gitee
2月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update zh-cn/device-dev/driver/driver-peripherals-sensor-des.md.
Signed-off-by:
N
Austin
<
liaozhiqi7@huawei.com
>
上级
f7b280be
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
zh-cn/device-dev/driver/driver-peripherals-sensor-des.md
zh-cn/device-dev/driver/driver-peripherals-sensor-des.md
+5
-5
未找到文件。
zh-cn/device-dev/driver/driver-peripherals-sensor-des.md
浏览文件 @
52bcea2f
...
@@ -155,7 +155,7 @@ Sensor驱动模型对驱动开发者开放的功能接口,驱动开发者无
...
@@ -155,7 +155,7 @@ Sensor驱动模型对驱动开发者开放的功能接口,驱动开发者无
</tr>
</tr>
<tr
id=
"row28712021112011"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p38722218200"
><a
name=
"p38722218200"
></a><a
name=
"p38722218200"
></a>
int32_t
<strong
id=
"b573774595514"
><a
name=
"b573774595514"
></a><a
name=
"b573774595514"
></a>
WriteSensor
</strong>
(struct SensorBusCfg
*busCfg, uint8_t *
writeData, uint16_t len)
</p>
<tr
id=
"row28712021112011"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p38722218200"
><a
name=
"p38722218200"
></a><a
name=
"p38722218200"
></a>
int32_t
<strong
id=
"b573774595514"
><a
name=
"b573774595514"
></a><a
name=
"b573774595514"
></a>
WriteSensor
</strong>
(struct SensorBusCfg
*busCfg, uint8_t *
writeData, uint16_t len)
</p>
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p6872112112201"
><a
name=
"p6872112112201"
></a><a
name=
"p6872112112201"
></a>
按照配置的总线方式,传感器配置数据写入寄存器。
</p>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p6872112112201"
><a
name=
"p6872112112201"
></a><a
name=
"p6872112112201"
></a>
按照配置的总线方式,
将
传感器配置数据写入寄存器。
</p>
</td>
</td>
</tr>
</tr>
<tr
id=
"row19401042245"
><td
class=
"cellrowborder"
valign=
"top"
width=
"8.550855085508552%"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p694020492417"
><a
name=
"p694020492417"
></a><a
name=
"p694020492417"
></a>
通用配置操作接口
</p>
<tr
id=
"row19401042245"
><td
class=
"cellrowborder"
valign=
"top"
width=
"8.550855085508552%"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p694020492417"
><a
name=
"p694020492417"
></a><a
name=
"p694020492417"
></a>
通用配置操作接口
</p>
...
@@ -214,17 +214,17 @@ Sensor驱动模型要求驱动开发者实现的接口功能,参考[表3](#tab
...
@@ -214,17 +214,17 @@ Sensor驱动模型要求驱动开发者实现的接口功能,参考[表3](#tab
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
width=
"45.77457745774577%"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p880485195711"
><a
name=
"p880485195711"
></a><a
name=
"p880485195711"
></a>
int32_t
<strong
id=
"b16497123107"
><a
name=
"b16497123107"
></a><a
name=
"b16497123107"
></a>
init
</strong>
(void)
</p>
<td
class=
"cellrowborder"
valign=
"top"
width=
"45.77457745774577%"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p880485195711"
><a
name=
"p880485195711"
></a><a
name=
"p880485195711"
></a>
int32_t
<strong
id=
"b16497123107"
><a
name=
"b16497123107"
></a><a
name=
"b16497123107"
></a>
init
</strong>
(void)
</p>
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
width=
"45.81458145814582%"
headers=
"mcps1.2.4.1.3 "
><p
id=
"p1480465165710"
><a
name=
"p1480465165710"
></a><a
name=
"p1480465165710"
></a>
传感器
器设备探测成功后,需要对传感器
器设备初始化配置。
</p>
<td
class=
"cellrowborder"
valign=
"top"
width=
"45.81458145814582%"
headers=
"mcps1.2.4.1.3 "
><p
id=
"p1480465165710"
><a
name=
"p1480465165710"
></a><a
name=
"p1480465165710"
></a>
传感器
设备探测成功后,需要对传感
器设备初始化配置。
</p>
</td>
</td>
</tr>
</tr>
<tr
id=
"row178311493339"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p208318963320"
><a
name=
"p208318963320"
></a><a
name=
"p208318963320"
></a>
int32_t
<strong
id=
"b189921571402"
><a
name=
"b189921571402"
></a><a
name=
"b189921571402"
></a>
Enable
</strong>
(void)
</p>
<tr
id=
"row178311493339"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p208318963320"
><a
name=
"p208318963320"
></a><a
name=
"p208318963320"
></a>
int32_t
<strong
id=
"b189921571402"
><a
name=
"b189921571402"
></a><a
name=
"b189921571402"
></a>
Enable
</strong>
(void)
</p>
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p68310953312"
><a
name=
"p68310953312"
></a><a
name=
"p68310953312"
></a>
根据当前传感器
器
设备的HCS配置,下发传感器设备使能操作组的寄存器配置。
</p>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p68310953312"
><a
name=
"p68310953312"
></a><a
name=
"p68310953312"
></a>
根据当前传感器设备的HCS配置,下发传感器设备使能操作组的寄存器配置。
</p>
</td>
</td>
</tr>
</tr>
<tr
id=
"row0831129153318"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p0831169183314"
><a
name=
"p0831169183314"
></a><a
name=
"p0831169183314"
></a>
int32_t
<strong
id=
"b13541291106"
><a
name=
"b13541291106"
></a><a
name=
"b13541291106"
></a>
Disable
</strong>
(void)
</p>
<tr
id=
"row0831129153318"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p0831169183314"
><a
name=
"p0831169183314"
></a><a
name=
"p0831169183314"
></a>
int32_t
<strong
id=
"b13541291106"
><a
name=
"b13541291106"
></a><a
name=
"b13541291106"
></a>
Disable
</strong>
(void)
</p>
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p138314912336"
><a
name=
"p138314912336"
></a><a
name=
"p138314912336"
></a>
根据当前传感器
器
设备的HCS配置,下发传感器设备去使能操作组的寄存器配置。
</p>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p138314912336"
><a
name=
"p138314912336"
></a><a
name=
"p138314912336"
></a>
根据当前传感器设备的HCS配置,下发传感器设备去使能操作组的寄存器配置。
</p>
</td>
</td>
</tr>
</tr>
<tr
id=
"row178311093334"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p583118920338"
><a
name=
"p583118920338"
></a><a
name=
"p583118920338"
></a>
int32_t
<strong
id=
"b111117118017"
><a
name=
"b111117118017"
></a><a
name=
"b111117118017"
></a>
SetBatch
</strong>
(int64_t samplingInterval, int64_t reportInterval)
</p>
<tr
id=
"row178311093334"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p583118920338"
><a
name=
"p583118920338"
></a><a
name=
"p583118920338"
></a>
int32_t
<strong
id=
"b111117118017"
><a
name=
"b111117118017"
></a><a
name=
"b111117118017"
></a>
SetBatch
</strong>
(int64_t samplingInterval, int64_t reportInterval)
</p>
...
@@ -239,7 +239,7 @@ Sensor驱动模型要求驱动开发者实现的接口功能,参考[表3](#tab
...
@@ -239,7 +239,7 @@ Sensor驱动模型要求驱动开发者实现的接口功能,参考[表3](#tab
</tr>
</tr>
<tr
id=
"row12565104264215"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p17565104210429"
><a
name=
"p17565104210429"
></a><a
name=
"p17565104210429"
></a>
int32_t
<strong
id=
"b96811512011"
><a
name=
"b96811512011"
></a><a
name=
"b96811512011"
></a>
SetOption
</strong>
(uint32_t option)
</p>
<tr
id=
"row12565104264215"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p17565104210429"
><a
name=
"p17565104210429"
></a><a
name=
"p17565104210429"
></a>
int32_t
<strong
id=
"b96811512011"
><a
name=
"b96811512011"
></a><a
name=
"b96811512011"
></a>
SetOption
</strong>
(uint32_t option)
</p>
</td>
</td>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p4565104214213"
><a
name=
"p4565104214213"
></a><a
name=
"p4565104214213"
></a>
根据可选配置
,下发量程,
精度等寄存器配置。
</p>
<td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.2 "
><p
id=
"p4565104214213"
><a
name=
"p4565104214213"
></a><a
name=
"p4565104214213"
></a>
根据可选配置
、下发量程和
精度等寄存器配置。
</p>
</td>
</td>
</tr>
</tr>
<tr
id=
"row380240111218"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p1181184016120"
><a
name=
"p1181184016120"
></a><a
name=
"p1181184016120"
></a>
void
<strong
id=
"b1613451717016"
><a
name=
"b1613451717016"
></a><a
name=
"b1613451717016"
></a>
ReadSensorData
</strong>
(void)
</p>
<tr
id=
"row380240111218"
><td
class=
"cellrowborder"
valign=
"top"
headers=
"mcps1.2.4.1.1 "
><p
id=
"p1181184016120"
><a
name=
"p1181184016120"
></a><a
name=
"p1181184016120"
></a>
void
<strong
id=
"b1613451717016"
><a
name=
"b1613451717016"
></a><a
name=
"b1613451717016"
></a>
ReadSensorData
</strong>
(void)
</p>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录