Share via


WriteRead Method (UInt16[], UInt16[])

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

Writes an array of bytes to the interface, and reads an array of bytes from the interface into the read buffer.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Sub WriteRead ( _
    writeBuffer As UShort(), _
    readBuffer As UShort() _
)
public void WriteRead(
    ushort[] writeBuffer,
    ushort[] readBuffer
)
public:
void WriteRead(
    array<unsigned short>^ writeBuffer, 
    array<unsigned short>^ readBuffer
)
member WriteRead : 
        writeBuffer:uint16[] * 
        readBuffer:uint16[] -> unit 
public function WriteRead(
    writeBuffer : ushort[], 
    readBuffer : ushort[]
)

Parameters

  • readBuffer
    Type: array<System. . :: . .UInt16> [] () [] []
    The buffer that will store the data that is read from the interface.

Remarks

You must size the buffer correctly, according to the specific protocol for the hardware device. Note that this protocol varies from one device to another.

This method uses the interface in 16-bit mode.

.NET Framework Security

See Also

Reference

SPI Class

WriteRead Overload

Microsoft.SPOT.Hardware Namespace