Table of Contents

Struct GpioPulseCount

Namespace
System.Device.Gpio
Assembly
nanoFramework.Hardware.Esp32.dll

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 GpioPulseCount
Inherited Members

Fields

Count

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

public long Count

Field Value

long

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.

public TimeSpan RelativeTime

Field Value

TimeSpan