fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/34428?usp=email )
Change subject: gsm_12_21.h: add NM_IPAC_MASK_* macros for convenience ...................................................................... gsm_12_21.h: add NM_IPAC_MASK_* macros for convenience Change-Id: Ic05d3fef8fc70970568c5c0966f9e77251b7f46d Related: OS#4505 --- M include/osmocom/gsm/protocol/gsm_12_21.h 1 file changed, 58 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/34428/1 diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h index ff10b07..db7638a 100644 --- a/include/osmocom/gsm/protocol/gsm_12_21.h +++ b/include/osmocom/gsm/protocol/gsm_12_21.h @@ -810,6 +810,14 @@ #define NM_IPAC_F_CHANT_TCHH_PDCHH (1 << 10) #define NM_IPAC_F_CHANT_TCHF_TCHH (1 << 11) +/*! NM_IPAC_F_CHANT_* mask for NM_IPAC_EIE_CHAN_TYPES (common) */ +#define NM_IPAC_MASK_CHANT_COMMON \ + (NM_IPAC_F_CHANT_TCHF | \ + NM_IPAC_F_CHANT_TCHH | \ + NM_IPAC_F_CHANT_SDCCH8 | \ + NM_IPAC_F_CHANT_BCCH | \ + NM_IPAC_F_CHANT_BCCH_SDCCH4) + /*! ip.access support flags for NM_IPAC_EIE_CHAN_MODES (speech codecs) */ #define NM_IPAC_F_CHANM_SPEECH_FS (1 << 0) #define NM_IPAC_F_CHANM_SPEECH_EFS (1 << 1) @@ -829,6 +837,28 @@ #define NM_IPAC_F_CHANM_CSD_T_9k6 (1 << 21) #define NM_IPAC_F_CHANM_CSD_T_14k4 (1 << 22) +/*! NM_IPAC_F_CHANM_SPEECH_* mask for NM_IPAC_EIE_CHAN_MODES */ +#define NM_IPAC_MASK_CHANM_SPEECH \ + (NM_IPAC_F_CHANM_SPEECH_FS | \ + NM_IPAC_F_CHANM_SPEECH_EFS | \ + NM_IPAC_F_CHANM_SPEECH_AFS | \ + NM_IPAC_F_CHANM_SPEECH_HS | \ + NM_IPAC_F_CHANM_SPEECH_AHS) +/*! NM_IPAC_F_CHANM_CSD_NT_* mask for NM_IPAC_EIE_CHAN_MODES */ +#define NM_IPAC_MASK_CHANM_CSD_NT \ + (NM_IPAC_F_CHANM_CSD_NT_4k8 | \ + NM_IPAC_F_CHANM_CSD_NT_9k6 | \ + NM_IPAC_F_CHANM_CSD_NT_14k4) +/*! NM_IPAC_F_CHANM_CSD_T_* mask for NM_IPAC_EIE_CHAN_MODES */ +#define NM_IPAC_MASK_CHANM_CSD_T \ + (NM_IPAC_F_CHANM_CSD_T_1200_75 | \ + NM_IPAC_F_CHANM_CSD_T_600 | \ + NM_IPAC_F_CHANM_CSD_T_1k2 | \ + NM_IPAC_F_CHANM_CSD_T_2k4 | \ + NM_IPAC_F_CHANM_CSD_T_4k8 | \ + NM_IPAC_F_CHANM_CSD_T_9k6 | \ + NM_IPAC_F_CHANM_CSD_T_14k4) + /*! ip.access support flags for NM_IPAC_EIE_GPRS_CODING (GPRS) */ #define NM_IPAC_F_GPRS_CODING_CS1 (1 << 0) #define NM_IPAC_F_GPRS_CODING_CS2 (1 << 1) @@ -845,6 +875,24 @@ #define NM_IPAC_F_GPRS_CODING_MCS8 (1 << 15) #define NM_IPAC_F_GPRS_CODING_MCS9 (1 << 7) +/*! NM_IPAC_F_GPRS_CODING_CS[1-4] mask for NM_IPAC_EIE_GPRS_CODING */ +#define NM_IPAC_MASK_CHANM_CS \ + (NM_IPAC_F_GPRS_CODING_CS1 | \ + NM_IPAC_F_GPRS_CODING_CS2 | \ + NM_IPAC_F_GPRS_CODING_CS3 | \ + NM_IPAC_F_GPRS_CODING_CS4) +/*! NM_IPAC_F_GPRS_CODING_MCS[1-9] mask for NM_IPAC_EIE_GPRS_CODING */ +#define NM_IPAC_MASK_CHANM_MCS \ + (NM_IPAC_F_GPRS_CODING_MCS1 | \ + NM_IPAC_F_GPRS_CODING_MCS2 | \ + NM_IPAC_F_GPRS_CODING_MCS3 | \ + NM_IPAC_F_GPRS_CODING_MCS4 | \ + NM_IPAC_F_GPRS_CODING_MCS5 | \ + NM_IPAC_F_GPRS_CODING_MCS6 | \ + NM_IPAC_F_GPRS_CODING_MCS7 | \ + NM_IPAC_F_GPRS_CODING_MCS8 | \ + NM_IPAC_F_GPRS_CODING_MCS9) + /*! ip.access support flags for NM_IPAC_EIE_RTP_FEATURES */ #define NM_IPAC_F_RTP_FEAT_COMPR_CONTROL (1 << 0) /* RTP Compression Control */ #define NM_IPAC_F_RTP_FEAT_IR_8k (1 << 1) /* IR 8 kbit/s */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/34428?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ic05d3fef8fc70970568c5c0966f9e77251b7f46d Gerrit-Change-Number: 34428 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange