2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "F1AP-Containers"
5 * `asn1c -D ./out -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
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_oer_constraints_t asn_OER_memb_id_constr_2 CC_NOTUSED = {
70 static asn_per_constraints_t asn_PER_memb_id_constr_2 CC_NOTUSED = {
71 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
72 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
73 0, 0 /* No PER value map */
75 static asn_oer_constraints_t asn_OER_memb_criticality_constr_3 CC_NOTUSED = {
78 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
79 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
80 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
81 0, 0 /* No PER value map */
83 static asn_oer_constraints_t asn_OER_memb_value_constr_4 CC_NOTUSED = {
86 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
87 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
88 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
89 0, 0 /* No PER value map */
91 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
92 sizeof(struct PrivateMessage_IEs__value),
93 offsetof(struct PrivateMessage_IEs__value, _asn_ctx),
94 offsetof(struct PrivateMessage_IEs__value, present),
95 sizeof(((struct PrivateMessage_IEs__value *)0)->present),
96 0, /* No top level tags */
97 0, /* No tags in the map */
99 -1 /* Extensions start */
101 static /* Use -fall-defs-global to expose */
102 asn_TYPE_descriptor_t asn_DEF_value_4 = {
106 0, /* No effective tags (pointer) */
107 0, /* No effective tags (count) */
108 0, /* No tags (pointer) */
109 0, /* No tags (count) */
110 { 0, 0, OPEN_TYPE_constraint },
111 0, 0, /* No members */
112 &asn_SPC_value_specs_4 /* Additional specs */
115 asn_TYPE_member_t asn_MBR_PrivateMessage_IEs_1[] = {
116 { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, id),
117 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
118 +1, /* EXPLICIT tag at current level */
119 &asn_DEF_PrivateIE_ID,
121 { &asn_OER_memb_id_constr_2, &asn_PER_memb_id_constr_2, memb_id_constraint_1 },
122 0, 0, /* No default value */
125 { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, criticality),
126 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
127 -1, /* IMPLICIT tag at current level */
128 &asn_DEF_Criticality,
130 { &asn_OER_memb_criticality_constr_3, &asn_PER_memb_criticality_constr_3, memb_criticality_constraint_1 },
131 0, 0, /* No default value */
134 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, value),
135 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
136 +1, /* EXPLICIT tag at current level */
139 { &asn_OER_memb_value_constr_4, &asn_PER_memb_value_constr_4, memb_value_constraint_1 },
140 0, 0, /* No default value */
144 static const ber_tlv_tag_t asn_DEF_PrivateMessage_IEs_tags_1[] = {
145 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
147 static const asn_TYPE_tag2member_t asn_MAP_PrivateMessage_IEs_tag2el_1[] = {
148 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
149 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
150 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
152 asn_SEQUENCE_specifics_t asn_SPC_PrivateMessage_IEs_specs_1 = {
153 sizeof(struct PrivateMessage_IEs),
154 offsetof(struct PrivateMessage_IEs, _asn_ctx),
155 asn_MAP_PrivateMessage_IEs_tag2el_1,
156 3, /* Count of tags in the map */
157 0, 0, 0, /* Optional elements (not needed) */
158 -1, /* First extension addition */
160 asn_TYPE_descriptor_t asn_DEF_PrivateMessage_IEs = {
161 "PrivateMessage-IEs",
162 "PrivateMessage-IEs",
164 asn_DEF_PrivateMessage_IEs_tags_1,
165 sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
166 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
167 asn_DEF_PrivateMessage_IEs_tags_1, /* Same as above */
168 sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
169 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
170 { 0, 0, SEQUENCE_constraint },
171 asn_MBR_PrivateMessage_IEs_1,
172 3, /* Elements count */
173 &asn_SPC_PrivateMessage_IEs_specs_1 /* Additional specs */