GpioOpenStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
|
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. |