From 2a68c7c8cd2eca65c58c0898d0e1716e9d4c3ecd Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 26 Jun 2011 11:41:48 +0200 Subject: gsm/utils: Adding conversion of "mobile power class" to dBm Written-by: Andreas Eversberg Signed-off-by: Sylvain Munaut --- include/osmocom/gsm/gsm_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3