Partager via


SpiDevice.FromIdAsync(String, SpiConnectionSettings) Méthode

Définition

Ouvre un appareil avec les paramètres de connexion fournis.

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)

Paramètres

busId
String

Platform::String

winrt::hstring

ID du bus.

settings
SpiConnectionSettings

Paramètres de connexion.

Retours

Périphérique SPI demandé.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
lowLevel

S’applique à