CreateReadTransaction Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates an I2CDevice..::..I2CReadTransaction object that can be passed to the Execute method.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Shared Function CreateReadTransaction ( _
buffer As Byte() _
) As I2CDevice.I2CReadTransaction
public static I2CDevice.I2CReadTransaction CreateReadTransaction(
byte[] buffer
)
public:
static I2CDevice::I2CReadTransaction^ CreateReadTransaction(
array<unsigned char>^ buffer
)
static member CreateReadTransaction :
buffer:byte[] -> I2CDevice.I2CReadTransaction
public static function CreateReadTransaction(
buffer : byte[]
) : I2CDevice..::..I2CReadTransaction
Parameters
- buffer
Type: array<System. . :: . .Byte> [] () [] []
The array of bytes that will contain the data read from the device.
Return Value
Type: Microsoft.SPOT.Hardware. . :: . .I2CDevice. . :: . .I2CReadTransaction
An object that can be passed to the Execute method
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.