SpiController
SpiController
SpiController
SpiController
Class
Definition
Represents the SPI controller on the system.
public : sealed class SpiController : ISpiControllerpublic sealed class SpiController : ISpiControllerPublic NotInheritable Class SpiController Implements ISpiController// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10586.0)
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v2)
|
Methods
GetControllersAsync(ISpiProvider) GetControllersAsync(ISpiProvider) GetControllersAsync(ISpiProvider) GetControllersAsync(ISpiProvider)
Gets all the SPI controllers that are on the system.
public : static IAsyncOperation<IVectorView<SpiController>> GetControllersAsync(ISpiProvider provider)public static IAsyncOperation<IReadOnlyList<SpiController>> GetControllersAsync(ISpiProvider provider)Public Static Function GetControllersAsync(provider As ISpiProvider) As IAsyncOperation( Of IReadOnlyListSpiController )// You can use this method in JavaScript.
Parameters
- provider
- ISpiProvider ISpiProvider ISpiProvider ISpiProvider
The SPI provider for the controllers on the system.
Returns
IAsyncOperation<IVectorView<SpiController>>
IAsyncOperation<IReadOnlyList<SpiController>>
IAsyncOperation<IReadOnlyList<SpiController>>
IAsyncOperation<IReadOnlyList<SpiController>>
When the method completes successfully, it returns a list of values that represent the available SPI controllers on the system.
GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()
Gets the default SPI controller on the system.
public : static IAsyncOperation<SpiController> GetDefaultAsync()public static IAsyncOperation<SpiController> GetDefaultAsync()Public Static Function GetDefaultAsync() As IAsyncOperation( Of SpiController )// You can use this method in JavaScript.
Returns
IAsyncOperation<SpiController>
IAsyncOperation<SpiController>
IAsyncOperation<SpiController>
IAsyncOperation<SpiController>
The default SPI controller on the system, or null if the system has no SPI controller.
GetDevice(SpiConnectionSettings) GetDevice(SpiConnectionSettings) GetDevice(SpiConnectionSettings) GetDevice(SpiConnectionSettings)
Gets the SPI device with the specified settings.
public : SpiDevice GetDevice(SpiConnectionSettings settings)public SpiDevice GetDevice(SpiConnectionSettings settings)Public Function GetDevice(settings As SpiConnectionSettings) As SpiDevice// You can use this method in JavaScript.
Parameters
The desired connection settings.
Returns