summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-11-13 17:51:37 +0100
committerSylvain Munaut <tnt@246tNt.com>2010-11-13 17:51:37 +0100
commit2a471ee25d34529fc6449a870de244f3a271100c (patch)
tree0c0cea42fa0e234d7184c43ec3ce6fb2797c5657 /include
parentdab0287b3fcb67d2690c3d6c8e7ace16b230e953 (diff)
gsm_utils: Define 4 upper bits as "flags" and mask them out in utility functions
This way those function don't care about the flags they don't know about Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include')
-rw-r--r--include/osmocore/gsm_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocore/gsm_utils.h b/include/osmocore/gsm_utils.h
index 7dc2388b..0aadd2e4 100644
--- a/include/osmocore/gsm_utils.h
+++ b/include/osmocore/gsm_utils.h
@@ -87,6 +87,7 @@ static inline int rach_max_trans_raw2val(int raw) {
#define ARFCN_PCS 0x8000
#define ARFCN_UPLINK 0x4000
+#define ARFCN_FLAG_MASK 0xf000 /* Reserve the upper 5 bits for flags */
enum gsm_band gsm_arfcn2band(uint16_t arfcn);