summaryrefslogtreecommitdiff
path: root/decoders/graycode
AgeCommit message (Collapse)Author
2018-01-28graycode, morse, pwm, usb_request, wiegand: cope with absent sample rateGerhard Sittig
Improve robustness of some more protocol decoders. Few of them never checked for the availability of a sample rate in the first place, others checked for the presence of a spec but would not cope with a value of 0. Some checked the value only after processing it, which could result in runtime errors. This change is motivated by bug #1118.
2017-12-22all decoders: introduce a reset() methodGerhard Sittig
Move initialization code of protocol decoders from the constructor to a new reset() helper method. The libsigrokdecode backend could run this method several times to clear the decoder's internal state, before new data from another acquisition gets fed to decode() calls.
2017-12-09graycode: Move bitpack/bitunpack to common/.Uwe Hermann
2017-12-09Add a gray code and rotary encoder protocol decoder.Christoph Rackwitz