I2C 读取 (函数索引 27)

_DSM字节可寻址能量支持的函数类(函数接口 1) 函数读取 Inter-Integrated 线路(I2C)寄存器。 此功能支持需要使用特定于供应商的寄存器的方案。 它还用于调试。

Input

Arg3

Field Byte length Byte offset Description
Page 1 0 I2C 寄存器所在的页面。
Offset 1 1 页面内的寄存器偏移量。

Output

Field Byte length Byte offset Register Description
Status 4 0 This function can return the following Function-Specific Error Code: 1: Invalid page. For more information, see _DSM Method Output.
Data 1 4 指定寄存器中的数据。

I2C 写入 (函数索引 28)