Share via


I2cConnectionSettings Class

Definition

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

public ref class I2cConnectionSettings sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.I2c.II2cConnectionSettingsFactory, 65536, Windows.Devices.DevicesLowLevelContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class I2cConnectionSettings final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.I2c.II2cConnectionSettingsFactory, 65536, "Windows.Devices.DevicesLowLevelContract")]
class I2cConnectionSettings final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.I2c.II2cConnectionSettingsFactory), 65536, typeof(Windows.Devices.DevicesLowLevelContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class I2cConnectionSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.I2c.II2cConnectionSettingsFactory), 65536, "Windows.Devices.DevicesLowLevelContract")]
public sealed class I2cConnectionSettings
function I2cConnectionSettings(slaveAddress)
Public NotInheritable Class I2cConnectionSettings
Inheritance
Object Platform::Object IInspectable I2cConnectionSettings
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v1.0)

Constructors

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.

Properties

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.

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.

SlaveAddress

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

Applies to

See also