summaryrefslogtreecommitdiffstats
path: root/sysinfo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-14 18:28:55 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-14 18:28:55 +0200
commit615bd54fbe1bdd8fce796f3212572305fad3aeb4 (patch)
treee7e9573edc436240abb3a2f4b9dee3259dc00e23 /sysinfo
parent56db5fd00e991d44de63c61f0b916f4f85962ce8 (diff)
Move general type definitions to Osmocom_Types.ttcn
Diffstat (limited to 'sysinfo')
-rw-r--r--sysinfo/GSM_SystemInformation.ttcn15
-rw-r--r--sysinfo/Osmocom_Types.ttcn15
2 files changed, 16 insertions, 14 deletions
diff --git a/sysinfo/GSM_SystemInformation.ttcn b/sysinfo/GSM_SystemInformation.ttcn
index 01565c1..552463f 100644
--- a/sysinfo/GSM_SystemInformation.ttcn
+++ b/sysinfo/GSM_SystemInformation.ttcn
@@ -6,20 +6,7 @@
module GSM_SystemInformation {
import from General_Types all;
-
- type integer uint32_t (0..4294967295) with { variant "unsigned 32 bit" };
- type integer uint16_t (0..65535) with { variant "unsigned 16 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 uint8_t (0..255) with { variant "unsigned 8 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" };
+ import from Osmocom_Types all;
type record L2PseudoLength {
uint6_t l2_plen,
diff --git a/sysinfo/Osmocom_Types.ttcn b/sysinfo/Osmocom_Types.ttcn
new file mode 100644
index 0000000..9368626
--- /dev/null
+++ b/sysinfo/Osmocom_Types.ttcn
@@ -0,0 +1,15 @@
+module Osmocom_Types {
+ type integer uint32_t (0..4294967295) with { variant "unsigned 32 bit" };
+ type integer uint16_t (0..65535) with { variant "unsigned 16 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 uint8_t (0..255) with { variant "unsigned 8 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" };
+} with { encode "RAW"; variant "FIELDORDER(msb)" }