3 * Copyright 2020 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
21 * From ASN.1 module "E2SM-gNB-NRT-IEs"
22 * found in "../asnTextFiles/e2sm-gNB-NRT-v401.asn"
23 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
26 #include "RIC-InsertStyle-List.h"
28 #include "RANparameterDef-Item.h"
30 memb_ric_InsertRanParameterDef_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
31 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
35 ASN__CTFAIL(app_key, td, sptr,
36 "%s: value not given (%s:%d)",
37 td->name, __FILE__, __LINE__);
41 /* Determine the number of elements */
42 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
44 if((size >= 1 && size <= 255)) {
45 /* Perform validation of the inner elements */
46 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
48 ASN__CTFAIL(app_key, td, sptr,
49 "%s: constraint failed (%s:%d)",
50 td->name, __FILE__, __LINE__);
55 static asn_per_constraints_t asn_PER_type_ric_InsertRanParameterDef_List_constr_5 CC_NOTUSED = {
56 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
57 { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */,
58 0, 0 /* No PER value map */
60 static asn_per_constraints_t asn_PER_memb_ric_InsertRanParameterDef_List_constr_5 CC_NOTUSED = {
61 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
62 { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */,
63 0, 0 /* No PER value map */
65 static asn_TYPE_member_t asn_MBR_ric_InsertRanParameterDef_List_5[] = {
67 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
69 &asn_DEF_RANparameterDef_Item,
72 0, 0, /* No default value */
76 static const ber_tlv_tag_t asn_DEF_ric_InsertRanParameterDef_List_tags_5[] = {
77 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
78 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
80 static asn_SET_OF_specifics_t asn_SPC_ric_InsertRanParameterDef_List_specs_5 = {
81 sizeof(struct RIC_InsertStyle_List__ric_InsertRanParameterDef_List),
82 offsetof(struct RIC_InsertStyle_List__ric_InsertRanParameterDef_List, _asn_ctx),
83 0, /* XER encoding is XMLDelimitedItemList */
85 static /* Use -fall-defs-global to expose */
86 asn_TYPE_descriptor_t asn_DEF_ric_InsertRanParameterDef_List_5 = {
87 "ric-InsertRanParameterDef-List",
88 "ric-InsertRanParameterDef-List",
90 asn_DEF_ric_InsertRanParameterDef_List_tags_5,
91 sizeof(asn_DEF_ric_InsertRanParameterDef_List_tags_5)
92 /sizeof(asn_DEF_ric_InsertRanParameterDef_List_tags_5[0]) - 1, /* 1 */
93 asn_DEF_ric_InsertRanParameterDef_List_tags_5, /* Same as above */
94 sizeof(asn_DEF_ric_InsertRanParameterDef_List_tags_5)
95 /sizeof(asn_DEF_ric_InsertRanParameterDef_List_tags_5[0]), /* 2 */
96 { 0, &asn_PER_type_ric_InsertRanParameterDef_List_constr_5, SEQUENCE_OF_constraint },
97 asn_MBR_ric_InsertRanParameterDef_List_5,
98 1, /* Single element */
99 &asn_SPC_ric_InsertRanParameterDef_List_specs_5 /* Additional specs */
102 asn_TYPE_member_t asn_MBR_RIC_InsertStyle_List_1[] = {
103 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_InsertStyle_Type),
104 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
105 -1, /* IMPLICIT tag at current level */
106 &asn_DEF_RIC_Style_Type,
109 0, 0, /* No default value */
110 "ric-InsertStyle-Type"
112 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_InsertStyle_Name),
113 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
114 -1, /* IMPLICIT tag at current level */
115 &asn_DEF_RIC_Style_Name,
118 0, 0, /* No default value */
119 "ric-InsertStyle-Name"
121 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_InsertActionFormat_Type),
122 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
123 -1, /* IMPLICIT tag at current level */
124 &asn_DEF_RIC_Format_Type,
127 0, 0, /* No default value */
128 "ric-InsertActionFormat-Type"
130 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_InsertRanParameterDef_List),
131 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
133 &asn_DEF_ric_InsertRanParameterDef_List_5,
135 { 0, &asn_PER_memb_ric_InsertRanParameterDef_List_constr_5, memb_ric_InsertRanParameterDef_List_constraint_1 },
136 0, 0, /* No default value */
137 "ric-InsertRanParameterDef-List"
139 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_IndicationHeaderFormat_Type),
140 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
141 -1, /* IMPLICIT tag at current level */
142 &asn_DEF_RIC_Format_Type,
145 0, 0, /* No default value */
146 "ric-IndicationHeaderFormat-Type"
148 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_IndicationMessageFormat_Type),
149 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
150 -1, /* IMPLICIT tag at current level */
151 &asn_DEF_RIC_Format_Type,
154 0, 0, /* No default value */
155 "ric-IndicationMessageFormat-Type"
157 { ATF_NOFLAGS, 0, offsetof(struct RIC_InsertStyle_List, ric_CallProcessIDFormat_Type),
158 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
159 -1, /* IMPLICIT tag at current level */
160 &asn_DEF_RIC_Format_Type,
163 0, 0, /* No default value */
164 "ric-CallProcessIDFormat-Type"
167 static const ber_tlv_tag_t asn_DEF_RIC_InsertStyle_List_tags_1[] = {
168 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
170 static const asn_TYPE_tag2member_t asn_MAP_RIC_InsertStyle_List_tag2el_1[] = {
171 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ric-InsertStyle-Type */
172 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ric-InsertStyle-Name */
173 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ric-InsertActionFormat-Type */
174 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ric-InsertRanParameterDef-List */
175 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ric-IndicationHeaderFormat-Type */
176 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ric-IndicationMessageFormat-Type */
177 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* ric-CallProcessIDFormat-Type */
179 asn_SEQUENCE_specifics_t asn_SPC_RIC_InsertStyle_List_specs_1 = {
180 sizeof(struct RIC_InsertStyle_List),
181 offsetof(struct RIC_InsertStyle_List, _asn_ctx),
182 asn_MAP_RIC_InsertStyle_List_tag2el_1,
183 7, /* Count of tags in the map */
184 0, 0, 0, /* Optional elements (not needed) */
185 7, /* First extension addition */
187 asn_TYPE_descriptor_t asn_DEF_RIC_InsertStyle_List = {
188 "RIC-InsertStyle-List",
189 "RIC-InsertStyle-List",
191 asn_DEF_RIC_InsertStyle_List_tags_1,
192 sizeof(asn_DEF_RIC_InsertStyle_List_tags_1)
193 /sizeof(asn_DEF_RIC_InsertStyle_List_tags_1[0]), /* 1 */
194 asn_DEF_RIC_InsertStyle_List_tags_1, /* Same as above */
195 sizeof(asn_DEF_RIC_InsertStyle_List_tags_1)
196 /sizeof(asn_DEF_RIC_InsertStyle_List_tags_1[0]), /* 1 */
197 { 0, 0, SEQUENCE_constraint },
198 asn_MBR_RIC_InsertStyle_List_1,
199 7, /* Elements count */
200 &asn_SPC_RIC_InsertStyle_List_specs_1 /* Additional specs */