diff options
Diffstat (limited to 'src/utils.hpp')
-rw-r--r-- | src/utils.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.hpp b/src/utils.hpp index 890bd50..3ff9f13 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -82,3 +82,6 @@ int sprintfMJD(char *dst, int mjd); // as the RDS "Programme Item Number (PIN)" feature (EN 62106). std::string pnum_to_str(uint16_t Programme_Number); +// Convert and absolute 16-bit int value to dB. If value is zero, returns +// -90dB +int absolute_to_dB(int16_t value); |