I2cDevice.Write(Byte[]) 方法

定义

根据用于创建 I2cDevice 对象的 I2cConnectionSetting对象中指定的总线地址,将数据写入设备连接的 I2 C) 总线之间的 (集成电路。

public:
 virtual void Write(Platform::Array <byte> ^ buffer) = Write;
void Write(winrt::array_view <byte> const& buffer);
public void Write(byte[] buffer);
function write(buffer)
Public Sub Write (buffer As Byte())

参数

buffer

Byte[]

byte[]

包含要写入 I2 C 设备的数据的缓冲区。 此数据不应包括总线地址。

Windows 要求

应用功能
lowLevel

注解

错误代码

0x80070002

未确认巴士地址。

0x8007045D

I2 C 设备在写入整个缓冲区之前否定了数据传输。

适用于

另请参阅