Bug 1341 - Framework for signal conversion
Summary: Framework for signal conversion
Status: CONFIRMED
Alias: None
Product: libsigrokdecode
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.5.1
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-12 21:01 CET by Sven
Modified: 2018-12-12 21:01 CET (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2018-12-12 21:01:17 CET
In Bug 1340, I described an improved PWM filter. However, I see a much more general approach for signal conversions:

Start a framework for signal conversion and filtering. Sigrok could support the following conversions/filters:
- analog to analog (e.g., filtering like averaging, adjusting the sample rate)
- analog to digital (e.g., schmitt-triggers)
- digital to analog (e.g., pwm to analog)
- digital to digital (e.g., min/max/majority filters, adjusting the sample rate)

A majority filter for a digital signal would take a window of a configurable size and output the digital value that is in the majority. This would correspond to oversampling as performed by UART controllers in some STM32 microcontrollers.

Another digital filter would be signal compression: simply remove samples that are identical to the previous sample. I am not sure, whether sigrok decoders can handle that.