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) |
使用匯流排速度與獨佔共用模式的標準模式預設設定,為整合式線路 (I2 C) 裝置建立並初始化 I2cConnectionSettings 類別的新實例。 |
屬性
BusSpeed |
取得或設定用於連線到內部電路 (I2 C) 裝置的匯流排速度。 匯流排速度是存取裝置時,要時鐘 I2 C 匯流排的頻率。 |
SharingMode |
取得或設定共用模式,以用來連線到匯流排位址 (I2 C) 匯流排位址的整合式線路。 此模式會決定當您連線到 I2 C 匯流排位址時,是否可以開啟與 I2 C 匯流排位址的其他連線。 |
SlaveAddress |
取得或設定 (I2 C) 裝置之整合式線路的匯流排位址。 |