Condividi tramite


SpiDevice.FromIdAsync(String, SpiConnectionSettings) Metodo

Definizione

Apre un dispositivo con le impostazioni di connessione fornite.

public:
 static IAsyncOperation<SpiDevice ^> ^ FromIdAsync(Platform::String ^ busId, SpiConnectionSettings ^ settings);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SpiDevice> FromIdAsync(winrt::hstring const& busId, SpiConnectionSettings const& settings);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SpiDevice> FromIdAsync(string busId, SpiConnectionSettings settings);
function fromIdAsync(busId, settings)
Public Shared Function FromIdAsync (busId As String, settings As SpiConnectionSettings) As IAsyncOperation(Of SpiDevice)

Parametri

busId
String

Platform::String

winrt::hstring

ID del bus.

settings
SpiConnectionSettings

Impostazioni di connessione.

Restituisce

Il dispositivo SPI richiesto.

Attributi

Requisiti Windows

Funzionalità dell'app
lowLevel

Si applica a