Merge "[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures MeasC...
[o-du/l2.git] / src / codec_utils / RRC / UERadioPagingInformation-IEs.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-InterNodeDefinitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "UERadioPagingInformation-IEs.h"
9
10 static int
11 memb_supportedBandListNRForPaging_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         size_t size;
14         
15         if(!sptr) {
16                 ASN__CTFAIL(app_key, td, sptr,
17                         "%s: value not given (%s:%d)",
18                         td->name, __FILE__, __LINE__);
19                 return -1;
20         }
21         
22         /* Determine the number of elements */
23         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
24         
25         if((size >= 1 && size <= 1024)) {
26                 /* Perform validation of the inner elements */
27                 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
28         } else {
29                 ASN__CTFAIL(app_key, td, sptr,
30                         "%s: constraint failed (%s:%d)",
31                         td->name, __FILE__, __LINE__);
32                 return -1;
33         }
34 }
35
36 static asn_oer_constraints_t asn_OER_type_supportedBandListNRForPaging_constr_2 CC_NOTUSED = {
37         { 0, 0 },
38         -1      /* (SIZE(1..1024)) */};
39 static asn_per_constraints_t asn_PER_type_supportedBandListNRForPaging_constr_2 CC_NOTUSED = {
40         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
41         { APC_CONSTRAINED,       10,  10,  1,  1024 }   /* (SIZE(1..1024)) */,
42         0, 0    /* No PER value map */
43 };
44 static asn_oer_constraints_t asn_OER_memb_supportedBandListNRForPaging_constr_2 CC_NOTUSED = {
45         { 0, 0 },
46         -1      /* (SIZE(1..1024)) */};
47 static asn_per_constraints_t asn_PER_memb_supportedBandListNRForPaging_constr_2 CC_NOTUSED = {
48         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
49         { APC_CONSTRAINED,       10,  10,  1,  1024 }   /* (SIZE(1..1024)) */,
50         0, 0    /* No PER value map */
51 };
52 static asn_TYPE_member_t asn_MBR_supportedBandListNRForPaging_2[] = {
53         { ATF_POINTER, 0, 0,
54                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
55                 0,
56                 &asn_DEF_FreqBandIndicatorNR,
57                 0,
58                 { 0, 0, 0 },
59                 0, 0, /* No default value */
60                 ""
61                 },
62 };
63 static const ber_tlv_tag_t asn_DEF_supportedBandListNRForPaging_tags_2[] = {
64         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
65         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
66 };
67 static asn_SET_OF_specifics_t asn_SPC_supportedBandListNRForPaging_specs_2 = {
68         sizeof(struct UERadioPagingInformation_IEs__supportedBandListNRForPaging),
69         offsetof(struct UERadioPagingInformation_IEs__supportedBandListNRForPaging, _asn_ctx),
70         0,      /* XER encoding is XMLDelimitedItemList */
71 };
72 static /* Use -fall-defs-global to expose */
73 asn_TYPE_descriptor_t asn_DEF_supportedBandListNRForPaging_2 = {
74         "supportedBandListNRForPaging",
75         "supportedBandListNRForPaging",
76         &asn_OP_SEQUENCE_OF,
77         asn_DEF_supportedBandListNRForPaging_tags_2,
78         sizeof(asn_DEF_supportedBandListNRForPaging_tags_2)
79                 /sizeof(asn_DEF_supportedBandListNRForPaging_tags_2[0]) - 1, /* 1 */
80         asn_DEF_supportedBandListNRForPaging_tags_2,    /* Same as above */
81         sizeof(asn_DEF_supportedBandListNRForPaging_tags_2)
82                 /sizeof(asn_DEF_supportedBandListNRForPaging_tags_2[0]), /* 2 */
83         { &asn_OER_type_supportedBandListNRForPaging_constr_2, &asn_PER_type_supportedBandListNRForPaging_constr_2, SEQUENCE_OF_constraint },
84         asn_MBR_supportedBandListNRForPaging_2,
85         1,      /* Single element */
86         &asn_SPC_supportedBandListNRForPaging_specs_2   /* Additional specs */
87 };
88
89 static const ber_tlv_tag_t asn_DEF_nonCriticalExtension_tags_4[] = {
90         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
91         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
92 };
93 static asn_SEQUENCE_specifics_t asn_SPC_nonCriticalExtension_specs_4 = {
94         sizeof(struct UERadioPagingInformation_IEs__nonCriticalExtension),
95         offsetof(struct UERadioPagingInformation_IEs__nonCriticalExtension, _asn_ctx),
96         0,      /* No top level tags */
97         0,      /* No tags in the map */
98         0, 0, 0,        /* Optional elements (not needed) */
99         -1,     /* First extension addition */
100 };
101 static /* Use -fall-defs-global to expose */
102 asn_TYPE_descriptor_t asn_DEF_nonCriticalExtension_4 = {
103         "nonCriticalExtension",
104         "nonCriticalExtension",
105         &asn_OP_SEQUENCE,
106         asn_DEF_nonCriticalExtension_tags_4,
107         sizeof(asn_DEF_nonCriticalExtension_tags_4)
108                 /sizeof(asn_DEF_nonCriticalExtension_tags_4[0]) - 1, /* 1 */
109         asn_DEF_nonCriticalExtension_tags_4,    /* Same as above */
110         sizeof(asn_DEF_nonCriticalExtension_tags_4)
111                 /sizeof(asn_DEF_nonCriticalExtension_tags_4[0]), /* 2 */
112         { 0, 0, SEQUENCE_constraint },
113         0, 0,   /* No members */
114         &asn_SPC_nonCriticalExtension_specs_4   /* Additional specs */
115 };
116
117 asn_TYPE_member_t asn_MBR_UERadioPagingInformation_IEs_1[] = {
118         { ATF_POINTER, 2, offsetof(struct UERadioPagingInformation_IEs, supportedBandListNRForPaging),
119                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
120                 0,
121                 &asn_DEF_supportedBandListNRForPaging_2,
122                 0,
123                 { &asn_OER_memb_supportedBandListNRForPaging_constr_2, &asn_PER_memb_supportedBandListNRForPaging_constr_2,  memb_supportedBandListNRForPaging_constraint_1 },
124                 0, 0, /* No default value */
125                 "supportedBandListNRForPaging"
126                 },
127         { ATF_POINTER, 1, offsetof(struct UERadioPagingInformation_IEs, nonCriticalExtension),
128                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
129                 0,
130                 &asn_DEF_nonCriticalExtension_4,
131                 0,
132                 { 0, 0, 0 },
133                 0, 0, /* No default value */
134                 "nonCriticalExtension"
135                 },
136 };
137 static const int asn_MAP_UERadioPagingInformation_IEs_oms_1[] = { 0, 1 };
138 static const ber_tlv_tag_t asn_DEF_UERadioPagingInformation_IEs_tags_1[] = {
139         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
140 };
141 static const asn_TYPE_tag2member_t asn_MAP_UERadioPagingInformation_IEs_tag2el_1[] = {
142     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedBandListNRForPaging */
143     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nonCriticalExtension */
144 };
145 asn_SEQUENCE_specifics_t asn_SPC_UERadioPagingInformation_IEs_specs_1 = {
146         sizeof(struct UERadioPagingInformation_IEs),
147         offsetof(struct UERadioPagingInformation_IEs, _asn_ctx),
148         asn_MAP_UERadioPagingInformation_IEs_tag2el_1,
149         2,      /* Count of tags in the map */
150         asn_MAP_UERadioPagingInformation_IEs_oms_1,     /* Optional members */
151         2, 0,   /* Root/Additions */
152         -1,     /* First extension addition */
153 };
154 asn_TYPE_descriptor_t asn_DEF_UERadioPagingInformation_IEs = {
155         "UERadioPagingInformation-IEs",
156         "UERadioPagingInformation-IEs",
157         &asn_OP_SEQUENCE,
158         asn_DEF_UERadioPagingInformation_IEs_tags_1,
159         sizeof(asn_DEF_UERadioPagingInformation_IEs_tags_1)
160                 /sizeof(asn_DEF_UERadioPagingInformation_IEs_tags_1[0]), /* 1 */
161         asn_DEF_UERadioPagingInformation_IEs_tags_1,    /* Same as above */
162         sizeof(asn_DEF_UERadioPagingInformation_IEs_tags_1)
163                 /sizeof(asn_DEF_UERadioPagingInformation_IEs_tags_1[0]), /* 1 */
164         { 0, 0, SEQUENCE_constraint },
165         asn_MBR_UERadioPagingInformation_IEs_1,
166         2,      /* Elements count */
167         &asn_SPC_UERadioPagingInformation_IEs_specs_1   /* Additional specs */
168 };
169