[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RRCReconfiguration-IEs.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 "RRCReconfiguration-IEs.h"
9
10 #include "RadioBearerConfig.h"
11 #include "MeasConfigRrc.h"
12 #include "RRCReconfiguration-v1530-IEs.h"
13 static int
14 memb_secondaryCellGroup_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
15                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
17         
18         if(!sptr) {
19                 ASN__CTFAIL(app_key, td, sptr,
20                         "%s: value not given (%s:%d)",
21                         td->name, __FILE__, __LINE__);
22                 return -1;
23         }
24         
25         
26         if(1 /* No applicable constraints whatsoever */) {
27                 (void)st; /* Unused variable */
28                 /* Nothing is here. See below */
29         }
30         
31         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
32 }
33
34 static asn_oer_constraints_t asn_OER_memb_secondaryCellGroup_constr_3 CC_NOTUSED = {
35         { 0, 0 },
36         -1      /* (SIZE(0..MAX)) */};
37 static asn_per_constraints_t asn_PER_memb_secondaryCellGroup_constr_3 CC_NOTUSED = {
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
40         0, 0    /* No PER value map */
41 };
42 asn_TYPE_member_t asn_MBR_RRCReconfiguration_IEs_1[] = {
43         { ATF_POINTER, 5, offsetof(struct RRCReconfiguration_IEs, radioBearerConfig),
44                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
45                 -1,     /* IMPLICIT tag at current level */
46                 &asn_DEF_RadioBearerConfig,
47                 0,
48                 { 0, 0, 0 },
49                 0, 0, /* No default value */
50                 "radioBearerConfig"
51                 },
52         { ATF_POINTER, 4, offsetof(struct RRCReconfiguration_IEs, secondaryCellGroup),
53                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
54                 -1,     /* IMPLICIT tag at current level */
55                 &asn_DEF_OCTET_STRING,
56                 0,
57                 { &asn_OER_memb_secondaryCellGroup_constr_3, &asn_PER_memb_secondaryCellGroup_constr_3,  memb_secondaryCellGroup_constraint_1 },
58                 0, 0, /* No default value */
59                 "secondaryCellGroup"
60                 },
61         { ATF_POINTER, 3, offsetof(struct RRCReconfiguration_IEs, measConfig),
62                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
63                 -1,     /* IMPLICIT tag at current level */
64                 &asn_DEF_MeasConfigRrc,
65                 0,
66                 { 0, 0, 0 },
67                 0, 0, /* No default value */
68                 "measConfig"
69                 },
70         { ATF_POINTER, 2, offsetof(struct RRCReconfiguration_IEs, lateNonCriticalExtension),
71                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_OCTET_STRING,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "lateNonCriticalExtension"
78                 },
79         { ATF_POINTER, 1, offsetof(struct RRCReconfiguration_IEs, nonCriticalExtension),
80                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
81                 -1,     /* IMPLICIT tag at current level */
82                 &asn_DEF_RRCReconfiguration_v1530_IEs,
83                 0,
84                 { 0, 0, 0 },
85                 0, 0, /* No default value */
86                 "nonCriticalExtension"
87                 },
88 };
89 static const int asn_MAP_RRCReconfiguration_IEs_oms_1[] = { 0, 1, 2, 3, 4 };
90 static const ber_tlv_tag_t asn_DEF_RRCReconfiguration_IEs_tags_1[] = {
91         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
92 };
93 static const asn_TYPE_tag2member_t asn_MAP_RRCReconfiguration_IEs_tag2el_1[] = {
94     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioBearerConfig */
95     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* secondaryCellGroup */
96     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measConfig */
97     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* lateNonCriticalExtension */
98     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nonCriticalExtension */
99 };
100 asn_SEQUENCE_specifics_t asn_SPC_RRCReconfiguration_IEs_specs_1 = {
101         sizeof(struct RRCReconfiguration_IEs),
102         offsetof(struct RRCReconfiguration_IEs, _asn_ctx),
103         asn_MAP_RRCReconfiguration_IEs_tag2el_1,
104         5,      /* Count of tags in the map */
105         asn_MAP_RRCReconfiguration_IEs_oms_1,   /* Optional members */
106         5, 0,   /* Root/Additions */
107         -1,     /* First extension addition */
108 };
109 asn_TYPE_descriptor_t asn_DEF_RRCReconfiguration_IEs = {
110         "RRCReconfiguration-IEs",
111         "RRCReconfiguration-IEs",
112         &asn_OP_SEQUENCE,
113         asn_DEF_RRCReconfiguration_IEs_tags_1,
114         sizeof(asn_DEF_RRCReconfiguration_IEs_tags_1)
115                 /sizeof(asn_DEF_RRCReconfiguration_IEs_tags_1[0]), /* 1 */
116         asn_DEF_RRCReconfiguration_IEs_tags_1,  /* Same as above */
117         sizeof(asn_DEF_RRCReconfiguration_IEs_tags_1)
118                 /sizeof(asn_DEF_RRCReconfiguration_IEs_tags_1[0]), /* 1 */
119         { 0, 0, SEQUENCE_constraint },
120         asn_MBR_RRCReconfiguration_IEs_1,
121         5,      /* Elements count */
122         &asn_SPC_RRCReconfiguration_IEs_specs_1 /* Additional specs */
123 };
124