Ft4222Device.CreateSimpleSpiDevice(SpiConnectionSettings, Int32[]) Method

Definition

Creates SPI device related to this device

protected override System.Device.Spi.SpiDevice CreateSimpleSpiDevice (System.Device.Spi.SpiConnectionSettings settings, int[] pins);
override this.CreateSimpleSpiDevice : System.Device.Spi.SpiConnectionSettings * int[] -> System.Device.Spi.SpiDevice
Protected Overrides Function CreateSimpleSpiDevice (settings As SpiConnectionSettings, pins As Integer()) As SpiDevice

Parameters

settings
SpiConnectionSettings

The SPI settings

pins
Int32[]

The pins used for SPI (0-3)

Returns

a SPI device

Remarks

You can create either an I2C or an SPI device. You can create multiple SPI devices, the first one will be the one used for the clock frequency. They all have to have different Chip Select. You can use any of the 3 to 15 pin for this function.

Applies to