I2cConnectionSettings I2cConnectionSettings I2cConnectionSettings I2cConnectionSettings Class

Definition

Represents the connection settings you want to use for an inter-integrated circuit (I2 C) device.

public : sealed class I2cConnectionSettings : II2cConnectionSettingspublic sealed class I2cConnectionSettings : II2cConnectionSettingsPublic NotInheritable Class I2cConnectionSettings Implements II2cConnectionSettings// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)

Constructors

I2cConnectionSettings(Int32) I2cConnectionSettings(Int32) I2cConnectionSettings(Int32) I2cConnectionSettings(Int32)

Creates and initializes a new instance of the I2cConnectionSettings class for inter-integrated circuit (I2 C) device with specified bus address, using the default settings of the standard mode for the bus speed and exclusive sharing mode.

public : I2cConnectionSettings(int slaveAddress)public I2cConnectionSettings(Int32 slaveAddress)Public Sub New(slaveAddress As Int32)// You can use this method in JavaScript.
Parameters
slaveAddress
int Int32 Int32 Int32

The bus address of the inter-integrated circuit (I2 C) device to which the settings of the I2cConnectionSettings should apply. Only 7-bit addressing is supported, so the range of values that are valid is from 8 to 119.

See Also

Properties

BusSpeed BusSpeed BusSpeed BusSpeed

Gets or sets the bus speed to use for connecting to an inter-integrated circuit (I2 C) device. The bus speed is the frequency at which to clock the I2 C bus when accessing the device.

public : I2cBusSpeed BusSpeed { get; set; }public I2cBusSpeed BusSpeed { get; set; }Public ReadWrite Property BusSpeed As I2cBusSpeed// You can use this property in JavaScript.
Value
I2cBusSpeed I2cBusSpeed I2cBusSpeed I2cBusSpeed

The bus speed to use for connecting to anI2 C device.

See Also

SharingMode SharingMode SharingMode SharingMode

Gets or sets the sharing mode to use to connect to the inter-integrated circuit (I2 C) bus address. This mode determines whether other connections to the I2 C bus address can be opened while you are connect to the I2 C bus address.

public : I2cSharingMode SharingMode { get; set; }public I2cSharingMode SharingMode { get; set; }Public ReadWrite Property SharingMode As I2cSharingMode// You can use this property in JavaScript.
Value
I2cSharingMode I2cSharingMode I2cSharingMode I2cSharingMode

The sharing mode to use to connect to the I2 C bus address.

See Also

SlaveAddress SlaveAddress SlaveAddress SlaveAddress

Gets or sets the bus address of the inter-integrated circuit (I2 C) device.

public : int SlaveAddress { get; set; }public int SlaveAddress { get; set; }Public ReadWrite Property SlaveAddress As int// You can use this property in JavaScript.
Value
int int int int

The bus address of the I2 C device. Only 7-bit addressing is supported, so the range of values that are valid is from 8 to 119.

See Also