[Epic-ID: ODUHIGH-464][Task-ID: ODUHIGH-483] Memeory related fix in FDD and TDD mode
[o-du/l2.git] / src / codec_utils / RRC / RadioBearerConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../ASN1_Input/rrc_15_3_asn.asn1"
5  *      `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
6  */
7
8 #include "RadioBearerConfig.h"
9
10 #include "SRB-ToAddModList.h"
11 #include "DRB-ToAddModList.h"
12 #include "DRB-ToReleaseList.h"
13 #include "SecurityConfig.h"
14 /*
15  * This type is implemented using NativeEnumerated,
16  * so here we adjust the DEF accordingly.
17  */
18 static asn_oer_constraints_t asn_OER_type_srb3_ToRelease_constr_3 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_srb3_ToRelease_constr_3 CC_NOTUSED = {
22         { APC_CONSTRAINED,       0,  0,  0,  0 }        /* (0..0) */,
23         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
24         0, 0    /* No PER value map */
25 };
26 static const asn_INTEGER_enum_map_t asn_MAP_srb3_ToRelease_value2enum_3[] = {
27         { 0,    4,      "true" }
28 };
29 static const unsigned int asn_MAP_srb3_ToRelease_enum2value_3[] = {
30         0       /* true(0) */
31 };
32 static const asn_INTEGER_specifics_t asn_SPC_srb3_ToRelease_specs_3 = {
33         asn_MAP_srb3_ToRelease_value2enum_3,    /* "tag" => N; sorted by tag */
34         asn_MAP_srb3_ToRelease_enum2value_3,    /* N => "tag"; sorted by N */
35         1,      /* Number of elements in the maps */
36         0,      /* Enumeration is not extensible */
37         1,      /* Strict enumeration */
38         0,      /* Native long size */
39         0
40 };
41 static const ber_tlv_tag_t asn_DEF_srb3_ToRelease_tags_3[] = {
42         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
43         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
44 };
45 static /* Use -fall-defs-global to expose */
46 asn_TYPE_descriptor_t asn_DEF_srb3_ToRelease_3 = {
47         "srb3-ToRelease",
48         "srb3-ToRelease",
49         &asn_OP_NativeEnumerated,
50         asn_DEF_srb3_ToRelease_tags_3,
51         sizeof(asn_DEF_srb3_ToRelease_tags_3)
52                 /sizeof(asn_DEF_srb3_ToRelease_tags_3[0]) - 1, /* 1 */
53         asn_DEF_srb3_ToRelease_tags_3,  /* Same as above */
54         sizeof(asn_DEF_srb3_ToRelease_tags_3)
55                 /sizeof(asn_DEF_srb3_ToRelease_tags_3[0]), /* 2 */
56         { &asn_OER_type_srb3_ToRelease_constr_3, &asn_PER_type_srb3_ToRelease_constr_3, NativeEnumerated_constraint },
57         0, 0,   /* Defined elsewhere */
58         &asn_SPC_srb3_ToRelease_specs_3 /* Additional specs */
59 };
60
61 asn_TYPE_member_t asn_MBR_RadioBearerConfig_1[] = {
62         { ATF_POINTER, 5, offsetof(struct RadioBearerConfig, srb_ToAddModList),
63                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
64                 -1,     /* IMPLICIT tag at current level */
65                 &asn_DEF_SRB_ToAddModList,
66                 0,
67                 { 0, 0, 0 },
68                 0, 0, /* No default value */
69                 "srb-ToAddModList"
70                 },
71         { ATF_POINTER, 4, offsetof(struct RadioBearerConfig, srb3_ToRelease),
72                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
73                 -1,     /* IMPLICIT tag at current level */
74                 &asn_DEF_srb3_ToRelease_3,
75                 0,
76                 { 0, 0, 0 },
77                 0, 0, /* No default value */
78                 "srb3-ToRelease"
79                 },
80         { ATF_POINTER, 3, offsetof(struct RadioBearerConfig, drb_ToAddModList),
81                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
82                 -1,     /* IMPLICIT tag at current level */
83                 &asn_DEF_DRB_ToAddModList,
84                 0,
85                 { 0, 0, 0 },
86                 0, 0, /* No default value */
87                 "drb-ToAddModList"
88                 },
89         { ATF_POINTER, 2, offsetof(struct RadioBearerConfig, drb_ToReleaseList),
90                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
91                 -1,     /* IMPLICIT tag at current level */
92                 &asn_DEF_DRB_ToReleaseList,
93                 0,
94                 { 0, 0, 0 },
95                 0, 0, /* No default value */
96                 "drb-ToReleaseList"
97                 },
98         { ATF_POINTER, 1, offsetof(struct RadioBearerConfig, securityConfig),
99                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
100                 -1,     /* IMPLICIT tag at current level */
101                 &asn_DEF_SecurityConfig,
102                 0,
103                 { 0, 0, 0 },
104                 0, 0, /* No default value */
105                 "securityConfig"
106                 },
107 };
108 static const int asn_MAP_RadioBearerConfig_oms_1[] = { 0, 1, 2, 3, 4 };
109 static const ber_tlv_tag_t asn_DEF_RadioBearerConfig_tags_1[] = {
110         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
111 };
112 static const asn_TYPE_tag2member_t asn_MAP_RadioBearerConfig_tag2el_1[] = {
113     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* srb-ToAddModList */
114     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* srb3-ToRelease */
115     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* drb-ToAddModList */
116     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* drb-ToReleaseList */
117     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* securityConfig */
118 };
119 asn_SEQUENCE_specifics_t asn_SPC_RadioBearerConfig_specs_1 = {
120         sizeof(struct RadioBearerConfig),
121         offsetof(struct RadioBearerConfig, _asn_ctx),
122         asn_MAP_RadioBearerConfig_tag2el_1,
123         5,      /* Count of tags in the map */
124         asn_MAP_RadioBearerConfig_oms_1,        /* Optional members */
125         5, 0,   /* Root/Additions */
126         5,      /* First extension addition */
127 };
128 asn_TYPE_descriptor_t asn_DEF_RadioBearerConfig = {
129         "RadioBearerConfig",
130         "RadioBearerConfig",
131         &asn_OP_SEQUENCE,
132         asn_DEF_RadioBearerConfig_tags_1,
133         sizeof(asn_DEF_RadioBearerConfig_tags_1)
134                 /sizeof(asn_DEF_RadioBearerConfig_tags_1[0]), /* 1 */
135         asn_DEF_RadioBearerConfig_tags_1,       /* Same as above */
136         sizeof(asn_DEF_RadioBearerConfig_tags_1)
137                 /sizeof(asn_DEF_RadioBearerConfig_tags_1[0]), /* 1 */
138         { 0, 0, SEQUENCE_constraint },
139         asn_MBR_RadioBearerConfig_1,
140         5,      /* Elements count */
141         &asn_SPC_RadioBearerConfig_specs_1      /* Additional specs */
142 };
143