aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm_utils.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2011-06-26 11:41:48 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-06-26 11:41:48 +0200
commit2a68c7c8cd2eca65c58c0898d0e1716e9d4c3ecd (patch)
tree4f559b3c8740fede99d36e238e29bf83dd4cf2d4 /include/osmocom/gsm/gsm_utils.h
parent620f7ab35034f78f894319e027a151568c331eea (diff)
gsm/utils: Adding conversion of "mobile power class" to dBm
Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include/osmocom/gsm/gsm_utils.h')
-rw-r--r--include/osmocom/gsm/gsm_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index a0ef3c4f..405dfe32 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -59,6 +59,8 @@ enum gsm_band gsm_band_parse(const char *mhz);
int gsm_7bit_decode(char *decoded, const uint8_t *user_data, uint8_t length);
int gsm_7bit_encode(uint8_t *result, const char *data);
+unsigned int ms_class_gmsk_dbm(enum gsm_band band, int class);
+
int ms_pwr_ctl_lvl(enum gsm_band band, unsigned int dbm);
int ms_pwr_dbm(enum gsm_band band, uint8_t lvl);