2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "X2AP-15-4-0.asn1"
5 * `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
8 #include "CoMPInformationStartTime.h"
10 #include "ProtocolExtensionContainer.h"
12 memb_startSFN_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 value = *(const long *)sptr;
25 if((value >= 0 && value <= 1023)) {
26 /* Constraint check succeeded */
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
37 memb_startSubframeNumber_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
38 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
42 ASN__CTFAIL(app_key, td, sptr,
43 "%s: value not given (%s:%d)",
44 td->name, __FILE__, __LINE__);
48 value = *(const long *)sptr;
50 if((value >= 0 && value <= 9)) {
51 /* Constraint check succeeded */
54 ASN__CTFAIL(app_key, td, sptr,
55 "%s: constraint failed (%s:%d)",
56 td->name, __FILE__, __LINE__);
61 static asn_oer_constraints_t asn_OER_memb_startSFN_constr_3 CC_NOTUSED = {
64 static asn_per_constraints_t asn_PER_memb_startSFN_constr_3 CC_NOTUSED = {
65 { APC_CONSTRAINED | APC_EXTENSIBLE, 10, 10, 0, 1023 } /* (0..1023,...) */,
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 0, 0 /* No PER value map */
69 static asn_oer_constraints_t asn_OER_memb_startSubframeNumber_constr_4 CC_NOTUSED = {
72 static asn_per_constraints_t asn_PER_memb_startSubframeNumber_constr_4 CC_NOTUSED = {
73 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 9 } /* (0..9,...) */,
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
75 0, 0 /* No PER value map */
77 static asn_oer_constraints_t asn_OER_type_CoMPInformationStartTime_constr_1 CC_NOTUSED = {
79 -1 /* (SIZE(0..1)) */};
80 asn_per_constraints_t asn_PER_type_CoMPInformationStartTime_constr_1 CC_NOTUSED = {
81 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
82 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (SIZE(0..1)) */,
83 0, 0 /* No PER value map */
85 static asn_TYPE_member_t asn_MBR_Member_2[] = {
86 { ATF_NOFLAGS, 0, offsetof(struct CoMPInformationStartTime__Member, startSFN),
87 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
88 -1, /* IMPLICIT tag at current level */
89 &asn_DEF_NativeInteger,
91 { &asn_OER_memb_startSFN_constr_3, &asn_PER_memb_startSFN_constr_3, memb_startSFN_constraint_2 },
92 0, 0, /* No default value */
95 { ATF_NOFLAGS, 0, offsetof(struct CoMPInformationStartTime__Member, startSubframeNumber),
96 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
97 -1, /* IMPLICIT tag at current level */
98 &asn_DEF_NativeInteger,
100 { &asn_OER_memb_startSubframeNumber_constr_4, &asn_PER_memb_startSubframeNumber_constr_4, memb_startSubframeNumber_constraint_2 },
101 0, 0, /* No default value */
102 "startSubframeNumber"
104 { ATF_POINTER, 1, offsetof(struct CoMPInformationStartTime__Member, iE_Extensions),
105 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
106 -1, /* IMPLICIT tag at current level */
107 &asn_DEF_ProtocolExtensionContainer_7683P120,
110 0, 0, /* No default value */
114 static const int asn_MAP_Member_oms_2[] = { 2 };
115 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
116 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
118 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
119 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startSFN */
120 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* startSubframeNumber */
121 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
123 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
124 sizeof(struct CoMPInformationStartTime__Member),
125 offsetof(struct CoMPInformationStartTime__Member, _asn_ctx),
126 asn_MAP_Member_tag2el_2,
127 3, /* Count of tags in the map */
128 asn_MAP_Member_oms_2, /* Optional members */
129 1, 0, /* Root/Additions */
130 3, /* First extension addition */
132 static /* Use -fall-defs-global to expose */
133 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
137 asn_DEF_Member_tags_2,
138 sizeof(asn_DEF_Member_tags_2)
139 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
140 asn_DEF_Member_tags_2, /* Same as above */
141 sizeof(asn_DEF_Member_tags_2)
142 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
143 { 0, 0, SEQUENCE_constraint },
145 3, /* Elements count */
146 &asn_SPC_Member_specs_2 /* Additional specs */
149 asn_TYPE_member_t asn_MBR_CoMPInformationStartTime_1[] = {
151 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
156 0, 0, /* No default value */
160 static const ber_tlv_tag_t asn_DEF_CoMPInformationStartTime_tags_1[] = {
161 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
163 asn_SET_OF_specifics_t asn_SPC_CoMPInformationStartTime_specs_1 = {
164 sizeof(struct CoMPInformationStartTime),
165 offsetof(struct CoMPInformationStartTime, _asn_ctx),
166 0, /* XER encoding is XMLDelimitedItemList */
168 asn_TYPE_descriptor_t asn_DEF_CoMPInformationStartTime = {
169 "CoMPInformationStartTime",
170 "CoMPInformationStartTime",
172 asn_DEF_CoMPInformationStartTime_tags_1,
173 sizeof(asn_DEF_CoMPInformationStartTime_tags_1)
174 /sizeof(asn_DEF_CoMPInformationStartTime_tags_1[0]), /* 1 */
175 asn_DEF_CoMPInformationStartTime_tags_1, /* Same as above */
176 sizeof(asn_DEF_CoMPInformationStartTime_tags_1)
177 /sizeof(asn_DEF_CoMPInformationStartTime_tags_1[0]), /* 1 */
178 { &asn_OER_type_CoMPInformationStartTime_constr_1, &asn_PER_type_CoMPInformationStartTime_constr_1, SEQUENCE_OF_constraint },
179 asn_MBR_CoMPInformationStartTime_1,
180 1, /* Single element */
181 &asn_SPC_CoMPInformationStartTime_specs_1 /* Additional specs */