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
diff --git a/src/trau/trau_sync.c b/src/trau/trau_sync.c
index dba9cd1..b36e7c1 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 = "V110",
+ .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