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