summaryrefslogtreecommitdiffstats
path: root/library/Osmocom_Types.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-19 19:57:26 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-19 19:57:26 +0200
commit3b8bdd63580a10b74c7556bd8fb6e2629e6b5734 (patch)
tree3938ad8f3c0887b654b4a5b856dcfe9fe328ef56 /library/Osmocom_Types.ttcn
parent599faa1d1882cc35114c88727714e51a6a1bad95 (diff)
Introduce 'library' directory for modules shared by multiple test cases
Diffstat (limited to 'library/Osmocom_Types.ttcn')
-rw-r--r--library/Osmocom_Types.ttcn29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/Osmocom_Types.ttcn b/library/Osmocom_Types.ttcn
new file mode 100644
index 0000000..0c26f02
--- /dev/null
+++ b/library/Osmocom_Types.ttcn
@@ -0,0 +1,29 @@
+module Osmocom_Types {
+ type integer uint8_t (0..255) with { variant "unsigned 8 bit" };
+ type integer uint16_t (0..65535) with { variant "unsigned 16 bit" };
+ type integer uint32_t (0..4294967295) with { variant "unsigned 32 bit" };
+
+ type integer int8_t (-128..127) with { variant "8 bit" };
+ type integer int16_t (-32768..32767) with { variant "16 bit" };
+
+ type integer uint1_t (0..1) with { variant "unsigned 1 bit" };
+ type integer uint2_t (0..3) with { variant "unsigned 2 bit" };
+ type integer uint3_t (0..7) with { variant "unsigned 3 bit" };
+ type integer uint4_t (0..15) with { variant "unsigned 4 bit" };
+ type integer uint5_t (0..31) with { variant "unsigned 5 bit" };
+ type integer uint6_t (0..63) with { variant "unsigned 6 bit" };
+ type integer uint7_t (0..127) with { variant "unsigned 7 bit" };
+ type integer uint9_t (0..511) with { variant "unsigned 9 bit" };
+ type integer uint10_t (0..1023) with { variant "unsigned 10 bit" };
+ type integer uint11_t (0..2047) with { variant "unsigned 11 bit" };
+ type integer uint12_t (0..4095) with { variant "unsigned 12 bit" };
+ type integer uint13_t (0..8191) with { variant "unsigned 13 bit" };
+ type integer uint14_t (0..16383) with { variant "unsigned 14 bit" };
+ type integer uint15_t (0..32767) with { variant "unsigned 15 bit" };
+
+ type record Arfcn {
+ boolean pcs,
+ uint15_t arfcn
+ } with { variant "" };
+
+} with { encode "RAW"; variant "FIELDORDER(msb)" }