blob: 0472005a98fbb035a4b4b540d2bc0ca5de0f8448 [file] [log] [blame]
Harald Welteee091892015-09-10 10:22:03 +02001/*
2 * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3 * From ASN.1 module "RANAP-IEs"
4 * found in "../../asn1/ranap/RANAP-IEs.asn"
5 */
6
Neels Hofmeyrf1f2d7c2016-01-05 12:00:06 +01007#include <osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h>
Harald Welteee091892015-09-10 10:22:03 +02008
9static int
10memb_horizontalUncertaintySpeed_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
11 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
12 long value;
13
14 if(!sptr) {
15 _ASN_CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
19 }
20
21 value = *(const long *)sptr;
22
23 if((value >= 0l && value <= 255l)) {
24 /* Constraint check succeeded */
25 return 0;
26 } else {
27 _ASN_CTFAIL(app_key, td, sptr,
28 "%s: constraint failed (%s:%d)",
29 td->name, __FILE__, __LINE__);
30 return -1;
31 }
32}
33
34static int
35memb_verticalUncertaintySpeed_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
36 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
37 long value;
38
39 if(!sptr) {
40 _ASN_CTFAIL(app_key, td, sptr,
41 "%s: value not given (%s:%d)",
42 td->name, __FILE__, __LINE__);
43 return -1;
44 }
45
46 value = *(const long *)sptr;
47
48 if((value >= 0l && value <= 255l)) {
49 /* Constraint check succeeded */
50 return 0;
51 } else {
52 _ASN_CTFAIL(app_key, td, sptr,
53 "%s: constraint failed (%s:%d)",
54 td->name, __FILE__, __LINE__);
55 return -1;
56 }
57}
58
59static asn_per_constraints_t asn_PER_memb_horizontalUncertaintySpeed_constr_4 GCC_NOTUSED = {
60 { APC_CONSTRAINED, 8, 8, 0l, 255l } /* (0..255) */,
61 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
62 0, 0 /* No PER value map */
63};
64static asn_per_constraints_t asn_PER_memb_verticalUncertaintySpeed_constr_5 GCC_NOTUSED = {
65 { APC_CONSTRAINED, 8, 8, 0l, 255l } /* (0..255) */,
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 0, 0 /* No PER value map */
68};
69static asn_TYPE_member_t asn_MBR_RANAP_HorizontalWithVerticalVelocityAndUncertainty_1[] = {
70 { ATF_NOFLAGS, 0, offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, horizontalSpeedAndBearing),
71 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
72 -1, /* IMPLICIT tag at current level */
73 &asn_DEF_RANAP_HorizontalSpeedAndBearing,
74 0, /* Defer constraints checking to the member type */
75 0, /* No PER visible constraints */
76 0,
77 "horizontalSpeedAndBearing"
78 },
79 { ATF_NOFLAGS, 0, offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, veritcalVelocity),
80 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
81 -1, /* IMPLICIT tag at current level */
82 &asn_DEF_RANAP_VerticalVelocity,
83 0, /* Defer constraints checking to the member type */
84 0, /* No PER visible constraints */
85 0,
86 "veritcalVelocity"
87 },
88 { ATF_NOFLAGS, 0, offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, horizontalUncertaintySpeed),
89 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
90 -1, /* IMPLICIT tag at current level */
91 &asn_DEF_NativeInteger,
92 memb_horizontalUncertaintySpeed_constraint_1,
93 &asn_PER_memb_horizontalUncertaintySpeed_constr_4,
94 0,
95 "horizontalUncertaintySpeed"
96 },
97 { ATF_NOFLAGS, 0, offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, verticalUncertaintySpeed),
98 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
99 -1, /* IMPLICIT tag at current level */
100 &asn_DEF_NativeInteger,
101 memb_verticalUncertaintySpeed_constraint_1,
102 &asn_PER_memb_verticalUncertaintySpeed_constr_5,
103 0,
104 "verticalUncertaintySpeed"
105 },
106 { ATF_POINTER, 1, offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, iE_Extensions),
107 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
108 -1, /* IMPLICIT tag at current level */
109 &asn_DEF_RANAP_IE_Extensions,
110 0, /* Defer constraints checking to the member type */
111 0, /* No PER visible constraints */
112 0,
113 "iE-Extensions"
114 },
115};
116static const int asn_MAP_RANAP_HorizontalWithVerticalVelocityAndUncertainty_oms_1[] = { 4 };
117static const ber_tlv_tag_t asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1[] = {
118 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
119};
120static const asn_TYPE_tag2member_t asn_MAP_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1[] = {
121 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* horizontalSpeedAndBearing */
122 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* veritcalVelocity */
123 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalUncertaintySpeed */
124 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verticalUncertaintySpeed */
125 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
126};
127static asn_SEQUENCE_specifics_t asn_SPC_RANAP_HorizontalWithVerticalVelocityAndUncertainty_specs_1 = {
128 sizeof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty),
129 offsetof(struct RANAP_HorizontalWithVerticalVelocityAndUncertainty, _asn_ctx),
130 asn_MAP_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tag2el_1,
131 5, /* Count of tags in the map */
132 asn_MAP_RANAP_HorizontalWithVerticalVelocityAndUncertainty_oms_1, /* Optional members */
133 1, 0, /* Root/Additions */
134 4, /* Start extensions */
135 6 /* Stop extensions */
136};
137asn_TYPE_descriptor_t asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty = {
138 "RANAP_HorizontalWithVerticalVelocityAndUncertainty",
139 "RANAP_HorizontalWithVerticalVelocityAndUncertainty",
140 SEQUENCE_free,
141 SEQUENCE_print,
142 SEQUENCE_constraint,
143 SEQUENCE_decode_ber,
144 SEQUENCE_encode_der,
145 SEQUENCE_decode_xer,
146 SEQUENCE_encode_xer,
147 SEQUENCE_decode_uper,
148 SEQUENCE_encode_uper,
149 SEQUENCE_decode_aper,
150 SEQUENCE_encode_aper,
151 0, /* Use generic outmost tag fetcher */
152 asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1,
153 sizeof(asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1)
154 /sizeof(asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */
155 asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1, /* Same as above */
156 sizeof(asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1)
157 /sizeof(asn_DEF_RANAP_HorizontalWithVerticalVelocityAndUncertainty_tags_1[0]), /* 1 */
158 0, /* No PER visible constraints */
159 asn_MBR_RANAP_HorizontalWithVerticalVelocityAndUncertainty_1,
160 5, /* Elements count */
161 &asn_SPC_RANAP_HorizontalWithVerticalVelocityAndUncertainty_specs_1 /* Additional specs */
162};
163