diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2012-12-11 23:44:41 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2012-12-11 23:44:41 +0100 |
commit | 5572031749ffa4cdfa15e9c73b8897e39c3ddb0b (patch) | |
tree | 906f676be6bb4f8e85c83425e5341de92a4e1f31 /include | |
parent | 6e264ae3cdd5962182b66a07151d4bcf2f104e40 (diff) |
gsm: Add method to find ARFCN based on frequency
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gsm/gsm_utils.h | 3 |
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); |