Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.22 KB

i2cdevice_writeread_1176071171.md

File metadata and controls

39 lines (26 loc) · 1.22 KB
-api-id -api-type
M:Windows.Devices.I2c.I2cDevice.WriteRead(System.Byte[],System.Byte[])
winrt method

Windows.Devices.I2c.I2cDevice.WriteRead

-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 sends a restart condition between the write and read operations.

-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.

-remarks

Error Codes

0x80070002

The bus address was not acknowledged.

0x8007045D

The I2 C device negatively acknowledged the data transfer before the entire buffer was read.

-examples

-see-also

WriteReadPartial, Write, Read

-capabilities

lowLevel