C# 클래스 CyrusBuilt.MonoPi.IO.PiFaceGpioBase

Base class for the GPIO pins on the PiFace.
상속: IPiFaceGPIO
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

보호된 프로퍼티들

프로퍼티 타입 설명
_initValue PinState
_mode PinMode

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all resource used by the CyrusBuilt.MonoPi.IO.PiFaceGpioBase object.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PiFaceGpioBase. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PiFaceGpioBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PiFaceGpioBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PiFaceGpioBase was occupying.

Provision ( ) : void

Provisions the pin (initialize to specified mode and make active).

Pulse ( Int32 millis ) : void

Pulse the pin output for the specified number of milliseconds.

Read ( ) : PinState

Read a value from the pin.

ToString ( ) : string

Returns a String that represents the current CyrusBuilt.MonoPi.IO.PiFaceGpioBase.

Write ( PinState value ) : void

Write the specified value to the pin.

보호된 메소드들

메소드 설명
GetGpioPinNumber ( GpioPins pin ) : String

Gets the GPIO pin number.

OnStateChanged ( PinStateChangeEventArgs e ) : void

Raises the state changed event.

PiFaceGpioBase ( PiFacePins pin ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceGpioBase class with the physical pin represented by this class.

PiFaceGpioBase ( PiFacePins pin, PinState initialValue ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceGpioBase class with the physical pin represented by this class.

메소드 상세

Dispose() 공개 메소드

Releases all resource used by the CyrusBuilt.MonoPi.IO.PiFaceGpioBase object.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PiFaceGpioBase. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PiFaceGpioBase in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PiFaceGpioBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PiFaceGpioBase was occupying.
public Dispose ( ) : void
리턴 void

GetGpioPinNumber() 보호된 정적인 메소드

Gets the GPIO pin number.
protected static GetGpioPinNumber ( GpioPins pin ) : String
pin GpioPins /// The GPIO pin. ///
리턴 String

OnStateChanged() 보호된 메소드

Raises the state changed event.
protected OnStateChanged ( PinStateChangeEventArgs e ) : void
e PinStateChangeEventArgs /// The event arguments. ///
리턴 void

PiFaceGpioBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceGpioBase class with the physical pin represented by this class.
protected PiFaceGpioBase ( PiFacePins pin ) : System
pin PiFacePins /// The physical pin being wrapped by this class. ///
리턴 System

PiFaceGpioBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceGpioBase class with the physical pin represented by this class.
protected PiFaceGpioBase ( PiFacePins pin, PinState initialValue ) : System
pin PiFacePins /// The physical pin being wrapped by this class. ///
initialValue PinState /// Initial value. ///
리턴 System

Provision() 공개 추상적인 메소드

Provisions the pin (initialize to specified mode and make active).
public abstract Provision ( ) : void
리턴 void

Pulse() 공개 메소드

Pulse the pin output for the specified number of milliseconds.
public Pulse ( Int32 millis ) : void
millis System.Int32 /// The number of milliseconds to wait between states. ///
리턴 void

Read() 공개 추상적인 메소드

Read a value from the pin.
public abstract Read ( ) : PinState
리턴 PinState

ToString() 공개 메소드

Returns a String that represents the current CyrusBuilt.MonoPi.IO.PiFaceGpioBase.
public ToString ( ) : string
리턴 string

Write() 공개 메소드

Write the specified value to the pin.
public Write ( PinState value ) : void
value PinState /// If set to true value. ///
리턴 void

프로퍼티 상세

_initValue 보호되어 있는 프로퍼티

protected PinState _initValue
리턴 PinState

_mode 보호되어 있는 프로퍼티

protected PinMode _mode
리턴 PinMode