Change in libosmocore[master]: gsm_08_59, gsm_44_004: add struct for l1 information

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Tue Feb 16 16:35:06 UTC 2021


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


Change subject: gsm_08_59, gsm_44_004: add struct for l1 information
......................................................................

gsm_08_59, gsm_44_004: add struct for l1 information

Libosmocore currently does not offer any structs to encode and decode
the l1 information on RSL level and the sacch l1 header on the air
interface level. Both structs are identical but the endianess of the
first octet is reversed.

Change-Id: I23c1890b89d5a0574eb05dace9f64cc59d6f6df7
---
M include/Makefile.am
M include/osmocom/gsm/protocol/gsm_08_58.h
A include/osmocom/gsm/protocol/gsm_44_004.h
3 files changed, 36 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/32/22932/1

diff --git a/include/Makefile.am b/include/Makefile.am
index 10f0221..8dae3d9 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -144,6 +144,7 @@
 		       osmocom/gsm/protocol/gsm_23_003.h \
 		       osmocom/gsm/protocol/gsm_23_041.h \
 		       osmocom/gsm/protocol/gsm_29_118.h \
+		       osmocom/gsm/protocol/gsm_44_004.h \
                        osmocom/gsm/protocol/gsm_44_318.h \
                        osmocom/gsm/protocol/gsm_48_049.h \
                        osmocom/gsm/protocol/gsm_48_071.h \
diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h
index e9c14e6..6f974ce 100644
--- a/include/osmocom/gsm/protocol/gsm_08_58.h
+++ b/include/osmocom/gsm/protocol/gsm_08_58.h
@@ -945,4 +945,20 @@
 	struct ipac_preproc_ho_ctl_param ho_ctl_param;
 };
 
+struct rsl_l1_info {
+#if OSMO_IS_BIG_ENDIAN
+		uint8_t	ms_pwr:5,
+			fpc_epc:1,
+			srr_sro:1,
+			reserved:1;
+		uint8_t ta;
+#elif OSMO_IS_LITTLE_ENDIAN
+		uint8_t reserved:1,
+			srr_sro:1,
+			fpc_epc:1,
+			ms_pwr:5;
+		uint8_t ta;
+#endif
+} __attribute__ ((packed));
+
 /*! @} */
diff --git a/include/osmocom/gsm/protocol/gsm_44_004.h b/include/osmocom/gsm/protocol/gsm_44_004.h
new file mode 100644
index 0000000..635d924
--- /dev/null
+++ b/include/osmocom/gsm/protocol/gsm_44_004.h
@@ -0,0 +1,19 @@
+#pragma once
+
+/* TS 44.004 Section 7.1 */
+
+struct gsm_sacch_l1_hdr {
+#if OSMO_IS_BIG_ENDIAN
+		uint8_t reserved:1,
+			srr_sro:1,
+			fpc_epc:1,
+			ms_pwr:5;
+		uint8_t ta;
+#elif OSMO_IS_LITTLE_ENDIAN
+		uint8_t	ms_pwr:5,
+			fpc_epc:1,
+			srr_sro:1,
+			reserved:1;
+		uint8_t ta;	
+#endif
+} __attribute__ ((packed));

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I23c1890b89d5a0574eb05dace9f64cc59d6f6df7
Gerrit-Change-Number: 22932
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210216/c2f71460/attachment.htm>


More information about the gerrit-log mailing list