From 15b96ff70ca0c13bc5cbe6c79d85854fee1568b1 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 18 Jul 2016 23:33:48 +0200 Subject: 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 --- include/osmocom/gsm/protocol/gsm_08_58.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom') 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 */ -- cgit v1.2.3