|
PER Firmware
|
Utility header to linearly map values from one range to another. More...
Go to the source code of this file.
Macros | |
| #define | RESCALE(input, input_min, input_max, output_min, output_max) |
Utility header to linearly map values from one range to another.
Typesafe, supporting ints and floats. Integer promotions also cover int8_t, uint8_t, int16_t, uint16_t
| #define RESCALE | ( | input, | |
| input_min, | |||
| input_max, | |||
| output_min, | |||
| output_max ) |