I2cConnectionSettings 类

定义

表示要用于集成线路 (I2 C) 设备的连接设置。

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
继承
Object IInspectable I2cConnectionSettings
属性

Windows 要求

设备系列
Windows IoT Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Devices.DevicesLowLevelContract (在 v1.0 中引入)

构造函数

I2cConnectionSettings(Int32)

使用总线速度和独占共享模式的标准模式默认设置,为具有指定总线地址的 (I2 C) 设备创建并初始化 I2cConnectionSettings 类的新实例。

属性

BusSpeed

获取或设置用于连接到集成线路 (I2 C) 设备的总线速度。 总线速度是访问设备时要时钟 I2 C 总线的频率。

SharingMode

获取或设置用于连接到集成线路 (I2 C) 总线地址的共享模式。 此模式确定连接到 I2 C 总线地址的其他连接是否可以在连接到 I2 C 总线地址时打开。

SlaveAddress

获取或设置 (I2 C) 设备的集成电路间总线地址。

适用于

另请参阅