I2cConnectionSettings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示要用于集成电路 (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
- 继承
- 属性
Windows 要求
设备系列 |
Windows IoT Extension SDK (在 10.0.10240.0 中引入)
|
API contract |
Windows.Devices.DevicesLowLevelContract (在 v1.0 中引入)
|
构造函数
I2cConnectionSettings(Int32) |
使用总线速度和独占共享模式的标准模式的默认设置,为具有指定总线地址的 I2cConnectionSettings 设备 (I2 C) 设备创建并初始化 I2cConnectionSettings 类的新实例。 |
属性
BusSpeed |
获取或设置用于连接到 (I2 C) 设备间集成电路的总线速度。 总线速度是访问设备时 I2 C 总线的时钟频率。 |
SharingMode |
获取或设置用于连接到总线地址 (I2 C) 总线地址的集成线路的共享模式。 此模式确定在连接到 I2 C 总线地址时是否可以打开与 I2 C 总线地址的其他连接。 |
SlaveAddress |
获取或设置 I2 C) 设备的集成电路间 (的总线地址。 |