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