summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm_utils.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-12-11 23:44:41 +0100
committerSylvain Munaut <tnt@246tNt.com>2012-12-11 23:44:41 +0100
commit5572031749ffa4cdfa15e9c73b8897e39c3ddb0b (patch)
tree906f676be6bb4f8e85c83425e5341de92a4e1f31 /include/osmocom/gsm/gsm_utils.h
parent6e264ae3cdd5962182b66a07151d4bcf2f104e40 (diff)
gsm: Add method to find ARFCN based on frequency
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index 6d316727..17678981 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -101,6 +101,9 @@ enum gsm_band gsm_arfcn2band(uint16_t arfcn);
/* Convert an ARFCN to the frequency in MHz * 10 */
uint16_t gsm_arfcn2freq10(uint16_t arfcn, int uplink);
+/* Convert a Frequency in MHz * 10 to ARFCN */
+uint16_t gsm_freq102arfcn(uint16_t freq10, int uplink);
+
/* Convert from frame number to GSM time */
void gsm_fn2gsmtime(struct gsm_time *time, uint32_t fn);