Click or drag to resize

FX3ConnectionBitBangSpi Method

Perform a bit banged SPI transfer, using the config set in BitBangSpiConfig.

Namespace:  FX3Api
Assembly:  FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntax
public byte[] BitBangSpi(
	uint BitsPerTransfer,
	uint NumTransfers,
	byte[] MOSIData,
	uint TimeoutInMs
)

Parameters

BitsPerTransfer
Type: SystemUInt32
The total number of bits to clock in a single transfer. Can be any number greater than 0.
NumTransfers
Type: SystemUInt32
The number of separate SPI transfers to clock out
MOSIData
Type: SystemByte
The MOSI data to clock out. Each SPI transfer must be byte aligned. Data is clocked out MSB first
TimeoutInMs
Type: SystemUInt32
The time to wait on the bulk endpoint for a return transfer (in ms)

Return Value

Type: Byte
The data received over the selected MISO line
See Also