Click or drag to resize

FX3ConnectionTransferArray Method

Overload List
  NameDescription
Public methodTransferArray(IEnumerableUInt32)
This function performs an array bi-directional SPI transfer. WriteData.Count() total SPI transfers are performed. 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.
Public methodTransferArray(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.
Public methodTransferArray(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: ___|¯¯¯|_____________________________________________________|¯¯¯|______________________________________..._____|¯¯¯|____________________________________________
Top
See Also