C# 클래스 CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration

Terminal configuration settings for the channel a given potentiometer instance is configured for.
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( MCPTerminalConfiguration config ) : System.Boolean

Determines whether the specified CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration is equal to the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

MCPTerminalConfiguration ( MicrochipPotChannel chan, System.Boolean chanEnabled, System.Boolean pinAEnabled, System.Boolean pinWEnabled, System.Boolean pinBEnabled ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration class with the channel and flags to indicated whether the channel is enabled or disabled as well as flags to indicate whether or not each pin is enabled or disabled.

ToString ( ) : string

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.

메소드 상세

Equals() 공개 메소드

Determines whether the specified CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration is equal to the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.
public Equals ( MCPTerminalConfiguration config ) : System.Boolean
config MCPTerminalConfiguration The to compare with /// the current .
리턴 System.Boolean

Equals() 공개 메소드

Determines whether the specified System.Object is equal to the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.
public Equals ( object obj ) : bool
obj object /// The to compare with the current /// . ///
리턴 bool

GetHashCode() 공개 메소드

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
리턴 int

MCPTerminalConfiguration() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration class with the channel and flags to indicated whether the channel is enabled or disabled as well as flags to indicate whether or not each pin is enabled or disabled.
public MCPTerminalConfiguration ( MicrochipPotChannel chan, System.Boolean chanEnabled, System.Boolean pinAEnabled, System.Boolean pinWEnabled, System.Boolean pinBEnabled ) : System
chan MicrochipPotChannel /// The channel this terminal configuration represents. ///
chanEnabled System.Boolean /// Set true to enable the channel. ///
pinAEnabled System.Boolean /// Set true to enable pin A. ///
pinWEnabled System.Boolean /// Set true to enable pin W. ///
pinBEnabled System.Boolean /// Set true to enable pin B. ///
리턴 System

ToString() 공개 메소드

Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration.
public ToString ( ) : string
리턴 string