blob: 29c3919572fc1f51f358b8423c080db4ceb40b1d [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_GA-PointWithAltitudeAndUncertaintyEllipsoid.h>
Harald Welteee091892015-09-10 10:22:03 +02008
9static int
10memb_uncertaintyAltitude_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 <= 127l)) {
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_confidence_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 <= 127l)) {
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_uncertaintyAltitude_constr_5 GCC_NOTUSED = {
60 { APC_CONSTRAINED, 7, 7, 0l, 127l } /* (0..127) */,
61 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
62 0, 0 /* No PER value map */
63};
64static asn_per_constraints_t asn_PER_memb_confidence_constr_6 GCC_NOTUSED = {
65 { APC_CONSTRAINED, 7, 7, 0l, 127l } /* (0..127) */,
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 0, 0 /* No PER value map */
68};
69static asn_TYPE_member_t asn_MBR_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_1[] = {
70 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, geographicalCoordinates),
71 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
72 -1, /* IMPLICIT tag at current level */
73 &asn_DEF_RANAP_GeographicalCoordinates,
74 0, /* Defer constraints checking to the member type */
75 0, /* No PER visible constraints */
76 0,
77 "geographicalCoordinates"
78 },
79 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, altitudeAndDirection),
80 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
81 -1, /* IMPLICIT tag at current level */
82 &asn_DEF_RANAP_GA_AltitudeAndDirection,
83 0, /* Defer constraints checking to the member type */
84 0, /* No PER visible constraints */
85 0,
86 "altitudeAndDirection"
87 },
88 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, uncertaintyEllipse),
89 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
90 -1, /* IMPLICIT tag at current level */
91 &asn_DEF_RANAP_GA_UncertaintyEllipse,
92 0, /* Defer constraints checking to the member type */
93 0, /* No PER visible constraints */
94 0,
95 "uncertaintyEllipse"
96 },
97 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, uncertaintyAltitude),
98 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
99 -1, /* IMPLICIT tag at current level */
100 &asn_DEF_NativeInteger,
101 memb_uncertaintyAltitude_constraint_1,
102 &asn_PER_memb_uncertaintyAltitude_constr_5,
103 0,
104 "uncertaintyAltitude"
105 },
106 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, confidence),
107 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
108 -1, /* IMPLICIT tag at current level */
109 &asn_DEF_NativeInteger,
110 memb_confidence_constraint_1,
111 &asn_PER_memb_confidence_constr_6,
112 0,
113 "confidence"
114 },
115 { ATF_POINTER, 1, offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, iE_Extensions),
116 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
117 -1, /* IMPLICIT tag at current level */
118 &asn_DEF_RANAP_IE_Extensions,
119 0, /* Defer constraints checking to the member type */
120 0, /* No PER visible constraints */
121 0,
122 "iE-Extensions"
123 },
124};
125static const int asn_MAP_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_oms_1[] = { 5 };
126static const ber_tlv_tag_t asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1[] = {
127 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
128};
129static const asn_TYPE_tag2member_t asn_MAP_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tag2el_1[] = {
130 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */
131 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* altitudeAndDirection */
132 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uncertaintyEllipse */
133 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncertaintyAltitude */
134 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* confidence */
135 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iE-Extensions */
136};
137static asn_SEQUENCE_specifics_t asn_SPC_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_specs_1 = {
138 sizeof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid),
139 offsetof(struct RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid, _asn_ctx),
140 asn_MAP_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tag2el_1,
141 6, /* Count of tags in the map */
142 asn_MAP_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_oms_1, /* Optional members */
143 1, 0, /* Root/Additions */
144 5, /* Start extensions */
145 7 /* Stop extensions */
146};
147asn_TYPE_descriptor_t asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid = {
148 "RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid",
149 "RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid",
150 SEQUENCE_free,
151 SEQUENCE_print,
152 SEQUENCE_constraint,
153 SEQUENCE_decode_ber,
154 SEQUENCE_encode_der,
155 SEQUENCE_decode_xer,
156 SEQUENCE_encode_xer,
157 SEQUENCE_decode_uper,
158 SEQUENCE_encode_uper,
159 SEQUENCE_decode_aper,
160 SEQUENCE_encode_aper,
161 0, /* Use generic outmost tag fetcher */
162 asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1,
163 sizeof(asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1)
164 /sizeof(asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */
165 asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1, /* Same as above */
166 sizeof(asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1)
167 /sizeof(asn_DEF_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_tags_1[0]), /* 1 */
168 0, /* No PER visible constraints */
169 asn_MBR_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_1,
170 6, /* Elements count */
171 &asn_SPC_RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_specs_1 /* Additional specs */
172};
173