Click or drag to resize

SPI Constructor

Create a remote SPI slave device.

Namespace: IO.Objects.RemoteIO
Assembly: libremoteio (in libremoteio.dll) Version: 2.2024.165.1
Syntax
C#
public SPI(
	Device dev,
	int num,
	int mode,
	int wordsize,
	int speed
)

Parameters

dev  Device
Remote I/O device object.
num  Int32
SPI slave device number: 0 to 127.
mode  Int32
SPI transfer mode: 0 to 3.
wordsize  Int32
SPI transfer word size: 8, 16, or 32.
speed  Int32
SPI transfer speed in bits per second.
Remarks

Use Device.SPI_Create() instead of this constructor.

The actual SPI transfer rate will be the highest realizable rate that does not exceed the value specified in speed.

See Also