SpiDevice Class

Definition

The communications channel to a device on a SPI bus.

public abstract class SpiDevice : IDisposable
type SpiDevice = class
    interface IDisposable
Public MustInherit Class SpiDevice
Implements IDisposable
Inheritance
SpiDevice
Derived
Implements

Constructors

SpiDevice()

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

Create(SpiConnectionSettings)

Creates a communications channel to a device on a SPI bus running on the current hardware

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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