f8124c359bac2e10c58fcf45ede78f2b96522f85
[ric-app/kpimon.git] / asn1c_defs / all-defs / EN-DC-ResourceConfiguration.c
1 /*\r
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\r
3  * From ASN.1 module "X2AP-IEs"\r
4  *      found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"\r
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\r
6  */\r
7 \r
8 #include "EN-DC-ResourceConfiguration.h"\r
9 \r
10 #include "ProtocolExtensionContainer.h"\r
11 /*\r
12  * This type is implemented using NativeEnumerated,\r
13  * so here we adjust the DEF accordingly.\r
14  */\r
15 /*\r
16  * This type is implemented using NativeEnumerated,\r
17  * so here we adjust the DEF accordingly.\r
18  */\r
19 /*\r
20  * This type is implemented using NativeEnumerated,\r
21  * so here we adjust the DEF accordingly.\r
22  */\r
23 static asn_per_constraints_t asn_PER_type_pDCPatSgNB_constr_2 CC_NOTUSED = {\r
24         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,\r
25         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
26         0, 0    /* No PER value map */\r
27 };\r
28 static asn_per_constraints_t asn_PER_type_mCGresources_constr_6 CC_NOTUSED = {\r
29         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,\r
30         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
31         0, 0    /* No PER value map */\r
32 };\r
33 static asn_per_constraints_t asn_PER_type_sCGresources_constr_10 CC_NOTUSED = {\r
34         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,\r
35         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
36         0, 0    /* No PER value map */\r
37 };\r
38 static const asn_INTEGER_enum_map_t asn_MAP_pDCPatSgNB_value2enum_2[] = {\r
39         { 0,    7,      "present" },\r
40         { 1,    11,     "not-present" }\r
41         /* This list is extensible */\r
42 };\r
43 static const unsigned int asn_MAP_pDCPatSgNB_enum2value_2[] = {\r
44         1,      /* not-present(1) */\r
45         0       /* present(0) */\r
46         /* This list is extensible */\r
47 };\r
48 static const asn_INTEGER_specifics_t asn_SPC_pDCPatSgNB_specs_2 = {\r
49         asn_MAP_pDCPatSgNB_value2enum_2,        /* "tag" => N; sorted by tag */\r
50         asn_MAP_pDCPatSgNB_enum2value_2,        /* N => "tag"; sorted by N */\r
51         2,      /* Number of elements in the maps */\r
52         3,      /* Extensions before this member */\r
53         1,      /* Strict enumeration */\r
54         0,      /* Native long size */\r
55         0\r
56 };\r
57 static const ber_tlv_tag_t asn_DEF_pDCPatSgNB_tags_2[] = {\r
58         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
59         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))\r
60 };\r
61 static /* Use -fall-defs-global to expose */\r
62 asn_TYPE_descriptor_t asn_DEF_pDCPatSgNB_2 = {\r
63         "pDCPatSgNB",\r
64         "pDCPatSgNB",\r
65         &asn_OP_NativeEnumerated,\r
66         asn_DEF_pDCPatSgNB_tags_2,\r
67         sizeof(asn_DEF_pDCPatSgNB_tags_2)\r
68                 /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]) - 1, /* 1 */\r
69         asn_DEF_pDCPatSgNB_tags_2,      /* Same as above */\r
70         sizeof(asn_DEF_pDCPatSgNB_tags_2)\r
71                 /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]), /* 2 */\r
72         { 0, &asn_PER_type_pDCPatSgNB_constr_2, NativeEnumerated_constraint },\r
73         0, 0,   /* Defined elsewhere */\r
74         &asn_SPC_pDCPatSgNB_specs_2     /* Additional specs */\r
75 };\r
76 \r
77 static const asn_INTEGER_enum_map_t asn_MAP_mCGresources_value2enum_6[] = {\r
78         { 0,    7,      "present" },\r
79         { 1,    11,     "not-present" }\r
80         /* This list is extensible */\r
81 };\r
82 static const unsigned int asn_MAP_mCGresources_enum2value_6[] = {\r
83         1,      /* not-present(1) */\r
84         0       /* present(0) */\r
85         /* This list is extensible */\r
86 };\r
87 static const asn_INTEGER_specifics_t asn_SPC_mCGresources_specs_6 = {\r
88         asn_MAP_mCGresources_value2enum_6,      /* "tag" => N; sorted by tag */\r
89         asn_MAP_mCGresources_enum2value_6,      /* N => "tag"; sorted by N */\r
90         2,      /* Number of elements in the maps */\r
91         3,      /* Extensions before this member */\r
92         1,      /* Strict enumeration */\r
93         0,      /* Native long size */\r
94         0\r
95 };\r
96 static const ber_tlv_tag_t asn_DEF_mCGresources_tags_6[] = {\r
97         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
98         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))\r
99 };\r
100 static /* Use -fall-defs-global to expose */\r
101 asn_TYPE_descriptor_t asn_DEF_mCGresources_6 = {\r
102         "mCGresources",\r
103         "mCGresources",\r
104         &asn_OP_NativeEnumerated,\r
105         asn_DEF_mCGresources_tags_6,\r
106         sizeof(asn_DEF_mCGresources_tags_6)\r
107                 /sizeof(asn_DEF_mCGresources_tags_6[0]) - 1, /* 1 */\r
108         asn_DEF_mCGresources_tags_6,    /* Same as above */\r
109         sizeof(asn_DEF_mCGresources_tags_6)\r
110                 /sizeof(asn_DEF_mCGresources_tags_6[0]), /* 2 */\r
111         { 0, &asn_PER_type_mCGresources_constr_6, NativeEnumerated_constraint },\r
112         0, 0,   /* Defined elsewhere */\r
113         &asn_SPC_mCGresources_specs_6   /* Additional specs */\r
114 };\r
115 \r
116 static const asn_INTEGER_enum_map_t asn_MAP_sCGresources_value2enum_10[] = {\r
117         { 0,    7,      "present" },\r
118         { 1,    11,     "not-present" }\r
119         /* This list is extensible */\r
120 };\r
121 static const unsigned int asn_MAP_sCGresources_enum2value_10[] = {\r
122         1,      /* not-present(1) */\r
123         0       /* present(0) */\r
124         /* This list is extensible */\r
125 };\r
126 static const asn_INTEGER_specifics_t asn_SPC_sCGresources_specs_10 = {\r
127         asn_MAP_sCGresources_value2enum_10,     /* "tag" => N; sorted by tag */\r
128         asn_MAP_sCGresources_enum2value_10,     /* N => "tag"; sorted by N */\r
129         2,      /* Number of elements in the maps */\r
130         3,      /* Extensions before this member */\r
131         1,      /* Strict enumeration */\r
132         0,      /* Native long size */\r
133         0\r
134 };\r
135 static const ber_tlv_tag_t asn_DEF_sCGresources_tags_10[] = {\r
136         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
137         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))\r
138 };\r
139 static /* Use -fall-defs-global to expose */\r
140 asn_TYPE_descriptor_t asn_DEF_sCGresources_10 = {\r
141         "sCGresources",\r
142         "sCGresources",\r
143         &asn_OP_NativeEnumerated,\r
144         asn_DEF_sCGresources_tags_10,\r
145         sizeof(asn_DEF_sCGresources_tags_10)\r
146                 /sizeof(asn_DEF_sCGresources_tags_10[0]) - 1, /* 1 */\r
147         asn_DEF_sCGresources_tags_10,   /* Same as above */\r
148         sizeof(asn_DEF_sCGresources_tags_10)\r
149                 /sizeof(asn_DEF_sCGresources_tags_10[0]), /* 2 */\r
150         { 0, &asn_PER_type_sCGresources_constr_10, NativeEnumerated_constraint },\r
151         0, 0,   /* Defined elsewhere */\r
152         &asn_SPC_sCGresources_specs_10  /* Additional specs */\r
153 };\r
154 \r
155 asn_TYPE_member_t asn_MBR_EN_DC_ResourceConfiguration_1[] = {\r
156         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, pDCPatSgNB),\r
157                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
158                 -1,     /* IMPLICIT tag at current level */\r
159                 &asn_DEF_pDCPatSgNB_2,\r
160                 0,\r
161                 { 0, 0, 0 },\r
162                 0, 0, /* No default value */\r
163                 "pDCPatSgNB"\r
164                 },\r
165         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, mCGresources),\r
166                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
167                 -1,     /* IMPLICIT tag at current level */\r
168                 &asn_DEF_mCGresources_6,\r
169                 0,\r
170                 { 0, 0, 0 },\r
171                 0, 0, /* No default value */\r
172                 "mCGresources"\r
173                 },\r
174         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, sCGresources),\r
175                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
176                 -1,     /* IMPLICIT tag at current level */\r
177                 &asn_DEF_sCGresources_10,\r
178                 0,\r
179                 { 0, 0, 0 },\r
180                 0, 0, /* No default value */\r
181                 "sCGresources"\r
182                 },\r
183         { ATF_POINTER, 1, offsetof(struct EN_DC_ResourceConfiguration, iE_Extensions),\r
184                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),\r
185                 -1,     /* IMPLICIT tag at current level */\r
186                 &asn_DEF_ProtocolExtensionContainer_8231P137,\r
187                 0,\r
188                 { 0, 0, 0 },\r
189                 0, 0, /* No default value */\r
190                 "iE-Extensions"\r
191                 },\r
192 };\r
193 static const int asn_MAP_EN_DC_ResourceConfiguration_oms_1[] = { 3 };\r
194 static const ber_tlv_tag_t asn_DEF_EN_DC_ResourceConfiguration_tags_1[] = {\r
195         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
196 };\r
197 static const asn_TYPE_tag2member_t asn_MAP_EN_DC_ResourceConfiguration_tag2el_1[] = {\r
198     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCPatSgNB */\r
199     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mCGresources */\r
200     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sCGresources */\r
201     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */\r
202 };\r
203 asn_SEQUENCE_specifics_t asn_SPC_EN_DC_ResourceConfiguration_specs_1 = {\r
204         sizeof(struct EN_DC_ResourceConfiguration),\r
205         offsetof(struct EN_DC_ResourceConfiguration, _asn_ctx),\r
206         asn_MAP_EN_DC_ResourceConfiguration_tag2el_1,\r
207         4,      /* Count of tags in the map */\r
208         asn_MAP_EN_DC_ResourceConfiguration_oms_1,      /* Optional members */\r
209         1, 0,   /* Root/Additions */\r
210         4,      /* First extension addition */\r
211 };\r
212 asn_TYPE_descriptor_t asn_DEF_EN_DC_ResourceConfiguration = {\r
213         "EN-DC-ResourceConfiguration",\r
214         "EN-DC-ResourceConfiguration",\r
215         &asn_OP_SEQUENCE,\r
216         asn_DEF_EN_DC_ResourceConfiguration_tags_1,\r
217         sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1)\r
218                 /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */\r
219         asn_DEF_EN_DC_ResourceConfiguration_tags_1,     /* Same as above */\r
220         sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1)\r
221                 /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */\r
222         { 0, 0, SEQUENCE_constraint },\r
223         asn_MBR_EN_DC_ResourceConfiguration_1,\r
224         4,      /* Elements count */\r
225         &asn_SPC_EN_DC_ResourceConfiguration_specs_1    /* Additional specs */\r
226 };\r
227 \r