Click or drag to resize

libsimpleioSPI_open Method

Open a Linux SPI device.

Namespace: IO.Bindings
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
public static void SPI_open(
	string devname,
	int mode,
	int wordsize,
	int speed,
	out int fd,
	out int error
)

Parameters

devname  String
Device node name.
mode  Int32
SPI transfer mode (0 .. 3)
wordsize  Int32
SPI transfer word size (8, 16, or 32).
speed  Int32
SPI transfer speed in Hz.
fd  Int32
File descriptor.
error  Int32
Error code. Zero upon success or an errno value upon failure.
Remarks
The Linux kernel create a device nodes for each SPI slave device, of the form /dev/spidevX.Y where X is the SPI bus controller number and Y is the SPI slave select number.
See Also