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 버스에서 데이터를 읽으려는 버퍼입니다. 버퍼의 길이는 디바이스에서 요청할 데이터의 양을 결정합니다.

반환

작업의 읽기 및 쓰기 부분이 성공했는지 여부와 작업이 작성한 실제 바이트 수와 작업이 읽은 실제 바이트 수의 합계에 대한 정보를 포함하는 구조체입니다.

적용 대상