160bd3e59cd74ea9d201a906d8f205a4c0f2f76a
[o-du/l2.git] / src / codec_utils / RRC / AffectedCarrierFreqCombInfoMRDC.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-InterNodeDefinitions"
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 "AffectedCarrierFreqCombInfoMRDC.h"
9
10 #include "AffectedCarrierFreqCombEUTRA.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 static asn_oer_constraints_t asn_OER_type_interferenceDirectionMRDC_constr_3 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_interferenceDirectionMRDC_constr_3 CC_NOTUSED = {
19         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
20         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
21         0, 0    /* No PER value map */
22 };
23 static const asn_INTEGER_enum_map_t asn_MAP_interferenceDirectionMRDC_value2enum_3[] = {
24         { 0,    8,      "eutra-nr" },
25         { 1,    2,      "nr" },
26         { 2,    5,      "other" },
27         { 3,    13,     "utra-nr-other" },
28         { 4,    8,      "nr-other" },
29         { 5,    6,      "spare3" },
30         { 6,    6,      "spare2" },
31         { 7,    6,      "spare1" }
32 };
33 static const unsigned int asn_MAP_interferenceDirectionMRDC_enum2value_3[] = {
34         0,      /* eutra-nr(0) */
35         1,      /* nr(1) */
36         4,      /* nr-other(4) */
37         2,      /* other(2) */
38         7,      /* spare1(7) */
39         6,      /* spare2(6) */
40         5,      /* spare3(5) */
41         3       /* utra-nr-other(3) */
42 };
43 static const asn_INTEGER_specifics_t asn_SPC_interferenceDirectionMRDC_specs_3 = {
44         asn_MAP_interferenceDirectionMRDC_value2enum_3, /* "tag" => N; sorted by tag */
45         asn_MAP_interferenceDirectionMRDC_enum2value_3, /* N => "tag"; sorted by N */
46         8,      /* Number of elements in the maps */
47         0,      /* Enumeration is not extensible */
48         1,      /* Strict enumeration */
49         0,      /* Native long size */
50         0
51 };
52 static const ber_tlv_tag_t asn_DEF_interferenceDirectionMRDC_tags_3[] = {
53         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
54         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
55 };
56 static /* Use -fall-defs-global to expose */
57 asn_TYPE_descriptor_t asn_DEF_interferenceDirectionMRDC_3 = {
58         "interferenceDirectionMRDC",
59         "interferenceDirectionMRDC",
60         &asn_OP_NativeEnumerated,
61         asn_DEF_interferenceDirectionMRDC_tags_3,
62         sizeof(asn_DEF_interferenceDirectionMRDC_tags_3)
63                 /sizeof(asn_DEF_interferenceDirectionMRDC_tags_3[0]) - 1, /* 1 */
64         asn_DEF_interferenceDirectionMRDC_tags_3,       /* Same as above */
65         sizeof(asn_DEF_interferenceDirectionMRDC_tags_3)
66                 /sizeof(asn_DEF_interferenceDirectionMRDC_tags_3[0]), /* 2 */
67         { &asn_OER_type_interferenceDirectionMRDC_constr_3, &asn_PER_type_interferenceDirectionMRDC_constr_3, NativeEnumerated_constraint },
68         0, 0,   /* Defined elsewhere */
69         &asn_SPC_interferenceDirectionMRDC_specs_3      /* Additional specs */
70 };
71
72 static asn_TYPE_member_t asn_MBR_affectedCarrierFreqCombMRDC_12[] = {
73         { ATF_POINTER, 1, offsetof(struct AffectedCarrierFreqCombInfoMRDC__affectedCarrierFreqCombMRDC, affectedCarrierFreqCombEUTRA),
74                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
75                 -1,     /* IMPLICIT tag at current level */
76                 &asn_DEF_AffectedCarrierFreqCombEUTRA,
77                 0,
78                 { 0, 0, 0 },
79                 0, 0, /* No default value */
80                 "affectedCarrierFreqCombEUTRA"
81                 },
82         { ATF_NOFLAGS, 0, offsetof(struct AffectedCarrierFreqCombInfoMRDC__affectedCarrierFreqCombMRDC, affectedCarrierFreqCombNR),
83                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
84                 -1,     /* IMPLICIT tag at current level */
85                 &asn_DEF_AffectedCarrierFreqCombNR,
86                 0,
87                 { 0, 0, 0 },
88                 0, 0, /* No default value */
89                 "affectedCarrierFreqCombNR"
90                 },
91 };
92 static const int asn_MAP_affectedCarrierFreqCombMRDC_oms_12[] = { 0 };
93 static const ber_tlv_tag_t asn_DEF_affectedCarrierFreqCombMRDC_tags_12[] = {
94         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
95         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
96 };
97 static const asn_TYPE_tag2member_t asn_MAP_affectedCarrierFreqCombMRDC_tag2el_12[] = {
98     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* affectedCarrierFreqCombEUTRA */
99     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* affectedCarrierFreqCombNR */
100 };
101 static asn_SEQUENCE_specifics_t asn_SPC_affectedCarrierFreqCombMRDC_specs_12 = {
102         sizeof(struct AffectedCarrierFreqCombInfoMRDC__affectedCarrierFreqCombMRDC),
103         offsetof(struct AffectedCarrierFreqCombInfoMRDC__affectedCarrierFreqCombMRDC, _asn_ctx),
104         asn_MAP_affectedCarrierFreqCombMRDC_tag2el_12,
105         2,      /* Count of tags in the map */
106         asn_MAP_affectedCarrierFreqCombMRDC_oms_12,     /* Optional members */
107         1, 0,   /* Root/Additions */
108         -1,     /* First extension addition */
109 };
110 static /* Use -fall-defs-global to expose */
111 asn_TYPE_descriptor_t asn_DEF_affectedCarrierFreqCombMRDC_12 = {
112         "affectedCarrierFreqCombMRDC",
113         "affectedCarrierFreqCombMRDC",
114         &asn_OP_SEQUENCE,
115         asn_DEF_affectedCarrierFreqCombMRDC_tags_12,
116         sizeof(asn_DEF_affectedCarrierFreqCombMRDC_tags_12)
117                 /sizeof(asn_DEF_affectedCarrierFreqCombMRDC_tags_12[0]) - 1, /* 1 */
118         asn_DEF_affectedCarrierFreqCombMRDC_tags_12,    /* Same as above */
119         sizeof(asn_DEF_affectedCarrierFreqCombMRDC_tags_12)
120                 /sizeof(asn_DEF_affectedCarrierFreqCombMRDC_tags_12[0]), /* 2 */
121         { 0, 0, SEQUENCE_constraint },
122         asn_MBR_affectedCarrierFreqCombMRDC_12,
123         2,      /* Elements count */
124         &asn_SPC_affectedCarrierFreqCombMRDC_specs_12   /* Additional specs */
125 };
126
127 asn_TYPE_member_t asn_MBR_AffectedCarrierFreqCombInfoMRDC_1[] = {
128         { ATF_NOFLAGS, 0, offsetof(struct AffectedCarrierFreqCombInfoMRDC, victimSystemType),
129                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
130                 -1,     /* IMPLICIT tag at current level */
131                 &asn_DEF_VictimSystemType,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "victimSystemType"
136                 },
137         { ATF_NOFLAGS, 0, offsetof(struct AffectedCarrierFreqCombInfoMRDC, interferenceDirectionMRDC),
138                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
139                 -1,     /* IMPLICIT tag at current level */
140                 &asn_DEF_interferenceDirectionMRDC_3,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "interferenceDirectionMRDC"
145                 },
146         { ATF_POINTER, 1, offsetof(struct AffectedCarrierFreqCombInfoMRDC, affectedCarrierFreqCombMRDC),
147                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
148                 0,
149                 &asn_DEF_affectedCarrierFreqCombMRDC_12,
150                 0,
151                 { 0, 0, 0 },
152                 0, 0, /* No default value */
153                 "affectedCarrierFreqCombMRDC"
154                 },
155 };
156 static const int asn_MAP_AffectedCarrierFreqCombInfoMRDC_oms_1[] = { 2 };
157 static const ber_tlv_tag_t asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1[] = {
158         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
159 };
160 static const asn_TYPE_tag2member_t asn_MAP_AffectedCarrierFreqCombInfoMRDC_tag2el_1[] = {
161     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* victimSystemType */
162     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* interferenceDirectionMRDC */
163     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* affectedCarrierFreqCombMRDC */
164 };
165 asn_SEQUENCE_specifics_t asn_SPC_AffectedCarrierFreqCombInfoMRDC_specs_1 = {
166         sizeof(struct AffectedCarrierFreqCombInfoMRDC),
167         offsetof(struct AffectedCarrierFreqCombInfoMRDC, _asn_ctx),
168         asn_MAP_AffectedCarrierFreqCombInfoMRDC_tag2el_1,
169         3,      /* Count of tags in the map */
170         asn_MAP_AffectedCarrierFreqCombInfoMRDC_oms_1,  /* Optional members */
171         1, 0,   /* Root/Additions */
172         -1,     /* First extension addition */
173 };
174 asn_TYPE_descriptor_t asn_DEF_AffectedCarrierFreqCombInfoMRDC = {
175         "AffectedCarrierFreqCombInfoMRDC",
176         "AffectedCarrierFreqCombInfoMRDC",
177         &asn_OP_SEQUENCE,
178         asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1,
179         sizeof(asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1)
180                 /sizeof(asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1[0]), /* 1 */
181         asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1, /* Same as above */
182         sizeof(asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1)
183                 /sizeof(asn_DEF_AffectedCarrierFreqCombInfoMRDC_tags_1[0]), /* 1 */
184         { 0, 0, SEQUENCE_constraint },
185         asn_MBR_AffectedCarrierFreqCombInfoMRDC_1,
186         3,      /* Elements count */
187         &asn_SPC_AffectedCarrierFreqCombInfoMRDC_specs_1        /* Additional specs */
188 };
189