共用方式為


II2cDeviceProvider.WriteReadPartial(Byte[], Byte[]) 方法

定義

執行不可部分完成的作業,將資料寫入裝置連線的整合式線路 (I2 C) 匯流排,然後傳回可用來處理錯誤之作業成功的相關資訊。

public:
 ProviderI2cTransferResult WriteReadPartial(Platform::Array <byte> ^ writeBuffer, Platform::Array <byte> ^ readBuffer);
ProviderI2cTransferResult WriteReadPartial(winrt::array_view <byte> const& writeBuffer, winrt::array_view <byte> & readBuffer);
public ProviderI2cTransferResult WriteReadPartial(byte[] writeBuffer, byte[] readBuffer);
function writeReadPartial(writeBuffer, readBuffer)
Public Function WriteReadPartial (writeBuffer As Byte(), readBuffer As Byte()) As ProviderI2cTransferResult

參數

writeBuffer

Byte[]

byte[]

緩衝區,其中包含您想要寫入 I2 C 裝置的資料。 此資料不應包含匯流排位址。

readBuffer

Byte[]

byte[]

您要從 I2 C 匯流排讀取資料的緩衝區。 緩衝區的長度會決定要從裝置要求多少資料。

傳回

結構,其中包含作業的讀取和寫入部分是否成功,以及作業所寫入之實際位元組數目和作業讀取的實際位元組數目總和的相關資訊。

適用於