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)
Syntaxpublic byte[] BitBangSpi(
uint BitsPerTransfer,
uint NumTransfers,
byte[] MOSIData,
uint TimeoutInMs
)
Public Function BitBangSpi (
BitsPerTransfer As UInteger,
NumTransfers As UInteger,
MOSIData As Byte(),
TimeoutInMs As UInteger
) As Byte()
public:
array<unsigned char>^ BitBangSpi(
unsigned int BitsPerTransfer,
unsigned int NumTransfers,
array<unsigned char>^ MOSIData,
unsigned int TimeoutInMs
)
member BitBangSpi :
BitsPerTransfer : uint32 *
NumTransfers : uint32 *
MOSIData : byte[] *
TimeoutInMs : uint32 -> byte[]
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:
ByteThe data received over the selected MISO line
See Also