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)
Syntaxpublic uint[] TransferArray(
IEnumerable<uint> WriteData,
uint numCaptures
)
Public Function TransferArray (
WriteData As IEnumerable(Of UInteger),
numCaptures As UInteger
) As UInteger()
public:
virtual array<unsigned int>^ TransferArray(
IEnumerable<unsigned int>^ WriteData,
unsigned int numCaptures
) sealed
abstract TransferArray :
WriteData : IEnumerable<uint32> *
numCaptures : uint32 -> uint32[]
override TransferArray :
WriteData : IEnumerable<uint32> *
numCaptures : uint32 -> uint32[]
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:
UInt32The 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