Class SpiConnectionSettings
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
intThe bus ID the device is connected to.
chipSelectLine
intThe 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
ChipSelectLine
The chip select line used on the bus.
public int ChipSelectLine { get; set; }
Property Value
ChipSelectLineActiveState
Specifies which value on chip select pin means "active".
public PinValue ChipSelectLineActiveState { get; set; }
Property Value
ClockFrequency
The frequency in which the data will be transferred.
public int ClockFrequency { get; set; }
Property Value
Configuration
Gets or sets the SPI bus configuration.
public SpiBusConfiguration Configuration { get; set; }
Property Value
Remarks
Default value is FullDuplex.
DataBitLength
The length of the data to be transfered.
public int DataBitLength { get; set; }
Property Value
DataFlow
Specifies order in which bits are transferred first on the SPI bus.
public DataFlow DataFlow { get; set; }
Property Value
Mode
The SPI mode being used.
public SpiMode Mode { get; set; }