diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-12 15:37:54 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-12 15:37:54 +0100 |
commit | 4bb4738d217596582a689169d12fdd6eb1ed8785 (patch) | |
tree | bc7ebeffe4672ddfdfb7f0a84c2c77188d721c0e /openbsc/include | |
parent | 854b9b33afc1b9719ef91624fbb1f4861bfdc1f1 (diff) |
utility functions to convert RXLEV into dBm and vice versa
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gsm_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_utils.h b/openbsc/include/openbsc/gsm_utils.h index 1bd1bc55a..5809221a3 100644 --- a/openbsc/include/openbsc/gsm_utils.h +++ b/openbsc/include/openbsc/gsm_utils.h @@ -33,5 +33,9 @@ int gsm_7bit_encode(u_int8_t *result, const char *data); int ms_pwr_ctl_lvl(enum gsm_band band, unsigned int dbm); int ms_pwr_dbm(enum gsm_band band, u_int8_t lvl); +/* According to TS 08.05 Chapter 8.1.4 */ +int rxlev2dbm(u_int8_t rxlev); +u_int8_t dbm2rxlev(int dbm); + void generate_backtrace(); #endif |