Upstreaming version 0.10.7
[ric-plt/submgr.git] / e2ap / lib / E-RABs-ToBeAdded-SgNBAddReq-Item.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-PDU-Contents"
4  *      found in "X2AP-15-4-0.asn1"
5  *      `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
6  */
7
8 #include "E-RABs-ToBeAdded-SgNBAddReq-Item.h"
9
10 #include "ProtocolExtensionContainer.h"
11 #include "E-RABs-ToBeAdded-SgNBAddReq-Item-SgNBPDCPpresent.h"
12 #include "E-RABs-ToBeAdded-SgNBAddReq-Item-SgNBPDCPnotpresent.h"
13 static asn_oer_constraints_t asn_OER_type_resource_configuration_constr_5 CC_NOTUSED = {
14         { 0, 0 },
15         -1};
16 static asn_per_constraints_t asn_PER_type_resource_configuration_constr_5 CC_NOTUSED = {
17         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
18         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
19         0, 0    /* No PER value map */
20 };
21 static asn_TYPE_member_t asn_MBR_resource_configuration_5[] = {
22         { ATF_POINTER, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration, choice.sgNBPDCPpresent),
23                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
24                 -1,     /* IMPLICIT tag at current level */
25                 &asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_SgNBPDCPpresent,
26                 0,
27                 { 0, 0, 0 },
28                 0, 0, /* No default value */
29                 "sgNBPDCPpresent"
30                 },
31         { ATF_POINTER, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration, choice.sgNBPDCPnotpresent),
32                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
33                 -1,     /* IMPLICIT tag at current level */
34                 &asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_SgNBPDCPnotpresent,
35                 0,
36                 { 0, 0, 0 },
37                 0, 0, /* No default value */
38                 "sgNBPDCPnotpresent"
39                 },
40 };
41 static const asn_TYPE_tag2member_t asn_MAP_resource_configuration_tag2el_5[] = {
42     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sgNBPDCPpresent */
43     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sgNBPDCPnotpresent */
44 };
45 static asn_CHOICE_specifics_t asn_SPC_resource_configuration_specs_5 = {
46         sizeof(struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration),
47         offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration, _asn_ctx),
48         offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration, present),
49         sizeof(((struct E_RABs_ToBeAdded_SgNBAddReq_Item__resource_configuration *)0)->present),
50         asn_MAP_resource_configuration_tag2el_5,
51         2,      /* Count of tags in the map */
52         0, 0,
53         2       /* Extensions start */
54 };
55 static /* Use -fall-defs-global to expose */
56 asn_TYPE_descriptor_t asn_DEF_resource_configuration_5 = {
57         "resource-configuration",
58         "resource-configuration",
59         &asn_OP_CHOICE,
60         0,      /* No effective tags (pointer) */
61         0,      /* No effective tags (count) */
62         0,      /* No tags (pointer) */
63         0,      /* No tags (count) */
64         { &asn_OER_type_resource_configuration_constr_5, &asn_PER_type_resource_configuration_constr_5, CHOICE_constraint },
65         asn_MBR_resource_configuration_5,
66         2,      /* Elements count */
67         &asn_SPC_resource_configuration_specs_5 /* Additional specs */
68 };
69
70 static asn_TYPE_member_t asn_MBR_E_RABs_ToBeAdded_SgNBAddReq_Item_1[] = {
71         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, e_RAB_ID),
72                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
73                 -1,     /* IMPLICIT tag at current level */
74                 &asn_DEF_E_RAB_ID,
75                 0,
76                 { 0, 0, 0 },
77                 0, 0, /* No default value */
78                 "e-RAB-ID"
79                 },
80         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, drb_ID),
81                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
82                 -1,     /* IMPLICIT tag at current level */
83                 &asn_DEF_DRB_ID,
84                 0,
85                 { 0, 0, 0 },
86                 0, 0, /* No default value */
87                 "drb-ID"
88                 },
89         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, en_DC_ResourceConfiguration),
90                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
91                 -1,     /* IMPLICIT tag at current level */
92                 &asn_DEF_EN_DC_ResourceConfiguration,
93                 0,
94                 { 0, 0, 0 },
95                 0, 0, /* No default value */
96                 "en-DC-ResourceConfiguration"
97                 },
98         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, resource_configuration),
99                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
100                 +1,     /* EXPLICIT tag at current level */
101                 &asn_DEF_resource_configuration_5,
102                 0,
103                 { 0, 0, 0 },
104                 0, 0, /* No default value */
105                 "resource-configuration"
106                 },
107         { ATF_POINTER, 1, offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, iE_Extensions),
108                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
109                 -1,     /* IMPLICIT tag at current level */
110                 &asn_DEF_ProtocolExtensionContainer_7683P44,
111                 0,
112                 { 0, 0, 0 },
113                 0, 0, /* No default value */
114                 "iE-Extensions"
115                 },
116 };
117 static const int asn_MAP_E_RABs_ToBeAdded_SgNBAddReq_Item_oms_1[] = { 4 };
118 static const ber_tlv_tag_t asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1[] = {
119         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
120 };
121 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_ToBeAdded_SgNBAddReq_Item_tag2el_1[] = {
122     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
123     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* drb-ID */
124     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* en-DC-ResourceConfiguration */
125     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* resource-configuration */
126     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
127 };
128 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_ToBeAdded_SgNBAddReq_Item_specs_1 = {
129         sizeof(struct E_RABs_ToBeAdded_SgNBAddReq_Item),
130         offsetof(struct E_RABs_ToBeAdded_SgNBAddReq_Item, _asn_ctx),
131         asn_MAP_E_RABs_ToBeAdded_SgNBAddReq_Item_tag2el_1,
132         5,      /* Count of tags in the map */
133         asn_MAP_E_RABs_ToBeAdded_SgNBAddReq_Item_oms_1, /* Optional members */
134         1, 0,   /* Root/Additions */
135         5,      /* First extension addition */
136 };
137 asn_TYPE_descriptor_t asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item = {
138         "E-RABs-ToBeAdded-SgNBAddReq-Item",
139         "E-RABs-ToBeAdded-SgNBAddReq-Item",
140         &asn_OP_SEQUENCE,
141         asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1,
142         sizeof(asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1)
143                 /sizeof(asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1[0]), /* 1 */
144         asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1,        /* Same as above */
145         sizeof(asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1)
146                 /sizeof(asn_DEF_E_RABs_ToBeAdded_SgNBAddReq_Item_tags_1[0]), /* 1 */
147         { 0, 0, SEQUENCE_constraint },
148         asn_MBR_E_RABs_ToBeAdded_SgNBAddReq_Item_1,
149         5,      /* Elements count */
150         &asn_SPC_E_RABs_ToBeAdded_SgNBAddReq_Item_specs_1       /* Additional specs */
151 };
152