Table of Contents

Class SpiConnectionSettings

Namespace
System.Device.Spi
Assembly
System.Device.Spi.dll

The connection settings of a device on a SPI bus.

public sealed class SpiConnectionSettings
Inheritance
SpiConnectionSettings
Inherited Members
Extension Methods

Constructors

SpiConnectionSettings(int, int)

Initializes a new instance of the SpiConnectionSettings class.

public SpiConnectionSettings(int busId, int chipSelectLine = -1)

Parameters

busId int

The bus ID the device is connected to.

chipSelectLine int

The chip select line used on the bus. Optional, -1 if not used.

Properties

BusId

The bus ID the device is connected to.

public int BusId { get; set; }

Property Value

int

ChipSelectLine

The chip select line used on the bus.

public int ChipSelectLine { get; set; }

Property Value

int

ChipSelectLineActiveState

Specifies which value on chip select pin means "active".

public PinValue ChipSelectLineActiveState { get; set; }

Property Value

PinValue

ClockFrequency

The frequency in which the data will be transferred.

public int ClockFrequency { get; set; }

Property Value

int

Configuration

Gets or sets the SPI bus configuration.

public SpiBusConfiguration Configuration { get; set; }

Property Value

SpiBusConfiguration

Remarks

Default value is FullDuplex.

DataBitLength

The length of the data to be transfered.

public int DataBitLength { get; set; }

Property Value

int

DataFlow

Specifies order in which bits are transferred first on the SPI bus.

public DataFlow DataFlow { get; set; }

Property Value

DataFlow

Mode

The SPI mode being used.

public SpiMode Mode { get; set; }

Property Value

SpiMode