summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2017-09-02 12:52:32 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-02-15 19:17:44 +0100
commitfb1870b00fe4490eb9d4cd2b777629321416f763 (patch)
tree9dd862508027e5494a389e94040b97af3a27c6cb /type_decoder.c
parente710d006ee7edbfa09126c60000b47f7cd65498a (diff)
downloadlibsigrokdecode-fb1870b00fe4490eb9d4cd2b777629321416f763.tar.gz
libsigrokdecode-fb1870b00fe4490eb9d4cd2b777629321416f763.zip
ir_nec: optionally accept input signals that include the carrier
Introduce optional detection of a carrier signal. Immediately "go active" when edges are seen. "Go inactive" again in the absence of edges in a specified period of time. Cope with input signals that already had the carrier removed. By default carrier detection is disabled, to remain pixel compatible to the previous implementation. When a carrier frequency is specified and thus detection is enabled, edges of already filtered input are shifted by one carrier period, and thus changes the output of the decoder. For unfiltered inputs that still contain the carrier, detection of activity is reliable and immediate, but the active phase is extended by one period of the carrier frequency (which is considered acceptable).
Diffstat (limited to 'type_decoder.c')
0 files changed, 0 insertions, 0 deletions