Click or drag to resize

SpiAPIReceive Method

Receives readCount 32-bit values using the SPI-Protocol (Serial-Peripheral.Interface) on the specified module. Waits up to timeoutMilliseconds.

Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.5.2
Syntax
C#
public uint[] Receive(
	int module,
	int readCount,
	int timeoutMilliseconds
)

Parameters

module  Int32
The SPI module.
readCount  Int32
The number of 32-bit values to read back.
timeoutMilliseconds  Int32
The timeout in milliseconds.

Return Value

UInt32
The response.
Remarks
This will internally send readCount zero-values since a read operation is not possible without a write operation by the hardware. This command will only work if the OutputSource for the specified module is set to Spi inside the SpiConfig on the card.
See Also