WriteRead Method (UInt16[], Int32, Int32, UInt16[], Int32, Int32, Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Writes an array of unsigned values to the interface, and reads an array of unsigned values from the interface into a specified location in the read buffer.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Sub WriteRead ( _
writeBuffer As UShort(), _
writeOffset As Integer, _
writeCount As Integer, _
readBuffer As UShort(), _
readOffset As Integer, _
readCount As Integer, _
startReadOffset As Integer _
)
public void WriteRead(
ushort[] writeBuffer,
int writeOffset,
int writeCount,
ushort[] readBuffer,
int readOffset,
int readCount,
int startReadOffset
)
public:
void WriteRead(
array<unsigned short>^ writeBuffer,
int writeOffset,
int writeCount,
array<unsigned short>^ readBuffer,
int readOffset,
int readCount,
int startReadOffset
)
member WriteRead :
writeBuffer:uint16[] *
writeOffset:int *
writeCount:int *
readBuffer:uint16[] *
readOffset:int *
readCount:int *
startReadOffset:int -> unit
public function WriteRead(
writeBuffer : ushort[],
writeOffset : int,
writeCount : int,
readBuffer : ushort[],
readOffset : int,
readCount : int,
startReadOffset : int
)
Parameters
- writeBuffer
Type: array<System. . :: . .UInt16> [] () [] []
The buffer whose contents will be written to the interface.
- writeOffset
Type: System. . :: . .Int32
The offset in writeBuffer to start write data from.
- writeCount
Type: System. . :: . .Int32
The number of elements in writeBuffer to write.
- readBuffer
Type: array<System. . :: . .UInt16> [] () [] []
The buffer that will store the data that is read from the interface.
- readOffset
Type: System. . :: . .Int32
The offset in readBuffer to start read data from.
- readCount
Type: System. . :: . .Int32
The number of elements in readBuffer to fill.
- startReadOffset
Type: System. . :: . .Int32
The offset in time, measured in transacted elements from writeBuffer, when to start reading back data into readBuffer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.