Jaa


GpioOpenStatus Enum

Definition

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

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

Name Value Description
PinOpened 0

The GPIO pin was successfully opened.

PinUnavailable 1

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

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.
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.

UnknownError 4

The pin could not be opened.

Applies to

See also