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

適用対象

こちらもご覧ください