[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / PCCH-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 "./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 "PCCH-MessageType.h"
9
10 #include "PagingRrc.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,       1,  1,  0,  1 }        /* (0..1) */,
16         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
17         0, 0    /* No PER value map */
18 };
19 static asn_oer_constraints_t asn_OER_type_PCCH_MessageType_constr_1 CC_NOTUSED = {
20         { 0, 0 },
21         -1};
22 asn_per_constraints_t asn_PER_type_PCCH_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 PCCH_MessageType__c1, choice.paging),
29                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30                 -1,     /* IMPLICIT tag at current level */
31                 &asn_DEF_PagingRrc,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "paging"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct PCCH_MessageType__c1, choice.spare1),
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                 "spare1"
45                 },
46 };
47 static const asn_TYPE_tag2member_t asn_MAP_c1_tag2el_2[] = {
48     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* paging */
49     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* spare1 */
50 };
51 static asn_CHOICE_specifics_t asn_SPC_c1_specs_2 = {
52         sizeof(struct PCCH_MessageType__c1),
53         offsetof(struct PCCH_MessageType__c1, _asn_ctx),
54         offsetof(struct PCCH_MessageType__c1, present),
55         sizeof(((struct PCCH_MessageType__c1 *)0)->present),
56         asn_MAP_c1_tag2el_2,
57         2,      /* Count of tags in the map */
58         0, 0,
59         -1      /* Extensions start */
60 };
61 static /* Use -fall-defs-global to expose */
62 asn_TYPE_descriptor_t asn_DEF_c1_2 = {
63         "c1",
64         "c1",
65         &asn_OP_CHOICE,
66         0,      /* No effective tags (pointer) */
67         0,      /* No effective tags (count) */
68         0,      /* No tags (pointer) */
69         0,      /* No tags (count) */
70         { &asn_OER_type_c1_constr_2, &asn_PER_type_c1_constr_2, CHOICE_constraint },
71         asn_MBR_c1_2,
72         2,      /* Elements count */
73         &asn_SPC_c1_specs_2     /* Additional specs */
74 };
75
76 static const ber_tlv_tag_t asn_DEF_messageClassExtension_tags_5[] = {
77         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
78         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
79 };
80 static asn_SEQUENCE_specifics_t asn_SPC_messageClassExtension_specs_5 = {
81         sizeof(struct PCCH_MessageType__messageClassExtension),
82         offsetof(struct PCCH_MessageType__messageClassExtension, _asn_ctx),
83         0,      /* No top level tags */
84         0,      /* No tags in the map */
85         0, 0, 0,        /* Optional elements (not needed) */
86         -1,     /* First extension addition */
87 };
88 static /* Use -fall-defs-global to expose */
89 asn_TYPE_descriptor_t asn_DEF_messageClassExtension_5 = {
90         "messageClassExtension",
91         "messageClassExtension",
92         &asn_OP_SEQUENCE,
93         asn_DEF_messageClassExtension_tags_5,
94         sizeof(asn_DEF_messageClassExtension_tags_5)
95                 /sizeof(asn_DEF_messageClassExtension_tags_5[0]) - 1, /* 1 */
96         asn_DEF_messageClassExtension_tags_5,   /* Same as above */
97         sizeof(asn_DEF_messageClassExtension_tags_5)
98                 /sizeof(asn_DEF_messageClassExtension_tags_5[0]), /* 2 */
99         { 0, 0, SEQUENCE_constraint },
100         0, 0,   /* No members */
101         &asn_SPC_messageClassExtension_specs_5  /* Additional specs */
102 };
103
104 asn_TYPE_member_t asn_MBR_PCCH_MessageType_1[] = {
105         { ATF_POINTER, 0, offsetof(struct PCCH_MessageType, choice.c1),
106                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
107                 +1,     /* EXPLICIT tag at current level */
108                 &asn_DEF_c1_2,
109                 0,
110                 { 0, 0, 0 },
111                 0, 0, /* No default value */
112                 "c1"
113                 },
114         { ATF_POINTER, 0, offsetof(struct PCCH_MessageType, choice.messageClassExtension),
115                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
116                 0,
117                 &asn_DEF_messageClassExtension_5,
118                 0,
119                 { 0, 0, 0 },
120                 0, 0, /* No default value */
121                 "messageClassExtension"
122                 },
123 };
124 static const asn_TYPE_tag2member_t asn_MAP_PCCH_MessageType_tag2el_1[] = {
125     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* c1 */
126     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageClassExtension */
127 };
128 asn_CHOICE_specifics_t asn_SPC_PCCH_MessageType_specs_1 = {
129         sizeof(struct PCCH_MessageType),
130         offsetof(struct PCCH_MessageType, _asn_ctx),
131         offsetof(struct PCCH_MessageType, present),
132         sizeof(((struct PCCH_MessageType *)0)->present),
133         asn_MAP_PCCH_MessageType_tag2el_1,
134         2,      /* Count of tags in the map */
135         0, 0,
136         -1      /* Extensions start */
137 };
138 asn_TYPE_descriptor_t asn_DEF_PCCH_MessageType = {
139         "PCCH-MessageType",
140         "PCCH-MessageType",
141         &asn_OP_CHOICE,
142         0,      /* No effective tags (pointer) */
143         0,      /* No effective tags (count) */
144         0,      /* No tags (pointer) */
145         0,      /* No tags (count) */
146         { &asn_OER_type_PCCH_MessageType_constr_1, &asn_PER_type_PCCH_MessageType_constr_1, CHOICE_constraint },
147         asn_MBR_PCCH_MessageType_1,
148         2,      /* Elements count */
149         &asn_SPC_PCCH_MessageType_specs_1       /* Additional specs */
150 };
151