blob: f0e1115ed73bebab2198e2419c918ae223d9a696 [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-PointWithUnCertaintyEllipse.h>
Harald Welteee091892015-09-10 10:22:03 +02008
9static int
10memb_confidence_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 asn_per_constraints_t asn_PER_memb_confidence_constr_4 GCC_NOTUSED = {
35 { APC_CONSTRAINED, 7, 7, 0l, 127l } /* (0..127) */,
36 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
37 0, 0 /* No PER value map */
38};
39static asn_TYPE_member_t asn_MBR_RANAP_GA_PointWithUnCertaintyEllipse_1[] = {
40 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithUnCertaintyEllipse, geographicalCoordinates),
41 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
42 -1, /* IMPLICIT tag at current level */
43 &asn_DEF_RANAP_GeographicalCoordinates,
44 0, /* Defer constraints checking to the member type */
45 0, /* No PER visible constraints */
46 0,
47 "geographicalCoordinates"
48 },
49 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithUnCertaintyEllipse, uncertaintyEllipse),
50 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
51 -1, /* IMPLICIT tag at current level */
52 &asn_DEF_RANAP_GA_UncertaintyEllipse,
53 0, /* Defer constraints checking to the member type */
54 0, /* No PER visible constraints */
55 0,
56 "uncertaintyEllipse"
57 },
58 { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_PointWithUnCertaintyEllipse, confidence),
59 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
60 -1, /* IMPLICIT tag at current level */
61 &asn_DEF_NativeInteger,
62 memb_confidence_constraint_1,
63 &asn_PER_memb_confidence_constr_4,
64 0,
65 "confidence"
66 },
67 { ATF_POINTER, 1, offsetof(struct RANAP_GA_PointWithUnCertaintyEllipse, iE_Extensions),
68 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
69 -1, /* IMPLICIT tag at current level */
70 &asn_DEF_RANAP_IE_Extensions,
71 0, /* Defer constraints checking to the member type */
72 0, /* No PER visible constraints */
73 0,
74 "iE-Extensions"
75 },
76};
77static const int asn_MAP_RANAP_GA_PointWithUnCertaintyEllipse_oms_1[] = { 3 };
78static const ber_tlv_tag_t asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1[] = {
79 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
80};
81static const asn_TYPE_tag2member_t asn_MAP_RANAP_GA_PointWithUnCertaintyEllipse_tag2el_1[] = {
82 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */
83 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uncertaintyEllipse */
84 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* confidence */
85 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
86};
87static asn_SEQUENCE_specifics_t asn_SPC_RANAP_GA_PointWithUnCertaintyEllipse_specs_1 = {
88 sizeof(struct RANAP_GA_PointWithUnCertaintyEllipse),
89 offsetof(struct RANAP_GA_PointWithUnCertaintyEllipse, _asn_ctx),
90 asn_MAP_RANAP_GA_PointWithUnCertaintyEllipse_tag2el_1,
91 4, /* Count of tags in the map */
92 asn_MAP_RANAP_GA_PointWithUnCertaintyEllipse_oms_1, /* Optional members */
93 1, 0, /* Root/Additions */
94 3, /* Start extensions */
95 5 /* Stop extensions */
96};
97asn_TYPE_descriptor_t asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse = {
98 "RANAP_GA-PointWithUnCertaintyEllipse",
99 "RANAP_GA-PointWithUnCertaintyEllipse",
100 SEQUENCE_free,
101 SEQUENCE_print,
102 SEQUENCE_constraint,
103 SEQUENCE_decode_ber,
104 SEQUENCE_encode_der,
105 SEQUENCE_decode_xer,
106 SEQUENCE_encode_xer,
107 SEQUENCE_decode_uper,
108 SEQUENCE_encode_uper,
109 SEQUENCE_decode_aper,
110 SEQUENCE_encode_aper,
111 0, /* Use generic outmost tag fetcher */
112 asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1,
113 sizeof(asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1)
114 /sizeof(asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1[0]), /* 1 */
115 asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1, /* Same as above */
116 sizeof(asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1)
117 /sizeof(asn_DEF_RANAP_GA_PointWithUnCertaintyEllipse_tags_1[0]), /* 1 */
118 0, /* No PER visible constraints */
119 asn_MBR_RANAP_GA_PointWithUnCertaintyEllipse_1,
120 4, /* Elements count */
121 &asn_SPC_RANAP_GA_PointWithUnCertaintyEllipse_specs_1 /* Additional specs */
122};
123