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