CreateWriteTransaction Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates an I2CDevice..::..I2CWriteTransaction 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 CreateWriteTransaction ( _
    buffer As Byte() _
) As I2CDevice.I2CWriteTransaction
public static I2CDevice.I2CWriteTransaction CreateWriteTransaction(
    byte[] buffer
)
public:
static I2CDevice::I2CWriteTransaction^ CreateWriteTransaction(
    array<unsigned char>^ buffer
)
static member CreateWriteTransaction : 
        buffer:byte[] -> I2CDevice.I2CWriteTransaction 
public static function CreateWriteTransaction(
    buffer : byte[]
) : I2CDevice..::..I2CWriteTransaction

Parameters

  • buffer
    Type: array<System. . :: . .Byte> [] () [] []
    The array of bytes that will be sent to the device.

Return Value

Type: Microsoft.SPOT.Hardware. . :: . .I2CDevice. . :: . .I2CWriteTransaction
The I2CDevice..::..I2CWriteTransaction object that can be passed to the Execute method.

.NET Framework Security

See Also

Reference

I2CDevice Class

Microsoft.SPOT.Hardware Namespace