Click or drag to resize

DeviceSPI_Create Method

Create a remote SPI slave device.

Namespace: IO.Objects.RemoteIO
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
public Device SPI_Create(
	int num,
	int mode,
	int wordsize,
	int speed
)

Parameters

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.

Return Value

Device
SPI slave device object.
Remarks

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

See Also