diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-06-18 12:59:31 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-06-20 23:09:51 +0200 |
commit | 0172a1661a3addc958269d4251246d2d03cf6368 (patch) | |
tree | b2f625757684f794d1e1505af6bbf541a7bb9c51 /exception.c | |
parent | eb88372396c2264948bc05586fb54dc318266973 (diff) | |
download | libsigrokdecode-0172a1661a3addc958269d4251246d2d03cf6368.tar.gz libsigrokdecode-0172a1661a3addc958269d4251246d2d03cf6368.zip |
pwm: Rephrase edge and period detection, eliminate internal state
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.
Diffstat (limited to 'exception.c')
0 files changed, 0 insertions, 0 deletions