Click or drag to resize

FX3ConnectionTransferArray Method (IEnumerableUInt32, UInt32, UInt32)

This function performs an array bi-directional SPI transfer. If DrActive is set to true, this overload transfers all the data in WriteData numCaptures times per data ready condition being met. It captures data from numBuffers data ready signals. If DrActive is set to false, all the transfers are performed asynchronously. The total number of SPI transfers is WriteData.Count()*numCaptures*numBuffers. The following pseduo-code snippet would perform 400 total SPI transfers, across 100 data ready conditions. MOSI = {0x1234, 0x5678} myISpi32.DrActive = True MISO = myISpi32.TransferArray(MOSI, 2, 100) During the transfers, the SPI bus would look like the following: MOSI: ---(0x1234)---(0x5678)---(0x1234)---(0x5678)-----------------(0x1234)---(0x5678)---(0x1234)---(0x5678)--...-----(0x1234)-----(0x5678)-----(0x1234)-----(0x5678)-- MISO:----MISO(0)----MISO(1)----MISO(2)----MISO(3)------------------MISO(4)----MISO(5)----MISO(6)----MISO(7)---...-----MISO(196)----MISO(197)----MISO(198)----MISO(199)- DR: ___|¯¯¯|_____________________________________________________|¯¯¯|______________________________________..._____|¯¯¯|____________________________________________

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

Parameters

WriteData
Type: System.Collections.GenericIEnumerableUInt32
The data to be written to the slave over the MOSI line in each SPI transaction
numCaptures
Type: SystemUInt32
The number of transfers of the WriteData array performed on each data ready (if enabled).
numBuffers
Type: SystemUInt32
The total number of data ready's to capture.

Return Value

Type: UInt32

[Missing <returns> documentation for "M:FX3Api.FX3Connection.TransferArray(System.Collections.Generic.IEnumerable{System.UInt32},System.UInt32,System.UInt32)"]

Implements

ISpi32Interface.TransferArray(IEnumerableUInt32, UInt32, UInt32)
See Also