GpioSharingMode 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 GpioSharingMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
enum class GpioSharingMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
public enum GpioSharingMode
var value = Windows.Devices.Gpio.GpioSharingMode.exclusive
Public Enum GpioSharingMode
Inheritance
GpioSharingMode
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v1.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.

You can only perform operations that do not change the state of the GPIO pin in shared mode. Operations that you can perform on the GPIO pin in shared mode include:

Applies to

See also