aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/gsm/gsm_utils.h')
-rw-r--r--include/osmocom/gsm/gsm_utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index 6ff44598..fe5903db 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -161,7 +161,8 @@ static inline int rach_max_trans_raw2val(int raw) {
#define ARFCN_UPLINK 0x4000
#define ARFCN_FLAG_MASK 0xf000 /* Reserve the upper 5 bits for flags */
-enum gsm_band gsm_arfcn2band(uint16_t arfcn);
+int gsm_arfcn2band_rc(uint16_t arfcn, enum gsm_band *band);
+enum gsm_band gsm_arfcn2band(uint16_t arfcn) OSMO_DEPRECATED("Use gsm_arfcn2band_rc() instead");
/* Convert an ARFCN to the frequency in MHz * 10 */
uint16_t gsm_arfcn2freq10(uint16_t arfcn, int uplink);
@@ -228,6 +229,8 @@ enum gsm_chan_t {
};
extern const struct value_string gsm_chan_t_names[];
+static inline const char *gsm_chan_t_name(enum gsm48_chan_mode val)
+{ return get_value_string(gsm_chan_t_names, val); }
/* Deprectated functions */
/* Limit encoding and decoding to use no more than this amount of buffer bytes */