Skip to main content

Interface ISpiController

Contract for devices who expose ISpiBus(es).

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface ISpiController : IDigitalOutputController, IPinController

Fields

DefaultSpiBusSpeed

The default SPI Bus speed, in kHz, used when speed parameters are not provided

View Source
Declaration
public static Frequency DefaultSpiBusSpeed

Methods

CreateSpiBus(IPin, IPin, IPin, SpiClockConfiguration)

Creates a SPI bus instance for the requested control pins and clock configuration

View Source
Declaration
ISpiBus CreateSpiBus(IPin clock, IPin copi, IPin cipo, SpiClockConfiguration config)
Returns

Meadow.Hardware.ISpiBus

Parameters
TypeNameDescription
Meadow.Hardware.IPinclockThe IPin instance to use as the bus clock
Meadow.Hardware.IPin
Meadow.Hardware.IPin
Meadow.Hardware.SpiClockConfigurationconfigThe bus clock configuration parameters

CreateSpiBus(IPin, IPin, IPin, Frequency)

Creates a SPI bus instance for the requested control pins and bus speed

View Source
Declaration
ISpiBus CreateSpiBus(IPin clock, IPin copi, IPin cipo, Frequency speed)
Returns

Meadow.Hardware.ISpiBus

Parameters
TypeNameDescription
Meadow.Hardware.IPinclockThe IPin instance to use as the bus clock
Meadow.Hardware.IPin
Meadow.Hardware.IPin
Meadow.Units.FrequencyspeedThe bus speed