SpiDevice Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for