Skip to content

[Proposal] SpiController and ISpiController #119

@shaggygi

Description

@shaggygi

Similar to the GpioController, there needs to be a mechanism to determine the best SpiDevice to use.

Updated 6/24/2019

Proposed Changes

1. Add New SpiController

The creation of devices with a new static helper method that attempts to pick the best SPI device for OS app is executing on. This static method will be added to a new sealed partial class respective to OS.

// SpiController.Linux.cs
public static SpiDevice Create(SpiConnectionSettings settings) => new UnixSpiDevice(settings);
// SpiController.Windows.cs
public static SpiDevice Create(SpiConnectionSettings settings) => new Windows10SpiDevice(settings);

Metadata

Metadata

Assignees

Labels

area-System.Device.GpioContains types for using general-purpose I/O (GPIO) pinsenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions