Merge "Cell down alarm notification [Issue-Id: ODUHIGH-430]"
[o-du/l2.git] / src / codec_utils / RRC / QuantityConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "./22April22_Paging/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./22April22_Paging -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "QuantityConfig.h"
9
10 #include "QuantityConfigNR.h"
11 #include "FilterConfig.h"
12 static int
13 memb_quantityConfigNR_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15         size_t size;
16         
17         if(!sptr) {
18                 ASN__CTFAIL(app_key, td, sptr,
19                         "%s: value not given (%s:%d)",
20                         td->name, __FILE__, __LINE__);
21                 return -1;
22         }
23         
24         /* Determine the number of elements */
25         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26         
27         if((size >= 1 && size <= 2)) {
28                 /* Perform validation of the inner elements */
29                 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
30         } else {
31                 ASN__CTFAIL(app_key, td, sptr,
32                         "%s: constraint failed (%s:%d)",
33                         td->name, __FILE__, __LINE__);
34                 return -1;
35         }
36 }
37
38 static asn_oer_constraints_t asn_OER_type_quantityConfigNR_List_constr_2 CC_NOTUSED = {
39         { 0, 0 },
40         -1      /* (SIZE(1..2)) */};
41 static asn_per_constraints_t asn_PER_type_quantityConfigNR_List_constr_2 CC_NOTUSED = {
42         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
43         { APC_CONSTRAINED,       1,  1,  1,  2 }        /* (SIZE(1..2)) */,
44         0, 0    /* No PER value map */
45 };
46 static asn_oer_constraints_t asn_OER_memb_quantityConfigNR_List_constr_2 CC_NOTUSED = {
47         { 0, 0 },
48         -1      /* (SIZE(1..2)) */};
49 static asn_per_constraints_t asn_PER_memb_quantityConfigNR_List_constr_2 CC_NOTUSED = {
50         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
51         { APC_CONSTRAINED,       1,  1,  1,  2 }        /* (SIZE(1..2)) */,
52         0, 0    /* No PER value map */
53 };
54 static asn_TYPE_member_t asn_MBR_quantityConfigNR_List_2[] = {
55         { ATF_POINTER, 0, 0,
56                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
57                 0,
58                 &asn_DEF_QuantityConfigNR,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 ""
63                 },
64 };
65 static const ber_tlv_tag_t asn_DEF_quantityConfigNR_List_tags_2[] = {
66         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
67         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
68 };
69 static asn_SET_OF_specifics_t asn_SPC_quantityConfigNR_List_specs_2 = {
70         sizeof(struct QuantityConfig__quantityConfigNR_List),
71         offsetof(struct QuantityConfig__quantityConfigNR_List, _asn_ctx),
72         0,      /* XER encoding is XMLDelimitedItemList */
73 };
74 static /* Use -fall-defs-global to expose */
75 asn_TYPE_descriptor_t asn_DEF_quantityConfigNR_List_2 = {
76         "quantityConfigNR-List",
77         "quantityConfigNR-List",
78         &asn_OP_SEQUENCE_OF,
79         asn_DEF_quantityConfigNR_List_tags_2,
80         sizeof(asn_DEF_quantityConfigNR_List_tags_2)
81                 /sizeof(asn_DEF_quantityConfigNR_List_tags_2[0]) - 1, /* 1 */
82         asn_DEF_quantityConfigNR_List_tags_2,   /* Same as above */
83         sizeof(asn_DEF_quantityConfigNR_List_tags_2)
84                 /sizeof(asn_DEF_quantityConfigNR_List_tags_2[0]), /* 2 */
85         { &asn_OER_type_quantityConfigNR_List_constr_2, &asn_PER_type_quantityConfigNR_List_constr_2, SEQUENCE_OF_constraint },
86         asn_MBR_quantityConfigNR_List_2,
87         1,      /* Single element */
88         &asn_SPC_quantityConfigNR_List_specs_2  /* Additional specs */
89 };
90
91 static asn_TYPE_member_t asn_MBR_ext1_5[] = {
92         { ATF_POINTER, 1, offsetof(struct QuantityConfig__ext1, quantityConfigEUTRA),
93                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
94                 -1,     /* IMPLICIT tag at current level */
95                 &asn_DEF_FilterConfig,
96                 0,
97                 { 0, 0, 0 },
98                 0, 0, /* No default value */
99                 "quantityConfigEUTRA"
100                 },
101 };
102 static const int asn_MAP_ext1_oms_5[] = { 0 };
103 static const ber_tlv_tag_t asn_DEF_ext1_tags_5[] = {
104         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
105         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
106 };
107 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_5[] = {
108     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* quantityConfigEUTRA */
109 };
110 static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_5 = {
111         sizeof(struct QuantityConfig__ext1),
112         offsetof(struct QuantityConfig__ext1, _asn_ctx),
113         asn_MAP_ext1_tag2el_5,
114         1,      /* Count of tags in the map */
115         asn_MAP_ext1_oms_5,     /* Optional members */
116         1, 0,   /* Root/Additions */
117         -1,     /* First extension addition */
118 };
119 static /* Use -fall-defs-global to expose */
120 asn_TYPE_descriptor_t asn_DEF_ext1_5 = {
121         "ext1",
122         "ext1",
123         &asn_OP_SEQUENCE,
124         asn_DEF_ext1_tags_5,
125         sizeof(asn_DEF_ext1_tags_5)
126                 /sizeof(asn_DEF_ext1_tags_5[0]) - 1, /* 1 */
127         asn_DEF_ext1_tags_5,    /* Same as above */
128         sizeof(asn_DEF_ext1_tags_5)
129                 /sizeof(asn_DEF_ext1_tags_5[0]), /* 2 */
130         { 0, 0, SEQUENCE_constraint },
131         asn_MBR_ext1_5,
132         1,      /* Elements count */
133         &asn_SPC_ext1_specs_5   /* Additional specs */
134 };
135
136 asn_TYPE_member_t asn_MBR_QuantityConfig_1[] = {
137         { ATF_POINTER, 2, offsetof(struct QuantityConfig, quantityConfigNR_List),
138                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
139                 0,
140                 &asn_DEF_quantityConfigNR_List_2,
141                 0,
142                 { &asn_OER_memb_quantityConfigNR_List_constr_2, &asn_PER_memb_quantityConfigNR_List_constr_2,  memb_quantityConfigNR_List_constraint_1 },
143                 0, 0, /* No default value */
144                 "quantityConfigNR-List"
145                 },
146         { ATF_POINTER, 1, offsetof(struct QuantityConfig, ext1),
147                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
148                 0,
149                 &asn_DEF_ext1_5,
150                 0,
151                 { 0, 0, 0 },
152                 0, 0, /* No default value */
153                 "ext1"
154                 },
155 };
156 static const int asn_MAP_QuantityConfig_oms_1[] = { 0, 1 };
157 static const ber_tlv_tag_t asn_DEF_QuantityConfig_tags_1[] = {
158         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
159 };
160 static const asn_TYPE_tag2member_t asn_MAP_QuantityConfig_tag2el_1[] = {
161     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* quantityConfigNR-List */
162     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ext1 */
163 };
164 asn_SEQUENCE_specifics_t asn_SPC_QuantityConfig_specs_1 = {
165         sizeof(struct QuantityConfig),
166         offsetof(struct QuantityConfig, _asn_ctx),
167         asn_MAP_QuantityConfig_tag2el_1,
168         2,      /* Count of tags in the map */
169         asn_MAP_QuantityConfig_oms_1,   /* Optional members */
170         1, 1,   /* Root/Additions */
171         1,      /* First extension addition */
172 };
173 asn_TYPE_descriptor_t asn_DEF_QuantityConfig = {
174         "QuantityConfig",
175         "QuantityConfig",
176         &asn_OP_SEQUENCE,
177         asn_DEF_QuantityConfig_tags_1,
178         sizeof(asn_DEF_QuantityConfig_tags_1)
179                 /sizeof(asn_DEF_QuantityConfig_tags_1[0]), /* 1 */
180         asn_DEF_QuantityConfig_tags_1,  /* Same as above */
181         sizeof(asn_DEF_QuantityConfig_tags_1)
182                 /sizeof(asn_DEF_QuantityConfig_tags_1[0]), /* 1 */
183         { 0, 0, SEQUENCE_constraint },
184         asn_MBR_QuantityConfig_1,
185         2,      /* Elements count */
186         &asn_SPC_QuantityConfig_specs_1 /* Additional specs */
187 };
188