2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\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 "ReservedSubframePattern.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_reservedSubframePattern_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
14 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
18 ASN__CTFAIL(app_key, td, sptr,
\r
19 "%s: value not given (%s:%d)",
\r
20 td->name, __FILE__, __LINE__);
\r
26 size = 8 * st->size - (st->bits_unused & 0x07);
\r
31 if((size >= 10 && size <= 160)) {
\r
32 /* Constraint check succeeded */
\r
35 ASN__CTFAIL(app_key, td, sptr,
\r
36 "%s: constraint failed (%s:%d)",
\r
37 td->name, __FILE__, __LINE__);
\r
43 memb_mBSFNControlRegionLength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
44 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
48 ASN__CTFAIL(app_key, td, sptr,
\r
49 "%s: value not given (%s:%d)",
\r
50 td->name, __FILE__, __LINE__);
\r
54 value = *(const long *)sptr;
\r
56 if((value >= 0 && value <= 3)) {
\r
57 /* Constraint check succeeded */
\r
60 ASN__CTFAIL(app_key, td, sptr,
\r
61 "%s: constraint failed (%s:%d)",
\r
62 td->name, __FILE__, __LINE__);
\r
67 static asn_per_constraints_t asn_PER_memb_reservedSubframePattern_constr_3 CC_NOTUSED = {
\r
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
69 { APC_CONSTRAINED, 8, 8, 10, 160 } /* (SIZE(10..160)) */,
\r
70 0, 0 /* No PER value map */
\r
72 static asn_per_constraints_t asn_PER_memb_mBSFNControlRegionLength_constr_4 CC_NOTUSED = {
\r
73 { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
\r
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
75 0, 0 /* No PER value map */
\r
77 asn_TYPE_member_t asn_MBR_ReservedSubframePattern_1[] = {
\r
78 { ATF_NOFLAGS, 0, offsetof(struct ReservedSubframePattern, subframeType),
\r
79 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
80 -1, /* IMPLICIT tag at current level */
\r
81 &asn_DEF_SubframeType,
\r
84 0, 0, /* No default value */
\r
87 { ATF_NOFLAGS, 0, offsetof(struct ReservedSubframePattern, reservedSubframePattern),
\r
88 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
89 -1, /* IMPLICIT tag at current level */
\r
90 &asn_DEF_BIT_STRING,
\r
92 { 0, &asn_PER_memb_reservedSubframePattern_constr_3, memb_reservedSubframePattern_constraint_1 },
\r
93 0, 0, /* No default value */
\r
94 "reservedSubframePattern"
\r
96 { ATF_NOFLAGS, 0, offsetof(struct ReservedSubframePattern, mBSFNControlRegionLength),
\r
97 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
98 -1, /* IMPLICIT tag at current level */
\r
99 &asn_DEF_NativeInteger,
\r
101 { 0, &asn_PER_memb_mBSFNControlRegionLength_constr_4, memb_mBSFNControlRegionLength_constraint_1 },
\r
102 0, 0, /* No default value */
\r
103 "mBSFNControlRegionLength"
\r
105 { ATF_POINTER, 1, offsetof(struct ReservedSubframePattern, iE_Extensions),
\r
106 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
107 -1, /* IMPLICIT tag at current level */
\r
108 &asn_DEF_ProtocolExtensionContainer_8231P185,
\r
111 0, 0, /* No default value */
\r
115 static const int asn_MAP_ReservedSubframePattern_oms_1[] = { 3 };
\r
116 static const ber_tlv_tag_t asn_DEF_ReservedSubframePattern_tags_1[] = {
\r
117 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
119 static const asn_TYPE_tag2member_t asn_MAP_ReservedSubframePattern_tag2el_1[] = {
\r
120 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subframeType */
\r
121 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reservedSubframePattern */
\r
122 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mBSFNControlRegionLength */
\r
123 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
\r
125 asn_SEQUENCE_specifics_t asn_SPC_ReservedSubframePattern_specs_1 = {
\r
126 sizeof(struct ReservedSubframePattern),
\r
127 offsetof(struct ReservedSubframePattern, _asn_ctx),
\r
128 asn_MAP_ReservedSubframePattern_tag2el_1,
\r
129 4, /* Count of tags in the map */
\r
130 asn_MAP_ReservedSubframePattern_oms_1, /* Optional members */
\r
131 1, 0, /* Root/Additions */
\r
132 4, /* First extension addition */
\r
134 asn_TYPE_descriptor_t asn_DEF_ReservedSubframePattern = {
\r
135 "ReservedSubframePattern",
\r
136 "ReservedSubframePattern",
\r
138 asn_DEF_ReservedSubframePattern_tags_1,
\r
139 sizeof(asn_DEF_ReservedSubframePattern_tags_1)
\r
140 /sizeof(asn_DEF_ReservedSubframePattern_tags_1[0]), /* 1 */
\r
141 asn_DEF_ReservedSubframePattern_tags_1, /* Same as above */
\r
142 sizeof(asn_DEF_ReservedSubframePattern_tags_1)
\r
143 /sizeof(asn_DEF_ReservedSubframePattern_tags_1[0]), /* 1 */
\r
144 { 0, 0, SEQUENCE_constraint },
\r
145 asn_MBR_ReservedSubframePattern_1,
\r
146 4, /* Elements count */
\r
147 &asn_SPC_ReservedSubframePattern_specs_1 /* Additional specs */
\r