Change in ...osmo-trx[master]: WIP: Support TRXD v1

pespin gerrit-no-reply at lists.osmocom.org
Tue Jul 2 13:10:29 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/14657


Change subject: WIP: Support TRXD v1
......................................................................

WIP: Support TRXD v1

Change-Id: I53db2678458a7377c87875b58b58b76a1b900517
---
M Transceiver52M/proto_trxd.h
1 file changed, 33 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/57/14657/1

diff --git a/Transceiver52M/proto_trxd.h b/Transceiver52M/proto_trxd.h
index ef34666..de1fe49 100644
--- a/Transceiver52M/proto_trxd.h
+++ b/Transceiver52M/proto_trxd.h
@@ -50,3 +50,36 @@
         struct trxd_hdr_v0_specific v0;
         uint8_t soft_bits[0];
 } __attribute__ ((packed));
+
+
+
+#define TRXD_MODULATION_GMSK(ts_set) (0b0000 | (ts_set & 0b0011))
+#define TRXD_MODULATION_8PSK(ts_set) (0b0100 | (ts_set & 0b0001))
+#define TRXD_MODULATION_AQPSK(ts_set) (0b0110 | (ts_set & 0b0001))
+#define TRXD_MODULATION_16QAM(ts_set) (0b1000 | (ts_set & 0b0001))
+#define TRXD_MODULATION_32QAM(ts_set) (0b1010 | (ts_set & 0b0001))
+
+
+struct trxd_hdr_v1_specific {
+        uint8_t rssi;
+        uint16_t toa;  /* big endian */
+        union {
+                uint8_t mts;
+#if OSMO_IS_LITTLE_ENDIAN
+                uint8_t tsc:3,
+                        modulation:4,
+                        idle:1;
+#elif OSMO_IS_BIG_ENDIAN
+                uint8_t idle:1,
+                        modulation:4,
+                        tsc:3;
+#endif
+        };
+        uint16_t ci;  /* big endian */
+} __attribute__ ((packed));
+
+struct trxd_hdr_v1 {
+        struct trxd_hdr_common common;
+        struct trxd_hdr_v1_specific v1;
+        uint8_t soft_bits[0];
+} __attribute__ ((packed));

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

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I53db2678458a7377c87875b58b58b76a1b900517
Gerrit-Change-Number: 14657
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190702/49a8e2a2/attachment.html>


More information about the gerrit-log mailing list