Adding new comments for Oran in all files with licenses
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / CellAssistanceInformation.c
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19  * platform project (RICP).
20  */
21
22
23
24 /*
25  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26  * From ASN.1 module "X2AP-PDU-Contents"
27  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
28  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
29  */
30
31 #include "CellAssistanceInformation.h"
32
33 #include "Limited-list.h"
34 /*
35  * This type is implemented using NativeEnumerated,
36  * so here we adjust the DEF accordingly.
37  */
38 static asn_per_constraints_t asn_PER_type_full_list_constr_3 CC_NOTUSED = {
39         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
40         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
41         0, 0    /* No PER value map */
42 };
43 static asn_per_constraints_t asn_PER_type_CellAssistanceInformation_constr_1 CC_NOTUSED = {
44         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
45         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
46         0, 0    /* No PER value map */
47 };
48 static const asn_INTEGER_enum_map_t asn_MAP_full_list_value2enum_3[] = {
49         { 0,    16,     "allServedNRcells" }
50         /* This list is extensible */
51 };
52 static const unsigned int asn_MAP_full_list_enum2value_3[] = {
53         0       /* allServedNRcells(0) */
54         /* This list is extensible */
55 };
56 static const asn_INTEGER_specifics_t asn_SPC_full_list_specs_3 = {
57         asn_MAP_full_list_value2enum_3, /* "tag" => N; sorted by tag */
58         asn_MAP_full_list_enum2value_3, /* N => "tag"; sorted by N */
59         1,      /* Number of elements in the maps */
60         2,      /* Extensions before this member */
61         1,      /* Strict enumeration */
62         0,      /* Native long size */
63         0
64 };
65 static const ber_tlv_tag_t asn_DEF_full_list_tags_3[] = {
66         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
67         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
68 };
69 static /* Use -fall-defs-global to expose */
70 asn_TYPE_descriptor_t asn_DEF_full_list_3 = {
71         "full-list",
72         "full-list",
73         &asn_OP_NativeEnumerated,
74         asn_DEF_full_list_tags_3,
75         sizeof(asn_DEF_full_list_tags_3)
76                 /sizeof(asn_DEF_full_list_tags_3[0]) - 1, /* 1 */
77         asn_DEF_full_list_tags_3,       /* Same as above */
78         sizeof(asn_DEF_full_list_tags_3)
79                 /sizeof(asn_DEF_full_list_tags_3[0]), /* 2 */
80         { 0, &asn_PER_type_full_list_constr_3, NativeEnumerated_constraint },
81         0, 0,   /* Defined elsewhere */
82         &asn_SPC_full_list_specs_3      /* Additional specs */
83 };
84
85 static asn_TYPE_member_t asn_MBR_CellAssistanceInformation_1[] = {
86         { ATF_POINTER, 0, offsetof(struct CellAssistanceInformation, choice.limited_list),
87                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
88                 -1,     /* IMPLICIT tag at current level */
89                 &asn_DEF_Limited_list,
90                 0,
91                 { 0, 0, 0 },
92                 0, 0, /* No default value */
93                 "limited-list"
94                 },
95         { ATF_NOFLAGS, 0, offsetof(struct CellAssistanceInformation, choice.full_list),
96                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
97                 -1,     /* IMPLICIT tag at current level */
98                 &asn_DEF_full_list_3,
99                 0,
100                 { 0, 0, 0 },
101                 0, 0, /* No default value */
102                 "full-list"
103                 },
104 };
105 static const asn_TYPE_tag2member_t asn_MAP_CellAssistanceInformation_tag2el_1[] = {
106     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* limited-list */
107     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* full-list */
108 };
109 static asn_CHOICE_specifics_t asn_SPC_CellAssistanceInformation_specs_1 = {
110         sizeof(struct CellAssistanceInformation),
111         offsetof(struct CellAssistanceInformation, _asn_ctx),
112         offsetof(struct CellAssistanceInformation, present),
113         sizeof(((struct CellAssistanceInformation *)0)->present),
114         asn_MAP_CellAssistanceInformation_tag2el_1,
115         2,      /* Count of tags in the map */
116         0, 0,
117         2       /* Extensions start */
118 };
119 asn_TYPE_descriptor_t asn_DEF_CellAssistanceInformation = {
120         "CellAssistanceInformation",
121         "CellAssistanceInformation",
122         &asn_OP_CHOICE,
123         0,      /* No effective tags (pointer) */
124         0,      /* No effective tags (count) */
125         0,      /* No tags (pointer) */
126         0,      /* No tags (count) */
127         { 0, &asn_PER_type_CellAssistanceInformation_constr_1, CHOICE_constraint },
128         asn_MBR_CellAssistanceInformation_1,
129         2,      /* Elements count */
130         &asn_SPC_CellAssistanceInformation_specs_1      /* Additional specs */
131 };
132