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

This class represents the wiper. It is used for devices knowing more than one wiper.
ファイルを表示 Open project: cyrusbuilt/MonoPi Class Usage Examples

Public Properties

Property Type Description
A DeviceControlChannel
ALL CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel[]
B DeviceControlChannel
C DeviceControlChannel
D DeviceControlChannel

Public Methods

Method Description
Equals ( DeviceControlChannel dcc ) : System.Boolean

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

Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ValueOf ( MicrochipPotChannel channel ) : DeviceControlChannel

Factory method for creating a device control channel based on the given potentiometer channel.

Protected Methods

Method Description
DeviceControlChannel ( Byte volatileMemAddr, Byte nonVolatileMemAddr, Byte termConAddr, Int32 hwConfigCtrlBit, Int32 termAConnCtrlBit, Int32 termBConnCtrlBit, Int32 wiperConnCtrlBit, MicrochipPotChannel chan ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel class with the volatile memory address, non-volatile memory address, terminal control address, hardware-config control bit, terminal A connection control bit, terminal B connection control bit, wiper connection control bit, and MCP potentiometer channel.

Method Details

DeviceControlChannel() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel class with the volatile memory address, non-volatile memory address, terminal control address, hardware-config control bit, terminal A connection control bit, terminal B connection control bit, wiper connection control bit, and MCP potentiometer channel.
protected DeviceControlChannel ( Byte volatileMemAddr, Byte nonVolatileMemAddr, Byte termConAddr, Int32 hwConfigCtrlBit, Int32 termAConnCtrlBit, Int32 termBConnCtrlBit, Int32 wiperConnCtrlBit, MicrochipPotChannel chan ) : System
volatileMemAddr Byte /// The volatile memory address. ///
nonVolatileMemAddr Byte /// The non-volatile memory address. ///
termConAddr Byte /// The terminal control address. ///
hwConfigCtrlBit System.Int32 /// The hardware config control bit. ///
termAConnCtrlBit System.Int32 /// The terminal A connection control bit. ///
termBConnCtrlBit System.Int32 /// The terminal B connection control bit. ///
wiperConnCtrlBit System.Int32 /// The wiper connection control bit. ///
chan MicrochipPotChannel /// The MCP potentiometer channel. ///
return System

Equals() public method

Determines whether the specified CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel is equal to the current CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel.
public Equals ( DeviceControlChannel dcc ) : System.Boolean
dcc DeviceControlChannel /// 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.DeviceControlChannel.
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

ValueOf() public static method

Factory method for creating a device control channel based on the given potentiometer channel.
public static ValueOf ( MicrochipPotChannel channel ) : DeviceControlChannel
channel MicrochipPotChannel /// The MCP potentiometer channel. ///
return DeviceControlChannel

Property Details

A public_oe static_oe property

Device control channel A.
public static DeviceControlChannel,CyrusBuilt.MonoPi.Components.Potentiometers.Microchip A
return DeviceControlChannel

ALL public_oe static_oe property

All device control channels.
public static DeviceControlChannel[],CyrusBuilt.MonoPi.Components.Potentiometers.Microchip ALL
return CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.DeviceControlChannel[]

B public_oe static_oe property

Device control channel B.
public static DeviceControlChannel,CyrusBuilt.MonoPi.Components.Potentiometers.Microchip B
return DeviceControlChannel

C public_oe static_oe property

Device control channel C.
public static DeviceControlChannel,CyrusBuilt.MonoPi.Components.Potentiometers.Microchip C
return DeviceControlChannel

D public_oe static_oe property

Device control channel D.
public static DeviceControlChannel,CyrusBuilt.MonoPi.Components.Potentiometers.Microchip D
return DeviceControlChannel