GpioChangeCount GpioChangeCount GpioChangeCount GpioChangeCount GpioChangeCount Struct


Represents a near-simultaneous sampling of the number of times a pin has changed value, and the time at which this count was sampled. This structure can be used to determine the number of pin value changes over a period of time.

public : struct GpioChangeCount
struct winrt::Windows::Devices::Gpio::GpioChangeCount
public struct GpioChangeCount
Public Structure GpioChangeCount
var gpioChangeCount = {

   count: /* Your value */,

   relativeTime: /* Your value */


Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v3)


Count Count Count Count Count

The number of times the transition of polarity specified by GpioChangeCounter.Polarity occured on the pin.

RelativeTime RelativeTime RelativeTime RelativeTime RelativeTime

The time at which this count was sampled. The time is sampled close to (but not simultaneously with) the count. This timestamp can be used to determine the elapsed time between two GpioChangeCount records. It does not correspond to any absolute or system time.