54f791943b56b4df0593a0849841e10a6890b2fa
[o-du/l2.git] / src / codec_utils / RRC / SRB-ToAddMod.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "SRB-ToAddMod.h"
9
10 #include "PDCP-Config.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 /*
16  * This type is implemented using NativeEnumerated,
17  * so here we adjust the DEF accordingly.
18  */
19 static asn_oer_constraints_t asn_OER_type_reestablishPDCP_constr_3 CC_NOTUSED = {
20         { 0, 0 },
21         -1};
22 static asn_per_constraints_t asn_PER_type_reestablishPDCP_constr_3 CC_NOTUSED = {
23         { APC_CONSTRAINED,       0,  0,  0,  0 }        /* (0..0) */,
24         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
25         0, 0    /* No PER value map */
26 };
27 static asn_oer_constraints_t asn_OER_type_discardOnPDCP_constr_5 CC_NOTUSED = {
28         { 0, 0 },
29         -1};
30 static asn_per_constraints_t asn_PER_type_discardOnPDCP_constr_5 CC_NOTUSED = {
31         { APC_CONSTRAINED,       0,  0,  0,  0 }        /* (0..0) */,
32         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
33         0, 0    /* No PER value map */
34 };
35 static const asn_INTEGER_enum_map_t asn_MAP_reestablishPDCP_value2enum_3[] = {
36         { 0,    4,      "true" }
37 };
38 static const unsigned int asn_MAP_reestablishPDCP_enum2value_3[] = {
39         0       /* true(0) */
40 };
41 static const asn_INTEGER_specifics_t asn_SPC_reestablishPDCP_specs_3 = {
42         asn_MAP_reestablishPDCP_value2enum_3,   /* "tag" => N; sorted by tag */
43         asn_MAP_reestablishPDCP_enum2value_3,   /* N => "tag"; sorted by N */
44         1,      /* Number of elements in the maps */
45         0,      /* Enumeration is not extensible */
46         1,      /* Strict enumeration */
47         0,      /* Native long size */
48         0
49 };
50 static const ber_tlv_tag_t asn_DEF_reestablishPDCP_tags_3[] = {
51         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
52         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
53 };
54 static /* Use -fall-defs-global to expose */
55 asn_TYPE_descriptor_t asn_DEF_reestablishPDCP_3 = {
56         "reestablishPDCP",
57         "reestablishPDCP",
58         &asn_OP_NativeEnumerated,
59         asn_DEF_reestablishPDCP_tags_3,
60         sizeof(asn_DEF_reestablishPDCP_tags_3)
61                 /sizeof(asn_DEF_reestablishPDCP_tags_3[0]) - 1, /* 1 */
62         asn_DEF_reestablishPDCP_tags_3, /* Same as above */
63         sizeof(asn_DEF_reestablishPDCP_tags_3)
64                 /sizeof(asn_DEF_reestablishPDCP_tags_3[0]), /* 2 */
65         { &asn_OER_type_reestablishPDCP_constr_3, &asn_PER_type_reestablishPDCP_constr_3, NativeEnumerated_constraint },
66         0, 0,   /* Defined elsewhere */
67         &asn_SPC_reestablishPDCP_specs_3        /* Additional specs */
68 };
69
70 static const asn_INTEGER_enum_map_t asn_MAP_discardOnPDCP_value2enum_5[] = {
71         { 0,    4,      "true" }
72 };
73 static const unsigned int asn_MAP_discardOnPDCP_enum2value_5[] = {
74         0       /* true(0) */
75 };
76 static const asn_INTEGER_specifics_t asn_SPC_discardOnPDCP_specs_5 = {
77         asn_MAP_discardOnPDCP_value2enum_5,     /* "tag" => N; sorted by tag */
78         asn_MAP_discardOnPDCP_enum2value_5,     /* N => "tag"; sorted by N */
79         1,      /* Number of elements in the maps */
80         0,      /* Enumeration is not extensible */
81         1,      /* Strict enumeration */
82         0,      /* Native long size */
83         0
84 };
85 static const ber_tlv_tag_t asn_DEF_discardOnPDCP_tags_5[] = {
86         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
87         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
88 };
89 static /* Use -fall-defs-global to expose */
90 asn_TYPE_descriptor_t asn_DEF_discardOnPDCP_5 = {
91         "discardOnPDCP",
92         "discardOnPDCP",
93         &asn_OP_NativeEnumerated,
94         asn_DEF_discardOnPDCP_tags_5,
95         sizeof(asn_DEF_discardOnPDCP_tags_5)
96                 /sizeof(asn_DEF_discardOnPDCP_tags_5[0]) - 1, /* 1 */
97         asn_DEF_discardOnPDCP_tags_5,   /* Same as above */
98         sizeof(asn_DEF_discardOnPDCP_tags_5)
99                 /sizeof(asn_DEF_discardOnPDCP_tags_5[0]), /* 2 */
100         { &asn_OER_type_discardOnPDCP_constr_5, &asn_PER_type_discardOnPDCP_constr_5, NativeEnumerated_constraint },
101         0, 0,   /* Defined elsewhere */
102         &asn_SPC_discardOnPDCP_specs_5  /* Additional specs */
103 };
104
105 asn_TYPE_member_t asn_MBR_SRB_ToAddMod_1[] = {
106         { ATF_NOFLAGS, 0, offsetof(struct SRB_ToAddMod, srb_Identity),
107                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
108                 -1,     /* IMPLICIT tag at current level */
109                 &asn_DEF_SRB_Identity,
110                 0,
111                 { 0, 0, 0 },
112                 0, 0, /* No default value */
113                 "srb-Identity"
114                 },
115         { ATF_POINTER, 3, offsetof(struct SRB_ToAddMod, reestablishPDCP),
116                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
117                 -1,     /* IMPLICIT tag at current level */
118                 &asn_DEF_reestablishPDCP_3,
119                 0,
120                 { 0, 0, 0 },
121                 0, 0, /* No default value */
122                 "reestablishPDCP"
123                 },
124         { ATF_POINTER, 2, offsetof(struct SRB_ToAddMod, discardOnPDCP),
125                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
126                 -1,     /* IMPLICIT tag at current level */
127                 &asn_DEF_discardOnPDCP_5,
128                 0,
129                 { 0, 0, 0 },
130                 0, 0, /* No default value */
131                 "discardOnPDCP"
132                 },
133         { ATF_POINTER, 1, offsetof(struct SRB_ToAddMod, pdcp_Config),
134                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
135                 -1,     /* IMPLICIT tag at current level */
136                 &asn_DEF_PDCP_Config,
137                 0,
138                 { 0, 0, 0 },
139                 0, 0, /* No default value */
140                 "pdcp-Config"
141                 },
142 };
143 static const int asn_MAP_SRB_ToAddMod_oms_1[] = { 1, 2, 3 };
144 static const ber_tlv_tag_t asn_DEF_SRB_ToAddMod_tags_1[] = {
145         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
146 };
147 static const asn_TYPE_tag2member_t asn_MAP_SRB_ToAddMod_tag2el_1[] = {
148     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* srb-Identity */
149     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reestablishPDCP */
150     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* discardOnPDCP */
151     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pdcp-Config */
152 };
153 asn_SEQUENCE_specifics_t asn_SPC_SRB_ToAddMod_specs_1 = {
154         sizeof(struct SRB_ToAddMod),
155         offsetof(struct SRB_ToAddMod, _asn_ctx),
156         asn_MAP_SRB_ToAddMod_tag2el_1,
157         4,      /* Count of tags in the map */
158         asn_MAP_SRB_ToAddMod_oms_1,     /* Optional members */
159         3, 0,   /* Root/Additions */
160         4,      /* First extension addition */
161 };
162 asn_TYPE_descriptor_t asn_DEF_SRB_ToAddMod = {
163         "SRB-ToAddMod",
164         "SRB-ToAddMod",
165         &asn_OP_SEQUENCE,
166         asn_DEF_SRB_ToAddMod_tags_1,
167         sizeof(asn_DEF_SRB_ToAddMod_tags_1)
168                 /sizeof(asn_DEF_SRB_ToAddMod_tags_1[0]), /* 1 */
169         asn_DEF_SRB_ToAddMod_tags_1,    /* Same as above */
170         sizeof(asn_DEF_SRB_ToAddMod_tags_1)
171                 /sizeof(asn_DEF_SRB_ToAddMod_tags_1[0]), /* 1 */
172         { 0, 0, SEQUENCE_constraint },
173         asn_MBR_SRB_ToAddMod_1,
174         4,      /* Elements count */
175         &asn_SPC_SRB_ToAddMod_specs_1   /* Additional specs */
176 };
177