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

定義

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

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

參數

writeBuffer

Byte[]

byte[]

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

readBuffer

Byte[]

byte[]

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

傳回

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

Windows 需求

應用程式功能
lowLevel

適用於

另請參閱