[Epic-ID: ODUHIGH-464][Task-ID: ODUHIGH-483] Memeory related fix in FDD and TDD mode
[o-du/l2.git] / src / codec_utils / RRC / RadioLinkMonitoringRS.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 "RadioLinkMonitoringRS.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_purpose_constr_3 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_purpose_constr_3 CC_NOTUSED = {
18         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static asn_oer_constraints_t asn_OER_type_detectionResource_constr_7 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_detectionResource_constr_7 CC_NOTUSED = {
26         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
27         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
28         0, 0    /* No PER value map */
29 };
30 static const asn_INTEGER_enum_map_t asn_MAP_purpose_value2enum_3[] = {
31         { 0,    11,     "beamFailure" },
32         { 1,    3,      "rlf" },
33         { 2,    4,      "both" }
34 };
35 static const unsigned int asn_MAP_purpose_enum2value_3[] = {
36         0,      /* beamFailure(0) */
37         2,      /* both(2) */
38         1       /* rlf(1) */
39 };
40 static const asn_INTEGER_specifics_t asn_SPC_purpose_specs_3 = {
41         asn_MAP_purpose_value2enum_3,   /* "tag" => N; sorted by tag */
42         asn_MAP_purpose_enum2value_3,   /* N => "tag"; sorted by N */
43         3,      /* Number of elements in the maps */
44         0,      /* Enumeration is not extensible */
45         1,      /* Strict enumeration */
46         0,      /* Native long size */
47         0
48 };
49 static const ber_tlv_tag_t asn_DEF_purpose_tags_3[] = {
50         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
51         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
52 };
53 static /* Use -fall-defs-global to expose */
54 asn_TYPE_descriptor_t asn_DEF_purpose_3 = {
55         "purpose",
56         "purpose",
57         &asn_OP_NativeEnumerated,
58         asn_DEF_purpose_tags_3,
59         sizeof(asn_DEF_purpose_tags_3)
60                 /sizeof(asn_DEF_purpose_tags_3[0]) - 1, /* 1 */
61         asn_DEF_purpose_tags_3, /* Same as above */
62         sizeof(asn_DEF_purpose_tags_3)
63                 /sizeof(asn_DEF_purpose_tags_3[0]), /* 2 */
64         { &asn_OER_type_purpose_constr_3, &asn_PER_type_purpose_constr_3, NativeEnumerated_constraint },
65         0, 0,   /* Defined elsewhere */
66         &asn_SPC_purpose_specs_3        /* Additional specs */
67 };
68
69 static asn_TYPE_member_t asn_MBR_detectionResource_7[] = {
70         { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS__detectionResource, choice.ssb_Index),
71                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_SSB_Index,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "ssb-Index"
78                 },
79         { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS__detectionResource, choice.csi_RS_Index),
80                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
81                 -1,     /* IMPLICIT tag at current level */
82                 &asn_DEF_NZP_CSI_RS_ResourceId,
83                 0,
84                 { 0, 0, 0 },
85                 0, 0, /* No default value */
86                 "csi-RS-Index"
87                 },
88 };
89 static const asn_TYPE_tag2member_t asn_MAP_detectionResource_tag2el_7[] = {
90     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index */
91     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RS-Index */
92 };
93 static asn_CHOICE_specifics_t asn_SPC_detectionResource_specs_7 = {
94         sizeof(struct RadioLinkMonitoringRS__detectionResource),
95         offsetof(struct RadioLinkMonitoringRS__detectionResource, _asn_ctx),
96         offsetof(struct RadioLinkMonitoringRS__detectionResource, present),
97         sizeof(((struct RadioLinkMonitoringRS__detectionResource *)0)->present),
98         asn_MAP_detectionResource_tag2el_7,
99         2,      /* Count of tags in the map */
100         0, 0,
101         -1      /* Extensions start */
102 };
103 static /* Use -fall-defs-global to expose */
104 asn_TYPE_descriptor_t asn_DEF_detectionResource_7 = {
105         "detectionResource",
106         "detectionResource",
107         &asn_OP_CHOICE,
108         0,      /* No effective tags (pointer) */
109         0,      /* No effective tags (count) */
110         0,      /* No tags (pointer) */
111         0,      /* No tags (count) */
112         { &asn_OER_type_detectionResource_constr_7, &asn_PER_type_detectionResource_constr_7, CHOICE_constraint },
113         asn_MBR_detectionResource_7,
114         2,      /* Elements count */
115         &asn_SPC_detectionResource_specs_7      /* Additional specs */
116 };
117
118 asn_TYPE_member_t asn_MBR_RadioLinkMonitoringRS_1[] = {
119         { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, radioLinkMonitoringRS_Id),
120                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
121                 -1,     /* IMPLICIT tag at current level */
122                 &asn_DEF_RadioLinkMonitoringRS_Id,
123                 0,
124                 { 0, 0, 0 },
125                 0, 0, /* No default value */
126                 "radioLinkMonitoringRS-Id"
127                 },
128         { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, purpose),
129                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
130                 -1,     /* IMPLICIT tag at current level */
131                 &asn_DEF_purpose_3,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "purpose"
136                 },
137         { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, detectionResource),
138                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
139                 +1,     /* EXPLICIT tag at current level */
140                 &asn_DEF_detectionResource_7,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "detectionResource"
145                 },
146 };
147 static const ber_tlv_tag_t asn_DEF_RadioLinkMonitoringRS_tags_1[] = {
148         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
149 };
150 static const asn_TYPE_tag2member_t asn_MAP_RadioLinkMonitoringRS_tag2el_1[] = {
151     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioLinkMonitoringRS-Id */
152     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* purpose */
153     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* detectionResource */
154 };
155 asn_SEQUENCE_specifics_t asn_SPC_RadioLinkMonitoringRS_specs_1 = {
156         sizeof(struct RadioLinkMonitoringRS),
157         offsetof(struct RadioLinkMonitoringRS, _asn_ctx),
158         asn_MAP_RadioLinkMonitoringRS_tag2el_1,
159         3,      /* Count of tags in the map */
160         0, 0, 0,        /* Optional elements (not needed) */
161         3,      /* First extension addition */
162 };
163 asn_TYPE_descriptor_t asn_DEF_RadioLinkMonitoringRS = {
164         "RadioLinkMonitoringRS",
165         "RadioLinkMonitoringRS",
166         &asn_OP_SEQUENCE,
167         asn_DEF_RadioLinkMonitoringRS_tags_1,
168         sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1)
169                 /sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1[0]), /* 1 */
170         asn_DEF_RadioLinkMonitoringRS_tags_1,   /* Same as above */
171         sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1)
172                 /sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1[0]), /* 1 */
173         { 0, 0, SEQUENCE_constraint },
174         asn_MBR_RadioLinkMonitoringRS_1,
175         3,      /* Elements count */
176         &asn_SPC_RadioLinkMonitoringRS_specs_1  /* Additional specs */
177 };
178