SoftwareSpi Class

Definition

Software SPI implementation

public class SoftwareSpi : System.Device.Spi.SpiDevice
type SoftwareSpi = class
    inherit SpiDevice
Public Class SoftwareSpi
Inherits SpiDevice
Inheritance
SoftwareSpi

Constructors

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

Software implementation of the SPI.

Properties

ConnectionSettings

The connection settings of a device on a SPI bus. The connection settings are immutable after the device is created so the object returned will be a clone of the settings object.

Methods

Dispose() (Inherited from SpiDevice)
Dispose(Boolean)

Disposes this instance

Read(Span<Byte>)

Reads data from the SPI device.

ReadByte()

Reads a byte from the SPI device.

TransferFullDuplex(ReadOnlySpan<Byte>, Span<Byte>)

Writes and reads data from the SPI device.

Write(ReadOnlySpan<Byte>)

Writes data to the SPI device.

WriteByte(Byte)

Writes a byte to the SPI device.

Applies to