Add version 0.5.0
[ric-plt/submgr.git] / e2ap / lib / CellAssistanceInformation.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-PDU-Contents"
4  *      found in "Spec/e2ap-v031ex.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
6  */
7
8 #include "CellAssistanceInformation.h"
9
10 #include "Limited-list.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 static asn_oer_constraints_t asn_OER_type_full_list_constr_3 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_full_list_constr_3 CC_NOTUSED = {
19         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
20         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
21         0, 0    /* No PER value map */
22 };
23 static asn_oer_constraints_t asn_OER_type_CellAssistanceInformation_constr_1 CC_NOTUSED = {
24         { 0, 0 },
25         -1};
26 static asn_per_constraints_t asn_PER_type_CellAssistanceInformation_constr_1 CC_NOTUSED = {
27         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
28         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
29         0, 0    /* No PER value map */
30 };
31 static const asn_INTEGER_enum_map_t asn_MAP_full_list_value2enum_3[] = {
32         { 0,    16,     "allServedNRcells" }
33         /* This list is extensible */
34 };
35 static const unsigned int asn_MAP_full_list_enum2value_3[] = {
36         0       /* allServedNRcells(0) */
37         /* This list is extensible */
38 };
39 static const asn_INTEGER_specifics_t asn_SPC_full_list_specs_3 = {
40         asn_MAP_full_list_value2enum_3, /* "tag" => N; sorted by tag */
41         asn_MAP_full_list_enum2value_3, /* N => "tag"; sorted by N */
42         1,      /* Number of elements in the maps */
43         2,      /* Extensions before this member */
44         1,      /* Strict enumeration */
45         0,      /* Native long size */
46         0
47 };
48 static const ber_tlv_tag_t asn_DEF_full_list_tags_3[] = {
49         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
50         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
51 };
52 static /* Use -fall-defs-global to expose */
53 asn_TYPE_descriptor_t asn_DEF_full_list_3 = {
54         "full-list",
55         "full-list",
56         &asn_OP_NativeEnumerated,
57         asn_DEF_full_list_tags_3,
58         sizeof(asn_DEF_full_list_tags_3)
59                 /sizeof(asn_DEF_full_list_tags_3[0]) - 1, /* 1 */
60         asn_DEF_full_list_tags_3,       /* Same as above */
61         sizeof(asn_DEF_full_list_tags_3)
62                 /sizeof(asn_DEF_full_list_tags_3[0]), /* 2 */
63         { &asn_OER_type_full_list_constr_3, &asn_PER_type_full_list_constr_3, NativeEnumerated_constraint },
64         0, 0,   /* Defined elsewhere */
65         &asn_SPC_full_list_specs_3      /* Additional specs */
66 };
67
68 static asn_TYPE_member_t asn_MBR_CellAssistanceInformation_1[] = {
69         { ATF_POINTER, 0, offsetof(struct CellAssistanceInformation, choice.limited_list),
70                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
71                 -1,     /* IMPLICIT tag at current level */
72                 &asn_DEF_Limited_list,
73                 0,
74                 { 0, 0, 0 },
75                 0, 0, /* No default value */
76                 "limited-list"
77                 },
78         { ATF_NOFLAGS, 0, offsetof(struct CellAssistanceInformation, choice.full_list),
79                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
80                 -1,     /* IMPLICIT tag at current level */
81                 &asn_DEF_full_list_3,
82                 0,
83                 { 0, 0, 0 },
84                 0, 0, /* No default value */
85                 "full-list"
86                 },
87 };
88 static const asn_TYPE_tag2member_t asn_MAP_CellAssistanceInformation_tag2el_1[] = {
89     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* limited-list */
90     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* full-list */
91 };
92 static asn_CHOICE_specifics_t asn_SPC_CellAssistanceInformation_specs_1 = {
93         sizeof(struct CellAssistanceInformation),
94         offsetof(struct CellAssistanceInformation, _asn_ctx),
95         offsetof(struct CellAssistanceInformation, present),
96         sizeof(((struct CellAssistanceInformation *)0)->present),
97         asn_MAP_CellAssistanceInformation_tag2el_1,
98         2,      /* Count of tags in the map */
99         0, 0,
100         2       /* Extensions start */
101 };
102 asn_TYPE_descriptor_t asn_DEF_CellAssistanceInformation = {
103         "CellAssistanceInformation",
104         "CellAssistanceInformation",
105         &asn_OP_CHOICE,
106         0,      /* No effective tags (pointer) */
107         0,      /* No effective tags (count) */
108         0,      /* No tags (pointer) */
109         0,      /* No tags (count) */
110         { &asn_OER_type_CellAssistanceInformation_constr_1, &asn_PER_type_CellAssistanceInformation_constr_1, CHOICE_constraint },
111         asn_MBR_CellAssistanceInformation_1,
112         2,      /* Elements count */
113         &asn_SPC_CellAssistanceInformation_specs_1      /* Additional specs */
114 };
115