Skip to main content

SpiConnectionSettings Class

Namespace: System.Device.Spi · Assembly: GHIElectronics.TinyCLR.System.Device.Spi

Per-device SPI settings in the standard System.Device.Spi shape. TinyCLR maps these onto its native SPI driver via SpiDevice.Create(SpiConnectionSettings).

public sealed class SpiConnectionSettings

Constructors

SpiConnectionSettings(int busId, int chipSelectLine)

public SpiConnectionSettings(int busId, int chipSelectLine)

No description available.

ParameterTypeDescription
busIdint
chipSelectLineint

Properties

BusId

public int BusId { get; }

No description available.

ChipSelectLine

public int ChipSelectLine { get; set; }

The GPIO pin that drives chip-select when ChipSelectType is SpiChipSelectType.Gpio. (inherited)

ClockFrequency

public int ClockFrequency { get; set; }

SCK frequency in Hz the controller is asked to use. (inherited)

DataBitLength

public int DataBitLength { get; set; }

Frame width in bits. Fixed at 8 in this build. (inherited)

DataFlow

public DataFlow DataFlow { get; set; }

No description available.

Mode

public SpiMode Mode { get; set; }

SPI mode (clock polarity + phase). See SpiMode. (inherited)