GpioOpenStatus GpioOpenStatus GpioOpenStatus GpioOpenStatus GpioOpenStatus Enum


Describes the possible results of opening a pin with the GpioController.TryOpenPin method.

public : enum class GpioOpenStatus
enum class winrt::Windows::Devices::Gpio::GpioOpenStatus : int32_t
public enum GpioOpenStatus
Public Enum GpioOpenStatus
var value = Windows.Devices.Gpio.GpioOpenStatus.muxingConflict;

Windows 10 requirements

Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)


MuxingConflict MuxingConflict MuxingConflict MuxingConflict MuxingConflict 3

The pin is currently opened for a different function, such as I2c, Spi, or UART. Ensure the pin is not in use by another function.

PinOpened PinOpened PinOpened PinOpened PinOpened 0

The GPIO pin was successfully opened.

PinUnavailable PinUnavailable PinUnavailable PinUnavailable PinUnavailable 1

The pin is reserved by the system and is not available to apps that run in user mode.

SharingViolation SharingViolation SharingViolation SharingViolation SharingViolation 2

The pin is currently open in an incompatible sharing mode. For example:

  • The pin is already open in GpioSharingMode.Exclusive mode.
  • The pin is already open in GpioSharingMode.SharedReadOnly mode when you request to open it in GpioSharingMode.Exclusive mode.
UnknownError UnknownError UnknownError UnknownError UnknownError 4

The pin could not be opened.

See also