ISpiDeviceStatics
ISpiDeviceStatics
ISpiDeviceStatics
ISpiDeviceStatics
Interface
Definition
Represents SPI device statistics common to SPI devices.
public : interface ISpiDeviceStaticspublic interface ISpiDeviceStaticsPublic Interface ISpiDeviceStatics// You can use this interface in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v1)
|
Methods
FromIdAsync(String, SpiConnectionSettings) FromIdAsync(String, SpiConnectionSettings) FromIdAsync(String, SpiConnectionSettings) FromIdAsync(String, SpiConnectionSettings)
Opens a device with the connection settings provided.
public : IAsyncOperation<SpiDevice> FromIdAsync(PlatForm::String busId, SpiConnectionSettings settings)public IAsyncOperation<SpiDevice> FromIdAsync(String busId, SpiConnectionSettings settings)Public Function FromIdAsync(busId As String, settings As SpiConnectionSettings) As IAsyncOperation( Of SpiDevice )// You can use this method in JavaScript.
Parameters
- busId
- PlatForm::String String String String
The id of the bus.
The connection settings.
Returns
IAsyncOperation<SpiDevice>
IAsyncOperation<SpiDevice>
IAsyncOperation<SpiDevice>
IAsyncOperation<SpiDevice>
The SPI device.
Additional features and requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v1)
|
| Capabilities |
lowLevelDevices
|
GetBusInfo(String) GetBusInfo(String) GetBusInfo(String) GetBusInfo(String)
Retrieves the info about a certain bus.
public : SpiBusInfo GetBusInfo(PlatForm::String busId)public SpiBusInfo GetBusInfo(String busId)Public Function GetBusInfo(busId As String) As SpiBusInfo// You can use this method in JavaScript.
Parameters
- busId
- PlatForm::String String String String
The id of the bus.
Returns
The bus info requested.
Additional features and requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v1)
|
| Capabilities |
lowLevelDevices
|
GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()
Gets all the SPI buses found on the system.
public : PlatForm::String GetDeviceSelector()public string GetDeviceSelector()Public Function GetDeviceSelector() As string// You can use this method in JavaScript.
Returns
PlatForm::String
string
string
string
String containing all the buses on the system.
- See Also
GetDeviceSelector(String) GetDeviceSelector(String) GetDeviceSelector(String) GetDeviceSelector(String)
Gets all the SPI buses found on the system that match the input parameter.
public : PlatForm::String GetDeviceSelector(PlatForm::String friendlyName)public string GetDeviceSelector(String friendlyName)Public Function GetDeviceSelector(friendlyName As String) As string// You can use this method in JavaScript.
Parameters
- friendlyName
- PlatForm::String String String String
Input parameter specifying an identifying name for the desired bus. This usually corresponds to a name on the schematic.
Returns
PlatForm::String
string
string
string
String containing all the buses that have the input in the name.
- See Also