SoftwareSpi Constructors

Definition

Overloads

SoftwareSpi(Int32, Int32, Int32, Int32, SpiConnectionSettings, GpioController)
SoftwareSpi(Int32, Int32, Int32, Int32, SpiConnectionSettings, GpioController, Boolean)

Software implementation of the SPI.

SoftwareSpi(Int32, Int32, Int32, Int32, SpiConnectionSettings, GpioController)

public SoftwareSpi (int clk, int miso, int mosi, int cs, System.Device.Spi.SpiConnectionSettings settings = default, System.Device.Gpio.GpioController controller = default);
new Iot.Device.Spi.SoftwareSpi : int * int * int * int * System.Device.Spi.SpiConnectionSettings * System.Device.Gpio.GpioController -> Iot.Device.Spi.SoftwareSpi
Public Sub New (clk As Integer, miso As Integer, mosi As Integer, cs As Integer, Optional settings As SpiConnectionSettings = Nothing, Optional controller As GpioController = Nothing)

Parameters

clk
Int32
miso
Int32
mosi
Int32
cs
Int32
controller
GpioController

Applies to

SoftwareSpi(Int32, Int32, Int32, Int32, SpiConnectionSettings, GpioController, Boolean)

Software implementation of the SPI.

public SoftwareSpi (int clk, int miso, int mosi, int cs = -1, System.Device.Spi.SpiConnectionSettings? settings = default, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
public SoftwareSpi (int clk, int sdi, int sdo, int cs = -1, System.Device.Spi.SpiConnectionSettings? settings = default, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Spi.SoftwareSpi : int * int * int * int * System.Device.Spi.SpiConnectionSettings * System.Device.Gpio.GpioController * bool -> Iot.Device.Spi.SoftwareSpi
new Iot.Device.Spi.SoftwareSpi : int * int * int * int * System.Device.Spi.SpiConnectionSettings * System.Device.Gpio.GpioController * bool -> Iot.Device.Spi.SoftwareSpi
Public Sub New (clk As Integer, miso As Integer, mosi As Integer, Optional cs As Integer = -1, Optional settings As SpiConnectionSettings = Nothing, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)
Public Sub New (clk As Integer, sdi As Integer, sdo As Integer, Optional cs As Integer = -1, Optional settings As SpiConnectionSettings = Nothing, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

clk
Int32

Clock pin.

misosdi
Int32

Master Input Slave Output pin. Optional, set to -1 to ignore

mosisdo
Int32

Master Output Slave Input pin.

cs
Int32

Chip select pin (or negated chip select). Optional, set to -1 to ignore.

settings
SpiConnectionSettings

Settings of the SPI connection.

controllergpioController
GpioController

GPIO controller used for pins.

shouldDispose
Boolean

True to dispose the Gpio Controller

Remarks

Note that there is a ChipSelectLine in the SPIConnectionSettings as well, either that or the cs property will be used.

Applies to