I2cBusManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Implements
Constructors
| Name | Description |
|---|---|
| I2cBusManager(Board, Int32, Int32[], I2cBus) |
Creates an instance of an I2C bus, given the pins used for that bus |
Properties
| Name | Description |
|---|---|
| BusId |
The Bus Id of this bus |
Methods
| Name | Description |
|---|---|
| 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() | |
| QueryComponentInformation() |
Query the component information (the tree of active drivers) for diagnostic purposes. |
| RemoveDevice(Int32) |
Disposes and removes a device from the bus. No exception is thrown if the device is not open |
Extension Methods
| Name | Description |
|---|---|
| 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. |