[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RLC-BearerConfig.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 "RLC-BearerConfig.h"
9
10 #include "RLC-Config.h"
11 #include "LogicalChannelConfig.h"
12 /*
13  * This type is implemented using NativeEnumerated,
14  * so here we adjust the DEF accordingly.
15  */
16 static asn_oer_constraints_t asn_OER_type_servedRadioBearer_constr_3 CC_NOTUSED = {
17         { 0, 0 },
18         -1};
19 static asn_per_constraints_t asn_PER_type_servedRadioBearer_constr_3 CC_NOTUSED = {
20         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
21         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
22         0, 0    /* No PER value map */
23 };
24 static asn_oer_constraints_t asn_OER_type_reestablishRLC_constr_6 CC_NOTUSED = {
25         { 0, 0 },
26         -1};
27 static asn_per_constraints_t asn_PER_type_reestablishRLC_constr_6 CC_NOTUSED = {
28         { APC_CONSTRAINED,       0,  0,  0,  0 }        /* (0..0) */,
29         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
30         0, 0    /* No PER value map */
31 };
32 static asn_TYPE_member_t asn_MBR_servedRadioBearer_3[] = {
33         { ATF_NOFLAGS, 0, offsetof(struct RLC_BearerConfig__servedRadioBearer, choice.srb_Identity),
34                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
35                 -1,     /* IMPLICIT tag at current level */
36                 &asn_DEF_SRB_Identity,
37                 0,
38                 { 0, 0, 0 },
39                 0, 0, /* No default value */
40                 "srb-Identity"
41                 },
42         { ATF_NOFLAGS, 0, offsetof(struct RLC_BearerConfig__servedRadioBearer, choice.drb_Identity),
43                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
44                 -1,     /* IMPLICIT tag at current level */
45                 &asn_DEF_DRB_Identity,
46                 0,
47                 { 0, 0, 0 },
48                 0, 0, /* No default value */
49                 "drb-Identity"
50                 },
51 };
52 static const asn_TYPE_tag2member_t asn_MAP_servedRadioBearer_tag2el_3[] = {
53     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* srb-Identity */
54     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* drb-Identity */
55 };
56 static asn_CHOICE_specifics_t asn_SPC_servedRadioBearer_specs_3 = {
57         sizeof(struct RLC_BearerConfig__servedRadioBearer),
58         offsetof(struct RLC_BearerConfig__servedRadioBearer, _asn_ctx),
59         offsetof(struct RLC_BearerConfig__servedRadioBearer, present),
60         sizeof(((struct RLC_BearerConfig__servedRadioBearer *)0)->present),
61         asn_MAP_servedRadioBearer_tag2el_3,
62         2,      /* Count of tags in the map */
63         0, 0,
64         -1      /* Extensions start */
65 };
66 static /* Use -fall-defs-global to expose */
67 asn_TYPE_descriptor_t asn_DEF_servedRadioBearer_3 = {
68         "servedRadioBearer",
69         "servedRadioBearer",
70         &asn_OP_CHOICE,
71         0,      /* No effective tags (pointer) */
72         0,      /* No effective tags (count) */
73         0,      /* No tags (pointer) */
74         0,      /* No tags (count) */
75         { &asn_OER_type_servedRadioBearer_constr_3, &asn_PER_type_servedRadioBearer_constr_3, CHOICE_constraint },
76         asn_MBR_servedRadioBearer_3,
77         2,      /* Elements count */
78         &asn_SPC_servedRadioBearer_specs_3      /* Additional specs */
79 };
80
81 static const asn_INTEGER_enum_map_t asn_MAP_reestablishRLC_value2enum_6[] = {
82         { 0,    4,      "true" }
83 };
84 static const unsigned int asn_MAP_reestablishRLC_enum2value_6[] = {
85         0       /* true(0) */
86 };
87 static const asn_INTEGER_specifics_t asn_SPC_reestablishRLC_specs_6 = {
88         asn_MAP_reestablishRLC_value2enum_6,    /* "tag" => N; sorted by tag */
89         asn_MAP_reestablishRLC_enum2value_6,    /* N => "tag"; sorted by N */
90         1,      /* Number of elements in the maps */
91         0,      /* Enumeration is not extensible */
92         1,      /* Strict enumeration */
93         0,      /* Native long size */
94         0
95 };
96 static const ber_tlv_tag_t asn_DEF_reestablishRLC_tags_6[] = {
97         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
98         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
99 };
100 static /* Use -fall-defs-global to expose */
101 asn_TYPE_descriptor_t asn_DEF_reestablishRLC_6 = {
102         "reestablishRLC",
103         "reestablishRLC",
104         &asn_OP_NativeEnumerated,
105         asn_DEF_reestablishRLC_tags_6,
106         sizeof(asn_DEF_reestablishRLC_tags_6)
107                 /sizeof(asn_DEF_reestablishRLC_tags_6[0]) - 1, /* 1 */
108         asn_DEF_reestablishRLC_tags_6,  /* Same as above */
109         sizeof(asn_DEF_reestablishRLC_tags_6)
110                 /sizeof(asn_DEF_reestablishRLC_tags_6[0]), /* 2 */
111         { &asn_OER_type_reestablishRLC_constr_6, &asn_PER_type_reestablishRLC_constr_6, NativeEnumerated_constraint },
112         0, 0,   /* Defined elsewhere */
113         &asn_SPC_reestablishRLC_specs_6 /* Additional specs */
114 };
115
116 asn_TYPE_member_t asn_MBR_RLC_BearerConfig_1[] = {
117         { ATF_NOFLAGS, 0, offsetof(struct RLC_BearerConfig, logicalChannelIdentity),
118                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
119                 -1,     /* IMPLICIT tag at current level */
120                 &asn_DEF_LogicalChannelIdentity,
121                 0,
122                 { 0, 0, 0 },
123                 0, 0, /* No default value */
124                 "logicalChannelIdentity"
125                 },
126         { ATF_POINTER, 4, offsetof(struct RLC_BearerConfig, servedRadioBearer),
127                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
128                 +1,     /* EXPLICIT tag at current level */
129                 &asn_DEF_servedRadioBearer_3,
130                 0,
131                 { 0, 0, 0 },
132                 0, 0, /* No default value */
133                 "servedRadioBearer"
134                 },
135         { ATF_POINTER, 3, offsetof(struct RLC_BearerConfig, reestablishRLC),
136                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
137                 -1,     /* IMPLICIT tag at current level */
138                 &asn_DEF_reestablishRLC_6,
139                 0,
140                 { 0, 0, 0 },
141                 0, 0, /* No default value */
142                 "reestablishRLC"
143                 },
144         { ATF_POINTER, 2, offsetof(struct RLC_BearerConfig, rlc_Config),
145                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
146                 +1,     /* EXPLICIT tag at current level */
147                 &asn_DEF_RLC_Config,
148                 0,
149                 { 0, 0, 0 },
150                 0, 0, /* No default value */
151                 "rlc-Config"
152                 },
153         { ATF_POINTER, 1, offsetof(struct RLC_BearerConfig, mac_LogicalChannelConfig),
154                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
155                 -1,     /* IMPLICIT tag at current level */
156                 &asn_DEF_LogicalChannelConfig,
157                 0,
158                 { 0, 0, 0 },
159                 0, 0, /* No default value */
160                 "mac-LogicalChannelConfig"
161                 },
162 };
163 static const int asn_MAP_RLC_BearerConfig_oms_1[] = { 1, 2, 3, 4 };
164 static const ber_tlv_tag_t asn_DEF_RLC_BearerConfig_tags_1[] = {
165         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
166 };
167 static const asn_TYPE_tag2member_t asn_MAP_RLC_BearerConfig_tag2el_1[] = {
168     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* logicalChannelIdentity */
169     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* servedRadioBearer */
170     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reestablishRLC */
171     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rlc-Config */
172     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* mac-LogicalChannelConfig */
173 };
174 asn_SEQUENCE_specifics_t asn_SPC_RLC_BearerConfig_specs_1 = {
175         sizeof(struct RLC_BearerConfig),
176         offsetof(struct RLC_BearerConfig, _asn_ctx),
177         asn_MAP_RLC_BearerConfig_tag2el_1,
178         5,      /* Count of tags in the map */
179         asn_MAP_RLC_BearerConfig_oms_1, /* Optional members */
180         4, 0,   /* Root/Additions */
181         5,      /* First extension addition */
182 };
183 asn_TYPE_descriptor_t asn_DEF_RLC_BearerConfig = {
184         "RLC-BearerConfig",
185         "RLC-BearerConfig",
186         &asn_OP_SEQUENCE,
187         asn_DEF_RLC_BearerConfig_tags_1,
188         sizeof(asn_DEF_RLC_BearerConfig_tags_1)
189                 /sizeof(asn_DEF_RLC_BearerConfig_tags_1[0]), /* 1 */
190         asn_DEF_RLC_BearerConfig_tags_1,        /* Same as above */
191         sizeof(asn_DEF_RLC_BearerConfig_tags_1)
192                 /sizeof(asn_DEF_RLC_BearerConfig_tags_1[0]), /* 1 */
193         { 0, 0, SEQUENCE_constraint },
194         asn_MBR_RLC_BearerConfig_1,
195         5,      /* Elements count */
196         &asn_SPC_RLC_BearerConfig_specs_1       /* Additional specs */
197 };
198