C# Class Porrey.Uwp.IoT.Sensors.Spi

Defines an intergration point to the SPI interface.
Inheritance: ISpi
Datei anzeigen Open project: porrey/iot

Public Methods

Method Description
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).

Protected Methods

Method Description
OnDispose ( ) : void

Method Details

Dispose() public method

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
return void

Initialize() public method

Initializes the sensor by establishing a connection on the SPI interface.
public Initialize ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDispose() protected method

protected OnDispose ( ) : void
return void

Spi() public method

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.
return System

Spi() public method

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.
return System