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 "MobilityParametersInformation.h"
\r
11 memb_handoverTriggerChange_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
16 ASN__CTFAIL(app_key, td, sptr,
\r
17 "%s: value not given (%s:%d)",
\r
18 td->name, __FILE__, __LINE__);
\r
22 value = *(const long *)sptr;
\r
24 if((value >= -20 && value <= 20)) {
\r
25 /* Constraint check succeeded */
\r
28 ASN__CTFAIL(app_key, td, sptr,
\r
29 "%s: constraint failed (%s:%d)",
\r
30 td->name, __FILE__, __LINE__);
\r
35 static asn_per_constraints_t asn_PER_memb_handoverTriggerChange_constr_2 CC_NOTUSED = {
\r
36 { APC_CONSTRAINED, 6, 6, -20, 20 } /* (-20..20) */,
\r
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
38 0, 0 /* No PER value map */
\r
40 static asn_TYPE_member_t asn_MBR_MobilityParametersInformation_1[] = {
\r
41 { ATF_NOFLAGS, 0, offsetof(struct MobilityParametersInformation, handoverTriggerChange),
\r
42 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
43 -1, /* IMPLICIT tag at current level */
\r
44 &asn_DEF_NativeInteger,
\r
46 { 0, &asn_PER_memb_handoverTriggerChange_constr_2, memb_handoverTriggerChange_constraint_1 },
\r
47 0, 0, /* No default value */
\r
48 "handoverTriggerChange"
\r
51 static const ber_tlv_tag_t asn_DEF_MobilityParametersInformation_tags_1[] = {
\r
52 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
54 static const asn_TYPE_tag2member_t asn_MAP_MobilityParametersInformation_tag2el_1[] = {
\r
55 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* handoverTriggerChange */
\r
57 static asn_SEQUENCE_specifics_t asn_SPC_MobilityParametersInformation_specs_1 = {
\r
58 sizeof(struct MobilityParametersInformation),
\r
59 offsetof(struct MobilityParametersInformation, _asn_ctx),
\r
60 asn_MAP_MobilityParametersInformation_tag2el_1,
\r
61 1, /* Count of tags in the map */
\r
62 0, 0, 0, /* Optional elements (not needed) */
\r
63 1, /* First extension addition */
\r
65 asn_TYPE_descriptor_t asn_DEF_MobilityParametersInformation = {
\r
66 "MobilityParametersInformation",
\r
67 "MobilityParametersInformation",
\r
69 asn_DEF_MobilityParametersInformation_tags_1,
\r
70 sizeof(asn_DEF_MobilityParametersInformation_tags_1)
\r
71 /sizeof(asn_DEF_MobilityParametersInformation_tags_1[0]), /* 1 */
\r
72 asn_DEF_MobilityParametersInformation_tags_1, /* Same as above */
\r
73 sizeof(asn_DEF_MobilityParametersInformation_tags_1)
\r
74 /sizeof(asn_DEF_MobilityParametersInformation_tags_1[0]), /* 1 */
\r
75 { 0, 0, SEQUENCE_constraint },
\r
76 asn_MBR_MobilityParametersInformation_1,
\r
77 1, /* Elements count */
\r
78 &asn_SPC_MobilityParametersInformation_specs_1 /* Additional specs */
\r