I2CDevice Class

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

Represents an instance of the I2C interface for an I2C device.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..I2CDevice

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

Syntax

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

The I2CDevice type exposes the following members.

Constructors

  Name Description
Public method I2CDevice Initializes a new instance of the I2CDevice class.

Top

Methods

  Name Description
Public methodStatic member CreateReadTransaction Creates an I2CDevice..::..I2CReadTransaction object that can be passed to the Execute method.
Public methodStatic member CreateWriteTransaction Creates an I2CDevice..::..I2CWriteTransaction object that can be passed to the Execute method.
Public method Dispose Releases resources used by the I2CDevice object.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Execute Executes a transaction by scheduling the transfer of the data involved.
Protected method Finalize Performs cleanup operations. (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 method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public field Config Contains the device's configuration data.
Protected field m_disposed Set to true when this I2CDevice object has been disposed and its resources released; otherwise set to false.

Top

Remarks

The I2C interface is a synchronous serial communications protocol in which multiple devices can be connected with one another by way of a single two-wire system. The two-wire system includes the serial data signal (SDA) and the serial clock (SCA). This two-wire interface has the ability to send 8-bit data, 7-bit addresses, and control bits.

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