e61ac1e375df7e4cd6c3ce75ba4cff632722f57f
[ric-plt/submgr.git] / e2ap / lib / CNTypeRestrictionsItem.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
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 "CNTypeRestrictionsItem.h"
9
10 #include "ProtocolExtensionContainer.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_cn_type_constr_3 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_cn_type_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 const asn_INTEGER_enum_map_t asn_MAP_cn_type_value2enum_3[] = {
24         { 0,    16,     "fiveGC-forbidden" }
25         /* This list is extensible */
26 };
27 static const unsigned int asn_MAP_cn_type_enum2value_3[] = {
28         0       /* fiveGC-forbidden(0) */
29         /* This list is extensible */
30 };
31 static const asn_INTEGER_specifics_t asn_SPC_cn_type_specs_3 = {
32         asn_MAP_cn_type_value2enum_3,   /* "tag" => N; sorted by tag */
33         asn_MAP_cn_type_enum2value_3,   /* N => "tag"; sorted by N */
34         1,      /* Number of elements in the maps */
35         2,      /* Extensions before this member */
36         1,      /* Strict enumeration */
37         0,      /* Native long size */
38         0
39 };
40 static const ber_tlv_tag_t asn_DEF_cn_type_tags_3[] = {
41         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
43 };
44 static /* Use -fall-defs-global to expose */
45 asn_TYPE_descriptor_t asn_DEF_cn_type_3 = {
46         "cn-type",
47         "cn-type",
48         &asn_OP_NativeEnumerated,
49         asn_DEF_cn_type_tags_3,
50         sizeof(asn_DEF_cn_type_tags_3)
51                 /sizeof(asn_DEF_cn_type_tags_3[0]) - 1, /* 1 */
52         asn_DEF_cn_type_tags_3, /* Same as above */
53         sizeof(asn_DEF_cn_type_tags_3)
54                 /sizeof(asn_DEF_cn_type_tags_3[0]), /* 2 */
55         { &asn_OER_type_cn_type_constr_3, &asn_PER_type_cn_type_constr_3, NativeEnumerated_constraint },
56         0, 0,   /* Defined elsewhere */
57         &asn_SPC_cn_type_specs_3        /* Additional specs */
58 };
59
60 asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[] = {
61         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, plmn_Id),
62                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
63                 -1,     /* IMPLICIT tag at current level */
64                 &asn_DEF_PLMN_Identity,
65                 0,
66                 { 0, 0, 0 },
67                 0, 0, /* No default value */
68                 "plmn-Id"
69                 },
70         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, cn_type),
71                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_cn_type_3,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "cn-type"
78                 },
79         { ATF_POINTER, 1, offsetof(struct CNTypeRestrictionsItem, iE_Extensions),
80                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
81                 -1,     /* IMPLICIT tag at current level */
82                 &asn_DEF_ProtocolExtensionContainer_7683P116,
83                 0,
84                 { 0, 0, 0 },
85                 0, 0, /* No default value */
86                 "iE-Extensions"
87                 },
88 };
89 static const int asn_MAP_CNTypeRestrictionsItem_oms_1[] = { 2 };
90 static const ber_tlv_tag_t asn_DEF_CNTypeRestrictionsItem_tags_1[] = {
91         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
92 };
93 static const asn_TYPE_tag2member_t asn_MAP_CNTypeRestrictionsItem_tag2el_1[] = {
94     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
95     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
96     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
97 };
98 asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1 = {
99         sizeof(struct CNTypeRestrictionsItem),
100         offsetof(struct CNTypeRestrictionsItem, _asn_ctx),
101         asn_MAP_CNTypeRestrictionsItem_tag2el_1,
102         3,      /* Count of tags in the map */
103         asn_MAP_CNTypeRestrictionsItem_oms_1,   /* Optional members */
104         1, 0,   /* Root/Additions */
105         3,      /* First extension addition */
106 };
107 asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem = {
108         "CNTypeRestrictionsItem",
109         "CNTypeRestrictionsItem",
110         &asn_OP_SEQUENCE,
111         asn_DEF_CNTypeRestrictionsItem_tags_1,
112         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
113                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
114         asn_DEF_CNTypeRestrictionsItem_tags_1,  /* Same as above */
115         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
116                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
117         { 0, 0, SEQUENCE_constraint },
118         asn_MBR_CNTypeRestrictionsItem_1,
119         3,      /* Elements count */
120         &asn_SPC_CNTypeRestrictionsItem_specs_1 /* Additional specs */
121 };
122