C# 클래스 Porrey.Uwp.IoT.Sensors.Spi

Defines an intergration point to the SPI interface.
상속: ISpi
파일 보기 프로젝트 열기: porrey/iot

공개 메소드들

메소드 설명
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