Share via


GpioChangePolarity Enum

Definition

Represents the polarity of changes that are relevant to the associated action.

public enum class GpioChangePolarity
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 196608)]
enum class GpioChangePolarity
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 196608)]
public enum GpioChangePolarity
var value = Windows.Devices.Gpio.GpioChangePolarity.falling
Public Enum GpioChangePolarity
Inheritance
GpioChangePolarity
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v3.0)

Fields

Name Value Description
Falling 0

Transitions from high to low should trigger the associated action.

Rising 1

Transitions from low to high should trigger the associated action.

Both 2

Transitions from both low to high and high to low should trigger the associated action.

Applies to