Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.44 KB

i2cdevice_writereadpartial_776061530.md

File metadata and controls

33 lines (23 loc) · 1.44 KB
-api-id -api-type
M:Windows.Devices.I2c.I2cDevice.WriteReadPartial(System.Byte[],System.Byte[])
winrt method

Windows.Devices.I2c.I2cDevice.WriteReadPartial

-description

Performs an atomic operation to write data to and then read data from the inter-integrated circuit (I2 C) bus on which the device is connected, and returns information about the success of the operation that you can use for error handling.

-parameters

-param writeBuffer

A buffer that contains the data that you want to write to the I2 C device. This data should not include the bus address.

-param readBuffer

The buffer to which you want to read the data from the I2 C bus. The length of the buffer determines how much data to request from the device.

-returns

A structure that contains information about whether both the read and write parts of the operation succeeded and the sum of the actual number of bytes that the operation wrote and the actual number of bytes that the operation read.

-remarks

-examples

-see-also

WriteRead, ReadPartial, WritePartial, I2cTransferResult, I2CTransferStatus

-capabilities

lowLevel