Click or drag to resize

FX3ConnectionTransferArray Method (IEnumerableUInt32, UInt32)

This function performs an array bi-directional SPI transfer. This overload transfers all the data in WriteData numCaptures times. The total number of SPI words transfered is WriteData.Count() * numCaptures. If DrActive is set to true, the transfer should wait until a data ready condition (determined by DrPin and DrPolarity) is true, and then perform all SPI transfers. If DrActive is false it is performed asynchronously.

Namespace:  FX3Api
Assembly:  FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntax
public uint[] TransferArray(
	IEnumerable<uint> WriteData,
	uint numCaptures
)

Parameters

WriteData
Type: System.Collections.GenericIEnumerableUInt32
The data to be written to the slave on the MOSI line in each SPI transaction.
numCaptures
Type: SystemUInt32
The number of transfers of the WriteData array performed.

Return Value

Type: UInt32
The data received from the slave device on the MISO line, as an array. The total size is WriteData.Count() * numCaptures

Implements

ISpi32Interface.TransferArray(IEnumerableUInt32, UInt32)
See Also