katyo / uctl-rs

Generic control library for low-end hardware
2 stars 0 forks source link

Compile-time lookup tables generation #2

Open katyo opened 4 years ago

katyo commented 4 years ago

Support for single-dimension lookup tables with uniform input and linear interpolation of output.

Possible solution: Introducing an attribute macro which can be applied to a function to turn it into lookup table. This macro should support (at most) two properties: argument range and argument step.