2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-Containers"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "PrivateIE-Field.h"
\r
11 memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
15 ASN__CTFAIL(app_key, td, sptr,
\r
16 "%s: value not given (%s:%d)",
\r
17 td->name, __FILE__, __LINE__);
\r
22 if(1 /* No applicable constraints whatsoever */) {
\r
23 /* Nothing is here. See below */
\r
26 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
\r
30 memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
31 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
34 ASN__CTFAIL(app_key, td, sptr,
\r
35 "%s: value not given (%s:%d)",
\r
36 td->name, __FILE__, __LINE__);
\r
41 if(1 /* No applicable constraints whatsoever */) {
\r
42 /* Nothing is here. See below */
\r
45 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
\r
49 memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
50 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
53 ASN__CTFAIL(app_key, td, sptr,
\r
54 "%s: value not given (%s:%d)",
\r
55 td->name, __FILE__, __LINE__);
\r
60 if(1 /* No applicable constraints whatsoever */) {
\r
61 /* Nothing is here. See below */
\r
64 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
\r
67 static asn_per_constraints_t asn_PER_memb_id_constr_2 CC_NOTUSED = {
\r
68 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
\r
69 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
70 0, 0 /* No PER value map */
\r
72 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
\r
73 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
\r
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
75 0, 0 /* No PER value map */
\r
77 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
\r
78 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
79 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
80 0, 0 /* No PER value map */
\r
82 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
\r
83 sizeof(struct PrivateMessage_IEs__value),
\r
84 offsetof(struct PrivateMessage_IEs__value, _asn_ctx),
\r
85 offsetof(struct PrivateMessage_IEs__value, present),
\r
86 sizeof(((struct PrivateMessage_IEs__value *)0)->present),
\r
87 0, /* No top level tags */
\r
88 0, /* No tags in the map */
\r
90 -1 /* Extensions start */
\r
92 static /* Use -fall-defs-global to expose */
\r
93 asn_TYPE_descriptor_t asn_DEF_value_4 = {
\r
97 0, /* No effective tags (pointer) */
\r
98 0, /* No effective tags (count) */
\r
99 0, /* No tags (pointer) */
\r
100 0, /* No tags (count) */
\r
101 { 0, 0, OPEN_TYPE_constraint },
\r
102 0, 0, /* No members */
\r
103 &asn_SPC_value_specs_4 /* Additional specs */
\r
106 asn_TYPE_member_t asn_MBR_PrivateMessage_IEs_1[] = {
\r
107 { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, id),
\r
108 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
109 +1, /* EXPLICIT tag at current level */
\r
110 &asn_DEF_PrivateIE_ID,
\r
112 { 0, &asn_PER_memb_id_constr_2, memb_id_constraint_1 },
\r
113 0, 0, /* No default value */
\r
116 { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, criticality),
\r
117 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
118 -1, /* IMPLICIT tag at current level */
\r
119 &asn_DEF_Criticality,
\r
121 { 0, &asn_PER_memb_criticality_constr_3, memb_criticality_constraint_1 },
\r
122 0, 0, /* No default value */
\r
125 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, value),
\r
126 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
127 +1, /* EXPLICIT tag at current level */
\r
130 { 0, &asn_PER_memb_value_constr_4, memb_value_constraint_1 },
\r
131 0, 0, /* No default value */
\r
135 static const ber_tlv_tag_t asn_DEF_PrivateMessage_IEs_tags_1[] = {
\r
136 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
138 static const asn_TYPE_tag2member_t asn_MAP_PrivateMessage_IEs_tag2el_1[] = {
\r
139 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
\r
140 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
\r
141 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
\r
143 asn_SEQUENCE_specifics_t asn_SPC_PrivateMessage_IEs_specs_1 = {
\r
144 sizeof(struct PrivateMessage_IEs),
\r
145 offsetof(struct PrivateMessage_IEs, _asn_ctx),
\r
146 asn_MAP_PrivateMessage_IEs_tag2el_1,
\r
147 3, /* Count of tags in the map */
\r
148 0, 0, 0, /* Optional elements (not needed) */
\r
149 -1, /* First extension addition */
\r
151 asn_TYPE_descriptor_t asn_DEF_PrivateMessage_IEs = {
\r
152 "PrivateMessage-IEs",
\r
153 "PrivateMessage-IEs",
\r
155 asn_DEF_PrivateMessage_IEs_tags_1,
\r
156 sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
\r
157 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
\r
158 asn_DEF_PrivateMessage_IEs_tags_1, /* Same as above */
\r
159 sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
\r
160 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
\r
161 { 0, 0, SEQUENCE_constraint },
\r
162 asn_MBR_PrivateMessage_IEs_1,
\r
163 3, /* Elements count */
\r
164 &asn_SPC_PrivateMessage_IEs_specs_1 /* Additional specs */
\r