HardwareProvider Class

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

Provides access to hardware capability information.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..HardwareProvider

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

Syntax

'Declaration
Public Class HardwareProvider
public class HardwareProvider
public ref class HardwareProvider
type HardwareProvider =  class end
public class HardwareProvider

The HardwareProvider type exposes the following members.

Constructors

  Name Description
Public method HardwareProvider initializes a new instance of the HardwareProvider class.

Top

Properties

  Name Description
Public propertyStatic member HwProvider Provides the mechanism whereby the default HardwareProvider implementation in the .NET Micro Framework is automatically overridden by a customer's implementation.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAnalogChannelsCount Gets the number of analog channels assigned to this device.
Public method GetAnalogPinForChannel Gets the pin assigned to the specified channel.
Public method GetAvailablePrecisionInBitsForChannel Gets the available precision assigned to the specified channel.
Public method GetBaudRateBoundary Gets the maximum and minimum baud rates for a specified COM port.
Public method GetButtonPins Gets the pin assigned to a specified button device.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetI2CPins Gets the GPIO pin assignments for the I2C device.
Public method GetLCDMetrics Gets the size, color-depth, and orientation of the LCD display device.
Public method GetPinsCount Gets the pin count for the device associated with this HardwareProvider.
Public method GetPinsMap Gets a pin map for the device associated with this HardwareProvider.
Public method GetPinsUsage Gets the value from the Cpu..::..PinUsage enumeration that describes the usage of a specified pin.
Public method GetPWMChannelsCount Gets the number of PWM channels assigned to the device.
Public method GetPwmPinForChannel Gets the pin assigned to the specified channel.
Public method GetSerialPins Gets the GPIO pin assignments for the specified communications port (COM port).
Public method GetSerialPortsCount Gets the count of serial ports associated with this HardwareProvider.
Public method GetSpiPins Gets the GPIO pin assignments for the SPI device.
Public method GetSpiPortsCount Gets the number of SPI ports associated with this HardwareProvider.
Public method GetSupportBaudRates Gets all the baud rates supported by a specified COM port.
Public method GetSupportedInterruptModes Gets the supported interrupt modes for a specified pin.
Public method GetSupportedResistorModes Gets the supported resistor modes for a specified pin.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsSupportedBaudRate Determines whether a specified baud rate is supported by a specified COM port.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Register Instantiates a static HardwareProvider that stores information about how the serial communications GPIO pins are used.
Public method SupportsNonStandardBaudRate Determines whether a specified COM port supports a non-standard baud rate.
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