]> sigrok.org Git - libsigrokdecode.git/commitdiff
pwm: Rephrase edge and period detection, eliminate internal state
authorGerhard Sittig <redacted>
Sun, 18 Jun 2017 10:59:31 +0000 (12:59 +0200)
committerGerhard Sittig <redacted>
Tue, 20 Jun 2017 21:09:51 +0000 (23:09 +0200)
With the simplicity of PWM waveforms and the convenience of the v3 API,
there is no need to maintain internal state. After the start of the
first period was determined based on the input signal's polarity, any
period is defined by just the next two edges, and the next period is
immediately to follow.


No differences found