aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-07-18 23:33:48 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2016-07-23 15:25:18 +0200
commit15b96ff70ca0c13bc5cbe6c79d85854fee1568b1 (patch)
treec9e4aff369a3f6a90cc3a0ce44730b7b8d7b7c0a
parent505adee93bad5c12e7435d09a191d9d6221d09b3 (diff)
gsm_08_58.h: introduce RSL_CHAN_NR_1 constant
Using the RSL_CHAN_* constants, we sometimes need to add 1 to the chan bits to indicate e.g. the second TCH/H channel. RSL_CHAN_NR_1 marks this lowest channel bit that needs to be added. The name is analogous to RSL_CHAN_NR_MASK. Change-Id: Iea06432039d1cd23cc6b5acec308bb829b596d47
-rw-r--r--include/osmocom/gsm/protocol/gsm_08_58.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h
index 56cf4dd9..18bee823 100644
--- a/include/osmocom/gsm/protocol/gsm_08_58.h
+++ b/include/osmocom/gsm/protocol/gsm_08_58.h
@@ -297,6 +297,7 @@ enum abis_rsl_ie {
/* Chapter 9.3.1 */
#define RSL_CHAN_NR_MASK 0xf8
+#define RSL_CHAN_NR_1 0x08 /*< bit to add for 2nd,... lchan */
#define RSL_CHAN_Bm_ACCHs 0x08
#define RSL_CHAN_Lm_ACCHs 0x10 /* .. 0x18 */
#define RSL_CHAN_SDCCH4_ACCH 0x20 /* .. 0x38 */