Share via


SPI.WriteRead Method (UInt16[], UInt16[])

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

[MethodImplAttribute]
public void WriteRead (
         UInt16[] writeBuffer,
         ref UInt16[] readBuffer
)

Parameters

  • writeBuffer
    The buffer that will write to the interface.
  • readBuffer
    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.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

SPI Class
SPI Members
Microsoft.SPOT.Hardware Namespace