2 * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "../../asn_defs/asn1/x2ap-15-04.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
8 #include "X2N_CNTypeRestrictionsItem.h"
10 #include "X2N_ProtocolExtensionContainer.h"
12 * This type is implemented using NativeEnumerated,
13 * so here we adjust the DEF accordingly.
15 static asn_per_constraints_t asn_PER_type_X2N_cn_type_constr_3 CC_NOTUSED = {
16 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
17 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
18 0, 0 /* No PER value map */
20 static const asn_INTEGER_enum_map_t asn_MAP_X2N_cn_type_value2enum_3[] = {
21 { 0, 16, "fiveGC-forbidden" }
22 /* This list is extensible */
24 static const unsigned int asn_MAP_X2N_cn_type_enum2value_3[] = {
25 0 /* fiveGC-forbidden(0) */
26 /* This list is extensible */
28 static const asn_INTEGER_specifics_t asn_SPC_X2N_cn_type_specs_3 = {
29 asn_MAP_X2N_cn_type_value2enum_3, /* "tag" => N; sorted by tag */
30 asn_MAP_X2N_cn_type_enum2value_3, /* N => "tag"; sorted by N */
31 1, /* Number of elements in the maps */
32 2, /* Extensions before this member */
33 1, /* Strict enumeration */
34 0, /* Native long size */
37 static const ber_tlv_tag_t asn_DEF_X2N_cn_type_tags_3[] = {
38 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
41 static /* Use -fall-defs-global to expose */
42 asn_TYPE_descriptor_t asn_DEF_X2N_cn_type_3 = {
45 &asn_OP_NativeEnumerated,
46 asn_DEF_X2N_cn_type_tags_3,
47 sizeof(asn_DEF_X2N_cn_type_tags_3)
48 /sizeof(asn_DEF_X2N_cn_type_tags_3[0]) - 1, /* 1 */
49 asn_DEF_X2N_cn_type_tags_3, /* Same as above */
50 sizeof(asn_DEF_X2N_cn_type_tags_3)
51 /sizeof(asn_DEF_X2N_cn_type_tags_3[0]), /* 2 */
52 { 0, &asn_PER_type_X2N_cn_type_constr_3, NativeEnumerated_constraint },
53 0, 0, /* Defined elsewhere */
54 &asn_SPC_X2N_cn_type_specs_3 /* Additional specs */
57 asn_TYPE_member_t asn_MBR_X2N_CNTypeRestrictionsItem_1[] = {
58 { ATF_NOFLAGS, 0, offsetof(struct X2N_CNTypeRestrictionsItem, plmn_Id),
59 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
60 -1, /* IMPLICIT tag at current level */
61 &asn_DEF_X2N_PLMN_Identity,
64 0, 0, /* No default value */
67 { ATF_NOFLAGS, 0, offsetof(struct X2N_CNTypeRestrictionsItem, cn_type),
68 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
69 -1, /* IMPLICIT tag at current level */
70 &asn_DEF_X2N_cn_type_3,
73 0, 0, /* No default value */
76 { ATF_POINTER, 1, offsetof(struct X2N_CNTypeRestrictionsItem, iE_Extensions),
77 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
78 -1, /* IMPLICIT tag at current level */
79 &asn_DEF_X2N_ProtocolExtensionContainer_8231P116,
82 0, 0, /* No default value */
86 static const int asn_MAP_X2N_CNTypeRestrictionsItem_oms_1[] = { 2 };
87 static const ber_tlv_tag_t asn_DEF_X2N_CNTypeRestrictionsItem_tags_1[] = {
88 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
90 static const asn_TYPE_tag2member_t asn_MAP_X2N_CNTypeRestrictionsItem_tag2el_1[] = {
91 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
92 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
93 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
95 asn_SEQUENCE_specifics_t asn_SPC_X2N_CNTypeRestrictionsItem_specs_1 = {
96 sizeof(struct X2N_CNTypeRestrictionsItem),
97 offsetof(struct X2N_CNTypeRestrictionsItem, _asn_ctx),
98 asn_MAP_X2N_CNTypeRestrictionsItem_tag2el_1,
99 3, /* Count of tags in the map */
100 asn_MAP_X2N_CNTypeRestrictionsItem_oms_1, /* Optional members */
101 1, 0, /* Root/Additions */
102 3, /* First extension addition */
104 asn_TYPE_descriptor_t asn_DEF_X2N_CNTypeRestrictionsItem = {
105 "CNTypeRestrictionsItem",
106 "CNTypeRestrictionsItem",
108 asn_DEF_X2N_CNTypeRestrictionsItem_tags_1,
109 sizeof(asn_DEF_X2N_CNTypeRestrictionsItem_tags_1)
110 /sizeof(asn_DEF_X2N_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
111 asn_DEF_X2N_CNTypeRestrictionsItem_tags_1, /* Same as above */
112 sizeof(asn_DEF_X2N_CNTypeRestrictionsItem_tags_1)
113 /sizeof(asn_DEF_X2N_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
114 { 0, 0, SEQUENCE_constraint },
115 asn_MBR_X2N_CNTypeRestrictionsItem_1,
116 3, /* Elements count */
117 &asn_SPC_X2N_CNTypeRestrictionsItem_specs_1 /* Additional specs */