AnalogInput Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents an analog input

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..AnalogInput

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Class AnalogInput _
    Implements IDisposable
public class AnalogInput : IDisposable
public ref class AnalogInput : IDisposable
type AnalogInput =  
    class
        interface IDisposable
    end
public class AnalogInput implements IDisposable

The AnalogInput type exposes the following members.

Constructors

  Name Description
Public method AnalogInput(Cpu. . :: . .AnalogChannel) Initializes a new instance of the AnalogInput class with the specified channel.
Public method AnalogInput(Cpu. . :: . .AnalogChannel, Int32) Initializes a new instance of the AnalogInput class with the specified channel and precision.
Public method AnalogInput(Cpu. . :: . .AnalogChannel, Double, Double, Int32) Initializes a new instance of the AnalogInput class with the specified channel, scale, offset, and precision.

Top

Properties

  Name Description
Public property Offset Gets or sets a constant factor to apply to the raw sensor reading before the value is returned.
Public property Pin Gets the GPIO pin for the channel.
Public property Precision Gets the precision in bits for this channel.
Public property Scale Gets or sets a multiplicative factor to apply to the raw sensor reading before the value is returned.

Top

Methods

  Name Description
Public method Dispose Releases the resources used by this AnalogInput object.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases the resources used by this AnalogInput object before it is reclaimed by the garbage collector. (Overrides Object. . :: . .Finalize() () () ().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodStatic member Initialize Sets initial values for the AnalogInput object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Read Reads from the analog port.
Public method ReadRaw Reads from the AnalogInput and returns the raw reading.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Hardware Namespace