C# Class CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration

Terminal configuration settings for the channel a given potentiometer instance is configured for.
Mostrar archivo Open project: cyrusbuilt/MonoPi Class Usage Examples

Public Methods

Method Description
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.

Method Details

Equals() public method

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 .
return System.Boolean

Equals() public method

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 /// . ///
return bool

GetHashCode() public method

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

MCPTerminalConfiguration() public method

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. ///
return System

ToString() public method

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