ISpiDeviceProvider ISpiDeviceProvider ISpiDeviceProvider ISpiDeviceProvider Interface

Definition

Represents actions common to a device connected through the SPI bus.

public : interface ISpiDeviceProviderpublic interface ISpiDeviceProviderPublic Interface ISpiDeviceProvider// You can use this interface in JavaScript.
Inheritance
IClosableIDisposableIDisposableIDisposable
ISpiDeviceProviderISpiDeviceProviderISpiDeviceProviderISpiDeviceProvider
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)

Inherited Members

Inherited methods

Properties

ConnectionSettings ConnectionSettings ConnectionSettings ConnectionSettings

Gets the connection settings for the device.

public : ProviderSpiConnectionSettings ConnectionSettings { get; }public ProviderSpiConnectionSettings ConnectionSettings { get; }Public ReadOnly Property ConnectionSettings As ProviderSpiConnectionSettings// You can use this property in JavaScript.

DeviceId DeviceId DeviceId DeviceId

Gets the unique ID associated with the device.

public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The device ID.

Methods

Read(Byte[]) Read(Byte[]) Read(Byte[]) Read(Byte[])

Reads from the connected device.

public : void Read(Byte[] buffer)public void Read(Byte[] buffer)Public Function Read(buffer As Byte[]) As void// You can use this method in JavaScript.
Parameters
buffer
Byte[] Byte[] Byte[] Byte[]

Array containing data read from the device.

TransferFullDuplex(Byte[], Byte[]) TransferFullDuplex(Byte[], Byte[]) TransferFullDuplex(Byte[], Byte[]) TransferFullDuplex(Byte[], Byte[])

Transfer data using a full duplex communication system. Full duplex allows both the master and the slave to communicate simultaneously.

public : void TransferFullDuplex(Byte[] writeBuffer, Byte[] readBuffer)public void TransferFullDuplex(Byte[] writeBuffer, Byte[] readBuffer)Public Function TransferFullDuplex(writeBuffer As Byte[], readBuffer As Byte[]) As void// You can use this method in JavaScript.
Parameters
writeBuffer
Byte[] Byte[] Byte[] Byte[]

Array containing data to write to the device.

readBuffer
Byte[] Byte[] Byte[] Byte[]

Array containing data read from the device.

TransferSequential(Byte[], Byte[]) TransferSequential(Byte[], Byte[]) TransferSequential(Byte[], Byte[]) TransferSequential(Byte[], Byte[])

Transfer data sequentially to the device.

public : void TransferSequential(Byte[] writeBuffer, Byte[] readBuffer)public void TransferSequential(Byte[] writeBuffer, Byte[] readBuffer)Public Function TransferSequential(writeBuffer As Byte[], readBuffer As Byte[]) As void// You can use this method in JavaScript.
Parameters
writeBuffer
Byte[] Byte[] Byte[] Byte[]

Array containing data to write to the device.

readBuffer
Byte[] Byte[] Byte[] Byte[]

Array containing data read from the device.

Write(Byte[]) Write(Byte[]) Write(Byte[]) Write(Byte[])

Writes to the connected device.

public : void Write(Byte[] buffer)public void Write(Byte[] buffer)Public Function Write(buffer As Byte[]) As void// You can use this method in JavaScript.
Parameters
buffer
Byte[] Byte[] Byte[] Byte[]

Array containing the data to write to the device.

See Also

  • IClosable IDisposable IDisposable IDisposable