Vanetza
 
Loading...
Searching...
No Matches
EXTERNAL.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "ASN1C-UsefulInformationObjectClasses"
4 * found in "/home/raphael/opt/asn1c/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "EXTERNAL.h"
9
10#if !defined(ASN_DISABLE_OER_SUPPORT)
11static asn_oer_constraints_t asn_OER_type_encoding_constr_5 CC_NOTUSED = {
12 { 0, 0 },
13 -1};
14#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
15#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
16static asn_per_constraints_t asn_PER_type_encoding_constr_5 CC_NOTUSED = {
17 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
18 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
19 0, 0 /* No PER value map */
20};
21#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
22static asn_TYPE_member_t asn_MBR_encoding_5[] = {
23 { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type),
24 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
25 +1, /* EXPLICIT tag at current level */
26 &asn_DEF_ANY,
27 0,
28 {
29#if !defined(ASN_DISABLE_OER_SUPPORT)
30 0,
31#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
32#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
33 0,
34#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
35 0
36 },
37 0, 0, /* No default value */
38 "single-ASN1-type"
39 },
40 { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.octet_aligned),
41 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42 -1, /* IMPLICIT tag at current level */
43 &asn_DEF_OCTET_STRING,
44 0,
45 {
46#if !defined(ASN_DISABLE_OER_SUPPORT)
47 0,
48#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
50 0,
51#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
52 0
53 },
54 0, 0, /* No default value */
55 "octet-aligned"
56 },
57 { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.arbitrary),
58 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
59 -1, /* IMPLICIT tag at current level */
60 &asn_DEF_BIT_STRING,
61 0,
62 {
63#if !defined(ASN_DISABLE_OER_SUPPORT)
64 0,
65#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
66#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67 0,
68#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
69 0
70 },
71 0, 0, /* No default value */
72 "arbitrary"
73 },
74};
75static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = {
76 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */
77 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */
78 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */
79};
80static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = {
81 sizeof(struct EXTERNAL__encoding),
82 offsetof(struct EXTERNAL__encoding, _asn_ctx),
83 offsetof(struct EXTERNAL__encoding, present),
84 sizeof(((struct EXTERNAL__encoding *)0)->present),
85 asn_MAP_encoding_tag2el_5,
86 3, /* Count of tags in the map */
87 0, 0,
88 -1 /* Extensions start */
89};
90static /* Use -fall-defs-global to expose */
91asn_TYPE_descriptor_t asn_DEF_encoding_5 = {
92 "encoding",
93 "encoding",
94 &asn_OP_CHOICE,
95 0, /* No effective tags (pointer) */
96 0, /* No effective tags (count) */
97 0, /* No tags (pointer) */
98 0, /* No tags (count) */
99 {
100#if !defined(ASN_DISABLE_OER_SUPPORT)
101 &asn_OER_type_encoding_constr_5,
102#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
103#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
104 &asn_PER_type_encoding_constr_5,
105#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
106 CHOICE_constraint
107 },
108 asn_MBR_encoding_5,
109 3, /* Elements count */
110 &asn_SPC_encoding_specs_5 /* Additional specs */
111};
112
113static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = {
114 { ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference),
115 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
116 0,
117 &asn_DEF_OBJECT_IDENTIFIER,
118 0,
119 {
120#if !defined(ASN_DISABLE_OER_SUPPORT)
121 0,
122#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
123#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
124 0,
125#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
126 0
127 },
128 0, 0, /* No default value */
129 "direct-reference"
130 },
131 { ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference),
132 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
133 0,
134 &asn_DEF_NativeInteger,
135 0,
136 {
137#if !defined(ASN_DISABLE_OER_SUPPORT)
138 0,
139#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
140#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
141 0,
142#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
143 0
144 },
145 0, 0, /* No default value */
146 "indirect-reference"
147 },
148 { ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor),
149 (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)),
150 0,
151 &asn_DEF_ObjectDescriptor,
152 0,
153 {
154#if !defined(ASN_DISABLE_OER_SUPPORT)
155 0,
156#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
157#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
158 0,
159#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
160 0
161 },
162 0, 0, /* No default value */
163 "data-value-descriptor"
164 },
165 { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding),
166 -1 /* Ambiguous tag (CHOICE?) */,
167 0,
168 &asn_DEF_encoding_5,
169 0,
170 {
171#if !defined(ASN_DISABLE_OER_SUPPORT)
172 0,
173#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
174#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
175 0,
176#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
177 0
178 },
179 0, 0, /* No default value */
180 "encoding"
181 },
182};
183static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 };
184static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = {
185 (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
186 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
187};
188static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = {
189 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */
190 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */
191 { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */
192 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */
193 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */
194 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */
195};
196static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = {
197 sizeof(struct EXTERNAL),
198 offsetof(struct EXTERNAL, _asn_ctx),
199 asn_MAP_EXTERNAL_tag2el_1,
200 6, /* Count of tags in the map */
201 asn_MAP_EXTERNAL_oms_1, /* Optional members */
202 3, 0, /* Root/Additions */
203 -1, /* First extension addition */
204};
205asn_TYPE_descriptor_t asn_DEF_EXTERNAL = {
206 "EXTERNAL",
207 "EXTERNAL",
208 &asn_OP_SEQUENCE,
209 asn_DEF_EXTERNAL_tags_1,
210 sizeof(asn_DEF_EXTERNAL_tags_1)
211 /sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */
212 asn_DEF_EXTERNAL_tags_1, /* Same as above */
213 sizeof(asn_DEF_EXTERNAL_tags_1)
214 /sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */
215 {
216#if !defined(ASN_DISABLE_OER_SUPPORT)
217 0,
218#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
219#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
220 0,
221#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
222 SEQUENCE_constraint
223 },
224 asn_MBR_EXTERNAL_1,
225 4, /* Elements count */
226 &asn_SPC_EXTERNAL_specs_1 /* Additional specs */
227};
228