summaryrefslogtreecommitdiff
path: root/decoders/rgb_led_spi
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2017-06-18 12:59:31 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2017-06-20 23:09:51 +0200
commit0172a1661a3addc958269d4251246d2d03cf6368 (patch)
treeb2f625757684f794d1e1505af6bbf541a7bb9c51 /decoders/rgb_led_spi
parenteb88372396c2264948bc05586fb54dc318266973 (diff)
downloadlibsigrokdecode-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 'decoders/rgb_led_spi')
0 files changed, 0 insertions, 0 deletions