Change version after creation of r2 branch
[ric-plt/resource-status-manager.git] / RSM / asn1codec / e2ap_engine / E-RABs-SubjectToCounterCheckItem.c
1 /*
2  *
3  * Copyright 2019 AT&T Intellectual Property
4  *
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  *
17  */
18
19
20 /*
21  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22  * From ASN.1 module "X2AP-PDU-Contents"
23  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
24  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
25  */
26
27 #include "E-RABs-SubjectToCounterCheckItem.h"
28
29 #include "ProtocolExtensionContainer.h"
30 static int
31 uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
32                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
33         
34         if(!sptr) {
35                 ASN__CTFAIL(app_key, td, sptr,
36                         "%s: value not given (%s:%d)",
37                         td->name, __FILE__, __LINE__);
38                 return -1;
39         }
40         
41         
42         /* Constraint check succeeded */
43         return 0;
44 }
45
46 /*
47  * This type is implemented using NativeInteger,
48  * so here we adjust the DEF accordingly.
49  */
50 static int
51 dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
52                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
53         
54         if(!sptr) {
55                 ASN__CTFAIL(app_key, td, sptr,
56                         "%s: value not given (%s:%d)",
57                         td->name, __FILE__, __LINE__);
58                 return -1;
59         }
60         
61         
62         /* Constraint check succeeded */
63         return 0;
64 }
65
66 /*
67  * This type is implemented using NativeInteger,
68  * so here we adjust the DEF accordingly.
69  */
70 static int
71 memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
72                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
73         
74         if(!sptr) {
75                 ASN__CTFAIL(app_key, td, sptr,
76                         "%s: value not given (%s:%d)",
77                         td->name, __FILE__, __LINE__);
78                 return -1;
79         }
80         
81         
82         /* Constraint check succeeded */
83         return 0;
84 }
85
86 static int
87 memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
88                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
89         
90         if(!sptr) {
91                 ASN__CTFAIL(app_key, td, sptr,
92                         "%s: value not given (%s:%d)",
93                         td->name, __FILE__, __LINE__);
94                 return -1;
95         }
96         
97         
98         /* Constraint check succeeded */
99         return 0;
100 }
101
102 static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {
103         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
104         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
105         0, 0    /* No PER value map */
106 };
107 static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {
108         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
109         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
110         0, 0    /* No PER value map */
111 };
112 static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = {
113         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
114         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
115         0, 0    /* No PER value map */
116 };
117 static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {
118         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
119         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
120         0, 0    /* No PER value map */
121 };
122 static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {
123         0,      0,      0,      0,      0,
124         0,      /* Native long size */
125         1       /* Unsigned representation */
126 };
127 static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {
128         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
129         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
130 };
131 static /* Use -fall-defs-global to expose */
132 asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {
133         "uL-Count",
134         "uL-Count",
135         &asn_OP_NativeInteger,
136         asn_DEF_uL_Count_tags_3,
137         sizeof(asn_DEF_uL_Count_tags_3)
138                 /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */
139         asn_DEF_uL_Count_tags_3,        /* Same as above */
140         sizeof(asn_DEF_uL_Count_tags_3)
141                 /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */
142         { 0, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },
143         0, 0,   /* No members */
144         &asn_SPC_uL_Count_specs_3       /* Additional specs */
145 };
146
147 static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {
148         0,      0,      0,      0,      0,
149         0,      /* Native long size */
150         1       /* Unsigned representation */
151 };
152 static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {
153         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
154         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
155 };
156 static /* Use -fall-defs-global to expose */
157 asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {
158         "dL-Count",
159         "dL-Count",
160         &asn_OP_NativeInteger,
161         asn_DEF_dL_Count_tags_4,
162         sizeof(asn_DEF_dL_Count_tags_4)
163                 /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */
164         asn_DEF_dL_Count_tags_4,        /* Same as above */
165         sizeof(asn_DEF_dL_Count_tags_4)
166                 /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */
167         { 0, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },
168         0, 0,   /* No members */
169         &asn_SPC_dL_Count_specs_4       /* Additional specs */
170 };
171
172 static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToCounterCheckItem_1[] = {
173         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, e_RAB_ID),
174                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
175                 -1,     /* IMPLICIT tag at current level */
176                 &asn_DEF_E_RAB_ID,
177                 0,
178                 { 0, 0, 0 },
179                 0, 0, /* No default value */
180                 "e-RAB-ID"
181                 },
182         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, uL_Count),
183                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
184                 -1,     /* IMPLICIT tag at current level */
185                 &asn_DEF_uL_Count_3,
186                 0,
187                 { 0, &asn_PER_memb_uL_Count_constr_3,  memb_uL_Count_constraint_1 },
188                 0, 0, /* No default value */
189                 "uL-Count"
190                 },
191         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, dL_Count),
192                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
193                 -1,     /* IMPLICIT tag at current level */
194                 &asn_DEF_dL_Count_4,
195                 0,
196                 { 0, &asn_PER_memb_dL_Count_constr_4,  memb_dL_Count_constraint_1 },
197                 0, 0, /* No default value */
198                 "dL-Count"
199                 },
200         { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToCounterCheckItem, iE_Extensions),
201                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
202                 -1,     /* IMPLICIT tag at current level */
203                 &asn_DEF_ProtocolExtensionContainer_170P41,
204                 0,
205                 { 0, 0, 0 },
206                 0, 0, /* No default value */
207                 "iE-Extensions"
208                 },
209 };
210 static const int asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1[] = { 3 };
211 static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[] = {
212         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
213 };
214 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1[] = {
215     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
216     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */
217     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */
218     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
219 };
220 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 = {
221         sizeof(struct E_RABs_SubjectToCounterCheckItem),
222         offsetof(struct E_RABs_SubjectToCounterCheckItem, _asn_ctx),
223         asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1,
224         4,      /* Count of tags in the map */
225         asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1, /* Optional members */
226         1, 0,   /* Root/Additions */
227         4,      /* First extension addition */
228 };
229 asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToCounterCheckItem = {
230         "E-RABs-SubjectToCounterCheckItem",
231         "E-RABs-SubjectToCounterCheckItem",
232         &asn_OP_SEQUENCE,
233         asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,
234         sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
235                 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
236         asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,        /* Same as above */
237         sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
238                 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
239         { 0, 0, SEQUENCE_constraint },
240         asn_MBR_E_RABs_SubjectToCounterCheckItem_1,
241         4,      /* Elements count */
242         &asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1       /* Additional specs */
243 };
244