C# Класс Porrey.Uwp.IoT.Sensors.Spi

Defines an intergration point to the SPI interface.
Наследование: ISpi
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes manages objects used by this instance of Porrey.Uwp.IoT.Sensors.Spi. After being disposed this instance should not be used.

Initialize ( ) : System.Threading.Tasks.Task

Initializes the sensor by establishing a connection on the SPI interface.

Spi ( Windows.Devices.Spi.SpiConnectionSettings settings ) : System

Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified SpiConnectionSettings.

Spi ( int chipSelectLine ) : System

Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified Chip Select Line (0 or 1).

Защищенные методы

Метод Описание
OnDispose ( ) : void

Описание методов

Dispose() публичный Метод

Disposes manages objects used by this instance of Porrey.Uwp.IoT.Sensors.Spi. After being disposed this instance should not be used.
public Dispose ( ) : void
Результат void

Initialize() публичный Метод

Initializes the sensor by establishing a connection on the SPI interface.
public Initialize ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

OnDispose() защищенный Метод

protected OnDispose ( ) : void
Результат void

Spi() публичный Метод

Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified SpiConnectionSettings.
public Spi ( Windows.Devices.Spi.SpiConnectionSettings settings ) : System
settings Windows.Devices.Spi.SpiConnectionSettings An instance of SpiConnectionSettings that specifies /// the parameters of the SPI connection for the sensor.
Результат System

Spi() публичный Метод

Initializes a new instance of the Windows.Devices.Sensors.Spi with the specified Chip Select Line (0 or 1).
public Spi ( int chipSelectLine ) : System
chipSelectLine int The Chip Select Line the sensor /// is physically connected to. This value is either 0 or 1 on the /// Raspberry Pi 2.
Результат System