C# 클래스 CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin

Represents a TI PCF8574 GPIO pin abstraction. This class also provides hard implementations of all 8 of the GPIO pins on the PCF8574.
상속: IPCF8574Pin
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 프로퍼티들

프로퍼티 타입 설명
ALL IPCF8574Pin[]
GPIO_00 IPCF8574Pin
GPIO_01 IPCF8574Pin
GPIO_02 IPCF8574Pin
GPIO_03 IPCF8574Pin
GPIO_04 IPCF8574Pin
GPIO_05 IPCF8574Pin
GPIO_06 IPCF8574Pin
GPIO_07 IPCF8574Pin

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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

PCF8574Pin ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class. This is the default constructor.

PCF8574Pin ( Int32 address ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the address of the pin.

PCF8574Pin ( Int32 address, String name ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the address and name of the pin.

PCF8574Pin ( String provider, Int32 address, String name ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the GPIO provider, address, and name of the pin.

SetMode ( PinMode mode ) : void

Sets the pin mode.

SetState ( PinState state ) : void

Sets the state of the pin.

ToString ( ) : string

Returns a System.String that represents the current CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin.

비공개 메소드들

메소드 설명
CreateDigitalPin ( Int32 address, String name ) : PCF8574Pin

Factory method for creating a digital PCF8574 pin.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin was occupying.
public Dispose ( ) : void
리턴 void

PCF8574Pin() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class. This is the default constructor.
public PCF8574Pin ( ) : System
리턴 System

PCF8574Pin() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the address of the pin.
public PCF8574Pin ( Int32 address ) : System
address System.Int32 /// The address of the pin. ///
리턴 System

PCF8574Pin() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the address and name of the pin.
public PCF8574Pin ( Int32 address, String name ) : System
address System.Int32 /// The address of the pin. ///
name String /// The name of the pin. ///
리턴 System

PCF8574Pin() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCF.PCF8574Pin class with the GPIO provider, address, and name of the pin.
public PCF8574Pin ( String provider, Int32 address, String name ) : System
provider String /// The GPIO pin provider. ///
address System.Int32 /// The address of the pin. ///
name String /// The name of the pin. ///
리턴 System

SetMode() 공개 메소드

Sets the pin mode.
public SetMode ( PinMode mode ) : void
mode PinMode /// The pin mode. ///
리턴 void

SetState() 공개 메소드

Sets the state of the pin.
public SetState ( PinState state ) : void
state PinState /// The pin state. ///
리턴 void

ToString() 공개 메소드

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

프로퍼티 상세

ALL 공개적으로 정적으로 프로퍼티

An array of all 8 pins.
public static IPCF8574Pin[] ALL
리턴 IPCF8574Pin[]

GPIO_00 공개적으로 정적으로 프로퍼티

The GPIO 0 pin (at address 0).
public static IPCF8574Pin GPIO_00
리턴 IPCF8574Pin

GPIO_01 공개적으로 정적으로 프로퍼티

The GPIO 1 pin (at address 1).
public static IPCF8574Pin GPIO_01
리턴 IPCF8574Pin

GPIO_02 공개적으로 정적으로 프로퍼티

The GPIO 2 pin (at address 2).
public static IPCF8574Pin GPIO_02
리턴 IPCF8574Pin

GPIO_03 공개적으로 정적으로 프로퍼티

The GPIO 3 pin (at address 3).
public static IPCF8574Pin GPIO_03
리턴 IPCF8574Pin

GPIO_04 공개적으로 정적으로 프로퍼티

The GPIO 4 pin (at address 4).
public static IPCF8574Pin GPIO_04
리턴 IPCF8574Pin

GPIO_05 공개적으로 정적으로 프로퍼티

The GPIO 5 pin (at address 5).
public static IPCF8574Pin GPIO_05
리턴 IPCF8574Pin

GPIO_06 공개적으로 정적으로 프로퍼티

The GPIO 6 pin (at address 6).
public static IPCF8574Pin GPIO_06
리턴 IPCF8574Pin

GPIO_07 공개적으로 정적으로 프로퍼티

The GPIO 7 pin (at address 7).
public static IPCF8574Pin GPIO_07
리턴 IPCF8574Pin