[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / UL-CCCH1-MessageType.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "UL-CCCH1-MessageType.h"
9
10 #include "RRCResumeRequest1.h"
11 static asn_oer_constraints_t asn_OER_type_c1_constr_2 CC_NOTUSED = {
12         { 0, 0 },
13         -1};
14 static asn_per_constraints_t asn_PER_type_c1_constr_2 CC_NOTUSED = {
15         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
16         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
17         0, 0    /* No PER value map */
18 };
19 static asn_oer_constraints_t asn_OER_type_UL_CCCH1_MessageType_constr_1 CC_NOTUSED = {
20         { 0, 0 },
21         -1};
22 asn_per_constraints_t asn_PER_type_UL_CCCH1_MessageType_constr_1 CC_NOTUSED = {
23         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
24         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
25         0, 0    /* No PER value map */
26 };
27 static asn_TYPE_member_t asn_MBR_c1_2[] = {
28         { ATF_POINTER, 0, offsetof(struct UL_CCCH1_MessageType__c1, choice.rrcResumeRequest1),
29                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30                 -1,     /* IMPLICIT tag at current level */
31                 &asn_DEF_RRCResumeRequest1,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "rrcResumeRequest1"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct UL_CCCH1_MessageType__c1, choice.spare3),
38                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39                 -1,     /* IMPLICIT tag at current level */
40                 &asn_DEF_NULL,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "spare3"
45                 },
46         { ATF_NOFLAGS, 0, offsetof(struct UL_CCCH1_MessageType__c1, choice.spare2),
47                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
48                 -1,     /* IMPLICIT tag at current level */
49                 &asn_DEF_NULL,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "spare2"
54                 },
55         { ATF_NOFLAGS, 0, offsetof(struct UL_CCCH1_MessageType__c1, choice.spare1),
56                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
57                 -1,     /* IMPLICIT tag at current level */
58                 &asn_DEF_NULL,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 "spare1"
63                 },
64 };
65 static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_2[] = {
66     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rrcResumeRequest1 */
67     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* spare3 */
68     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* spare2 */
69     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* spare1 */
70 };
71 static asn_CHOICE_specifics_t asn_SPC_c1_specs_2 = {
72         sizeof(struct UL_CCCH1_MessageType__c1),
73         offsetof(struct UL_CCCH1_MessageType__c1, _asn_ctx),
74         offsetof(struct UL_CCCH1_MessageType__c1, present),
75         sizeof(((struct UL_CCCH1_MessageType__c1 *)0)->present),
76         asn_MAP_c1_tag2el_2,
77         4,      /* Count of tags in the map */
78         0, 0,
79         -1      /* Extensions start */
80 };
81 static /* Use -fall-defs-global to expose */
82 asn_TYPE_descriptor_t asn_DEF_c1_2 = {
83         "c1",
84         "c1",
85         &asn_OP_CHOICE,
86         0,      /* No effective tags (pointer) */
87         0,      /* No effective tags (count) */
88         0,      /* No tags (pointer) */
89         0,      /* No tags (count) */
90         { &asn_OER_type_c1_constr_2, &asn_PER_type_c1_constr_2, CHOICE_constraint },
91         asn_MBR_c1_2,
92         4,      /* Elements count */
93         &asn_SPC_c1_specs_2     /* Additional specs */
94 };
95
96 static const ber_tlv_tag_t asn_DEF_messageClassExtension_tags_7[] = {
97         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
98         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
99 };
100 static asn_SEQUENCE_specifics_t asn_SPC_messageClassExtension_specs_7 = {
101         sizeof(struct UL_CCCH1_MessageType__messageClassExtension),
102         offsetof(struct UL_CCCH1_MessageType__messageClassExtension, _asn_ctx),
103         0,      /* No top level tags */
104         0,      /* No tags in the map */
105         0, 0, 0,        /* Optional elements (not needed) */
106         -1,     /* First extension addition */
107 };
108 static /* Use -fall-defs-global to expose */
109 asn_TYPE_descriptor_t asn_DEF_messageClassExtension_7 = {
110         "messageClassExtension",
111         "messageClassExtension",
112         &asn_OP_SEQUENCE,
113         asn_DEF_messageClassExtension_tags_7,
114         sizeof(asn_DEF_messageClassExtension_tags_7)
115                 /sizeof(asn_DEF_messageClassExtension_tags_7[0]) - 1, /* 1 */
116         asn_DEF_messageClassExtension_tags_7,   /* Same as above */
117         sizeof(asn_DEF_messageClassExtension_tags_7)
118                 /sizeof(asn_DEF_messageClassExtension_tags_7[0]), /* 2 */
119         { 0, 0, SEQUENCE_constraint },
120         0, 0,   /* No members */
121         &asn_SPC_messageClassExtension_specs_7  /* Additional specs */
122 };
123
124 asn_TYPE_member_t asn_MBR_UL_CCCH1_MessageType_1[] = {
125         { ATF_POINTER, 0, offsetof(struct UL_CCCH1_MessageType, choice.c1),
126                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
127                 +1,     /* EXPLICIT tag at current level */
128                 &asn_DEF_c1_2,
129                 0,
130                 { 0, 0, 0 },
131                 0, 0, /* No default value */
132                 "c1"
133                 },
134         { ATF_POINTER, 0, offsetof(struct UL_CCCH1_MessageType, choice.messageClassExtension),
135                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
136                 0,
137                 &asn_DEF_messageClassExtension_7,
138                 0,
139                 { 0, 0, 0 },
140                 0, 0, /* No default value */
141                 "messageClassExtension"
142                 },
143 };
144 static const asn_TYPE_tag2member_t asn_MAP_UL_CCCH1_MessageType_tag2el_1[] = {
145     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */
146     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageClassExtension */
147 };
148 asn_CHOICE_specifics_t asn_SPC_UL_CCCH1_MessageType_specs_1 = {
149         sizeof(struct UL_CCCH1_MessageType),
150         offsetof(struct UL_CCCH1_MessageType, _asn_ctx),
151         offsetof(struct UL_CCCH1_MessageType, present),
152         sizeof(((struct UL_CCCH1_MessageType *)0)->present),
153         asn_MAP_UL_CCCH1_MessageType_tag2el_1,
154         2,      /* Count of tags in the map */
155         0, 0,
156         -1      /* Extensions start */
157 };
158 asn_TYPE_descriptor_t asn_DEF_UL_CCCH1_MessageType = {
159         "UL-CCCH1-MessageType",
160         "UL-CCCH1-MessageType",
161         &asn_OP_CHOICE,
162         0,      /* No effective tags (pointer) */
163         0,      /* No effective tags (count) */
164         0,      /* No tags (pointer) */
165         0,      /* No tags (count) */
166         { &asn_OER_type_UL_CCCH1_MessageType_constr_1, &asn_PER_type_UL_CCCH1_MessageType_constr_1, CHOICE_constraint },
167         asn_MBR_UL_CCCH1_MessageType_1,
168         2,      /* Elements count */
169         &asn_SPC_UL_CCCH1_MessageType_specs_1   /* Additional specs */
170 };
171