internal SpiConnectionSettings(SpiConnectionSettings other) { BusId = other.BusId; ChipSelectLine = other.ChipSelectLine; Mode = other.Mode; DataBitLength = other.DataBitLength; ClockFrequency = other.ClockFrequency; DataFlow = other.DataFlow; ChipSelectLineActiveState = other.ChipSelectLineActiveState; }
/// <summary> /// Initializes a new instance of the <see cref="UnixSpiDevice"/> class that will use the specified settings to communicate with the SPI device. /// </summary> /// <param name="settings"> /// The connection settings of a device on a SPI bus. /// </param> public UnixSpiDevice(SpiConnectionSettings settings) { _settings = settings; RaspberryPath = DefaultRaspberryPath; }
/// <summary> /// Creates a communications channel to a device on a SPI bus running on the current hardware /// </summary> /// <param name="settings">The connection settings of a device on a SPI bus.</param> /// <returns>A communications channel to a device on a SPI bus running on Windows 10 IoT.</returns> public static SpiDevice Create(SpiConnectionSettings settings) { return(new UnixSpiDevice(settings)); }