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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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