Class I2cConnectionSettings
The connection settings of a device on an I2C bus.
Inherited Members
Namespace: System.Device.I2c
Assembly: System.Device.I2c.dll
Syntax
public sealed class I2cConnectionSettings
Constructors
I2cConnectionSettings(int, int)
Initializes a new instance of the I2cConnectionSettings class.
Declaration
public I2cConnectionSettings(int busId, int deviceAddress)
Parameters
Type | Name | Description |
---|---|---|
int | busId | The bus ID the I2C device is connected to. |
int | deviceAddress | The bus address of the I2C device. |
I2cConnectionSettings(int, int, I2cBusSpeed)
Initializes a new instance of the I2cConnectionSettings class.
Declaration
public I2cConnectionSettings(int busId, int deviceAddress, I2cBusSpeed busSpeed)
Parameters
Type | Name | Description |
---|---|---|
int | busId | The bus ID the I2C device is connected to. |
int | deviceAddress | The bus address of the I2C device. |
I2cBusSpeed | busSpeed | The bus speed of the I2C device. |
Properties
BusId
The bus ID the I2C device is connected to.
Declaration
public int BusId { get; }
Property Value
Type | Description |
---|---|
int |
BusSpeed
The bus speed of the I2C device
Declaration
public I2cBusSpeed BusSpeed { get; }
Property Value
Type | Description |
---|---|
I2cBusSpeed |
DeviceAddress
The bus address of the I2C device.
Declaration
public int DeviceAddress { get; }
Property Value
Type | Description |
---|---|
int |