Edit

Share via


I2cBusManager Class

Definition

Manages an I2C bus instance

public class I2cBusManager : System.Device.I2c.I2cBus, IDisposable
type I2cBusManager = class
    inherit I2cBus
    interface IDisposable
Public Class I2cBusManager
Inherits I2cBus
Implements IDisposable
Inheritance
I2cBusManager
Implements

Constructors

I2cBusManager(Board, Int32, Int32[], I2cBus)

Creates an instance of an I2C bus, given the pins used for that bus

Properties

BusId

The Bus Id of this bus

Methods

CreateDevice(Int32)

Creates a device on this bus

Dispose() (Inherited from I2cBus)
Dispose(Boolean)

Disposes this I2C bus instance. Also disposes all devices associated with this bus.

GetActiveManagedPins() System.Object.GetActiveManagedPins
QueryComponentInformation()

Query the component information (the tree of active drivers) for diagnostic purposes.

QueryComponentInformation()

Query information about a component and it's children.

(Inherited from I2cBus)
RemoveDevice(Int32)

Disposes and removes a device from the bus. No exception is thrown if the device is not open

Extension Methods

PerformBusScan(I2cBus, Int32, Int32)

Performs a scan on the I2C bus, returning the addresses for all connected devices.

PerformBusScan(I2cBus, IProgress<Single>, Int32, Int32)

Performs a scan on the I2C bus, returning the addresses for all connected devices.

Applies to