ProviderGpioSharingMode Enum

Definition

Describes the modes in which you can open a general-purpose I/O (GPIO) pin. These modes determine whether other connections to the GPIO pin can be opened while you have the pin open.

public enum class ProviderGpioSharingMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
enum class ProviderGpioSharingMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
public enum ProviderGpioSharingMode
var value = Windows.Devices.Gpio.Provider.ProviderGpioSharingMode.exclusive
Public Enum ProviderGpioSharingMode
Inheritance
ProviderGpioSharingMode
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10586.0)
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v2.0)

Fields

Exclusive 0

Opens the GPIO pin exclusively, so that no other connection to the pin can be opened.

SharedReadOnly 1

Opens the GPIO pin as shared, so that other connections in SharedReadOnly mode to the pin can be opened. Only operations that do not change the state of the pin can be performed.

Applies to

See also