laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-abis/+/30375 )
Change subject: trau_sync: Add the V.110 sync pattern
......................................................................
trau_sync: Add the V.110 sync pattern
ITU-T V.110 is used in GSM CSD (Circuit Switched Data). The frames
are rather similar to TRAU frames, so we can use the trau_sync code
for it. This commit adds the related definition.
Related: OS#4395
Change-Id: I3aab5c3f494f6ea2b11f3cf69fb09bc77ea941d8
---
M include/osmocom/trau/trau_sync.h
M src/trau/trau_sync.c
2 files changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/75/30375/1
diff --git a/include/osmocom/trau/trau_sync.h b/include/osmocom/trau/trau_sync.h
index bd99586..ffda02a 100644
--- a/include/osmocom/trau/trau_sync.h
+++ b/include/osmocom/trau/trau_sync.h
@@ -8,6 +8,7 @@
OSMO_TRAU_SYNCP_8_AMR_LOW,
OSMO_TRAU_SYNCP_8_AMR_6K7,
OSMO_TRAU_SYNCP_8_AMR_7K4,
+ OSMO_TRAU_SYNCP_V110,
};
typedef void (*frame_out_cb_t)(void *user_data, const ubit_t *bits, unsigned int
num_bits);
diff --git a/src/trau/trau_sync.c b/src/trau/trau_sync.c
index dba9cd1..7e7374d 100644
--- a/src/trau/trau_sync.c
+++ b/src/trau/trau_sync.c
@@ -145,6 +145,19 @@
},
.byte_len = 20,
},
+ [OSMO_TRAU_SYNCP_V110] = {
+ /* See Table 2 of ITU-T V.110 */
+ .name = "V.110",
+ .byte_pattern = {
+ 0x00, 0x80, 0x80, 0x80, 0x80,
+ 0x80, 0x80, 0x80, 0x80, 0x80,
+ },
+ .byte_mask = {
+ 0xff, 0x80, 0x80, 0x80, 0x80,
+ 0x80, 0x80, 0x80, 0x80, 0x80,
+ },
+ .byte_len = 10,
+ },
};
#if 0
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/30375
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I3aab5c3f494f6ea2b11f3cf69fb09bc77ea941d8
Gerrit-Change-Number: 30375
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange