falconia has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/32197 )


Change subject: include/osmocom/gsm/protocol: add gsm_06_31.h
......................................................................

include/osmocom/gsm/protocol: add gsm_06_31.h

GSM 06.31 spec section 6.1.1 (also duplicated in GSM 06.81, same
section) defines numeric values 0, 1 and 2 as denoting three
possible outcomes of the SID classification procedure by which
an incoming FR/EFR codec frame is classified as speech or valid
SID or invalid SID.  These exact numeric values for SID
classification appear in at least one public external interface
(bits C13 & C14 in TRAU-UL frames, used on T1/E1 Abis and in
TS 28.062 in-band TFO) and at least one reverse-engineered legacy
vendor interface (bits [4:3] of a_dd[0] status word in GSM MS DSPs
from TI), hence it is useful to have them defined in a formal
GSM protocol header file.

Change-Id: If004b668778d3d9cf6cd998b3af2dbfa83691529
---
M include/osmocom/gsm/protocol/Makefile.am
A include/osmocom/gsm/protocol/gsm_06_31.h
2 files changed, 33 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/97/32197/1

diff --git a/include/osmocom/gsm/protocol/Makefile.am 
b/include/osmocom/gsm/protocol/Makefile.am
index 5c8e2a6..5637047 100644
--- a/include/osmocom/gsm/protocol/Makefile.am
+++ b/include/osmocom/gsm/protocol/Makefile.am
@@ -8,6 +8,7 @@
        gsm_04_12.h \
        gsm_04_14.h \
        gsm_04_80.h \
+       gsm_06_31.h \
        gsm_08_08.h \
        gsm_08_58.h \
        gsm_09_02.h \
diff --git a/include/osmocom/gsm/protocol/gsm_06_31.h 
b/include/osmocom/gsm/protocol/gsm_06_31.h
new file mode 100644
index 0000000..86e1c21
--- /dev/null
+++ b/include/osmocom/gsm/protocol/gsm_06_31.h
@@ -0,0 +1,11 @@
+/*! \file gsm_06_31.h
+ * GSM TS 06.31 definitions, also duplicated in GSM TS 06.81. */
+
+#pragma once
+
+/* Section 6.1.1 */
+enum gsm631_sid_class {
+       GSM631_SID_CLASS_SPEECH  = 0,
+       GSM631_SID_CLASS_INVALID = 1,
+       GSM631_SID_CLASS_VALID   = 2,
+};

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/32197
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: If004b668778d3d9cf6cd998b3af2dbfa83691529
Gerrit-Change-Number: 32197
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <[email protected]>
Gerrit-MessageType: newchange

Reply via email to