diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-06-01 12:11:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-06-21 20:20:02 +0000 |
commit | da38203418d80b85ddd793bdfc829b2ee2d3266a (patch) | |
tree | 8d2b57eddf1bf502eb26ca885708b9b726ad0e21 /include | |
parent | 890f1f5a2cf7fbf4c12abc049ba765a39dd9cf9c (diff) |
gsm0808: add speech codec type constants
The codec type to be set in member type in struct gsm0808_speech_codec
has its own coding scheme to reference the used codec types. This patch
declares an enum with valid speech codec types.
Change-Id: Icaa768071d4364e671bc7e6d48b82d1f07f93f93
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gsm/protocol/gsm_08_08.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 5916823c..7656c388 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -397,9 +397,27 @@ enum gsm0808_permitted_speech { GSM0808_PERM_FR1 = 0x01, /*!< GSM FR */ GSM0808_PERM_FR2 = 0x11, /*!< GSM EFR */ GSM0808_PERM_FR3 = 0x21, /*!< FR AMR */ + GSM0808_PERM_FR4 = 0x41, /*!< OFR AMR-WB */ + GSM0808_PERM_FR5 = 0x42, /*!< FR AMR-WB */ GSM0808_PERM_HR1 = GSM0808_PERM_FR1 | 0x4, /*!< GSM HR */ GSM0808_PERM_HR2 = GSM0808_PERM_FR2 | 0x4, /*!< (deprecated) */ GSM0808_PERM_HR3 = GSM0808_PERM_FR3 | 0x4, /*!< HR AMR */ + GSM0808_PERM_HR4 = 0x46, /*!< OHR AMR-WB */ + GSM0808_PERM_HR6 = 0x45, /*!< OHR AMR */ +}; + +/*! \brief 3GPP TS 48.008, 3.2.2.103 Speech Codec Type */ +enum gsm0808_speech_codec_type { + GSM0808_SCT_FR1 = 0x0, /*!< GSM FR */ + GSM0808_SCT_FR2 = 0x2, /*!< GSM EFR */ + GSM0808_SCT_FR3 = 0x3, /*!< FR AMR */ + GSM0808_SCT_FR4 = 0xc, /*!< OFR AMR-WB */ + GSM0808_SCT_FR5 = 0x9, /*!< FR AMR-WB */ + GSM0808_SCT_HR1 = 0x1, /*!< GSM_HR */ + GSM0808_SCT_HR3 = 0x4, /*!< HR_AMR */ + GSM0808_SCT_HR4 = 0xd, /*!< OHR AMR-WB */ + GSM0808_SCT_HR6 = 0xb, /*!< OHR AMR */ + GSM0808_SCT_CSD = 0xfd, /*!< CSData (see also TS 26.103) */ }; /* GSM 08.08 3.2.2.44 Chosen Encryption Algorithm */ |