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_ResumeID.h"
11 memb_X2N_non_truncated_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
25 size = 8 * st->size - (st->bits_unused & 0x07);
31 /* Constraint check succeeded */
34 ASN__CTFAIL(app_key, td, sptr,
35 "%s: constraint failed (%s:%d)",
36 td->name, __FILE__, __LINE__);
42 memb_X2N_truncated_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
43 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
48 ASN__CTFAIL(app_key, td, sptr,
49 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
56 size = 8 * st->size - (st->bits_unused & 0x07);
62 /* Constraint check succeeded */
65 ASN__CTFAIL(app_key, td, sptr,
66 "%s: constraint failed (%s:%d)",
67 td->name, __FILE__, __LINE__);
72 static asn_per_constraints_t asn_PER_memb_X2N_non_truncated_constr_2 CC_NOTUSED = {
73 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
74 { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
75 0, 0 /* No PER value map */
77 static asn_per_constraints_t asn_PER_memb_X2N_truncated_constr_3 CC_NOTUSED = {
78 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
79 { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */,
80 0, 0 /* No PER value map */
82 static asn_per_constraints_t asn_PER_type_X2N_ResumeID_constr_1 CC_NOTUSED = {
83 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
84 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
85 0, 0 /* No PER value map */
87 static asn_TYPE_member_t asn_MBR_X2N_ResumeID_1[] = {
88 { ATF_NOFLAGS, 0, offsetof(struct X2N_ResumeID, choice.non_truncated),
89 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
90 -1, /* IMPLICIT tag at current level */
93 { 0, &asn_PER_memb_X2N_non_truncated_constr_2, memb_X2N_non_truncated_constraint_1 },
94 0, 0, /* No default value */
97 { ATF_NOFLAGS, 0, offsetof(struct X2N_ResumeID, choice.truncated),
98 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
99 -1, /* IMPLICIT tag at current level */
102 { 0, &asn_PER_memb_X2N_truncated_constr_3, memb_X2N_truncated_constraint_1 },
103 0, 0, /* No default value */
107 static const asn_TYPE_tag2member_t asn_MAP_X2N_ResumeID_tag2el_1[] = {
108 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* non-truncated */
109 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* truncated */
111 static asn_CHOICE_specifics_t asn_SPC_X2N_ResumeID_specs_1 = {
112 sizeof(struct X2N_ResumeID),
113 offsetof(struct X2N_ResumeID, _asn_ctx),
114 offsetof(struct X2N_ResumeID, present),
115 sizeof(((struct X2N_ResumeID *)0)->present),
116 asn_MAP_X2N_ResumeID_tag2el_1,
117 2, /* Count of tags in the map */
119 2 /* Extensions start */
121 asn_TYPE_descriptor_t asn_DEF_X2N_ResumeID = {
125 0, /* No effective tags (pointer) */
126 0, /* No effective tags (count) */
127 0, /* No tags (pointer) */
128 0, /* No tags (count) */
129 { 0, &asn_PER_type_X2N_ResumeID_constr_1, CHOICE_constraint },
130 asn_MBR_X2N_ResumeID_1,
131 2, /* Elements count */
132 &asn_SPC_X2N_ResumeID_specs_1 /* Additional specs */