/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "F1AP-IEs" * found in "../F1.asn1" * `asn1c -D ../F1_output/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER` */ #include "Dynamic5QIDescriptor.h" #include "ProtocolExtensionContainer.h" /* * This type is implemented using NativeEnumerated, * so here we adjust the DEF accordingly. */ static int memb_qoSPriorityLevel_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 1 && value <= 127)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_fiveQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 0 && value <= 255)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static asn_oer_constraints_t asn_OER_type_delayCritical_constr_6 CC_NOTUSED = { { 0, 0 }, -1}; static asn_per_constraints_t asn_PER_type_delayCritical_constr_6 CC_NOTUSED = { { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_qoSPriorityLevel_constr_2 CC_NOTUSED = { { 1, 1 } /* (1..127) */, -1}; static asn_per_constraints_t asn_PER_memb_qoSPriorityLevel_constr_2 CC_NOTUSED = { { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..127) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_fiveQI_constr_5 CC_NOTUSED = { { 0, 0 }, -1}; static asn_per_constraints_t asn_PER_memb_fiveQI_constr_5 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 8, 8, 0, 255 } /* (0..255,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; static const asn_INTEGER_enum_map_t asn_MAP_delayCritical_value2enum_6[] = { { 0, 14, "delay-critical" }, { 1, 18, "non-delay-critical" } }; static const unsigned int asn_MAP_delayCritical_enum2value_6[] = { 0, /* delay-critical(0) */ 1 /* non-delay-critical(1) */ }; static const asn_INTEGER_specifics_t asn_SPC_delayCritical_specs_6 = { asn_MAP_delayCritical_value2enum_6, /* "tag" => N; sorted by tag */ asn_MAP_delayCritical_enum2value_6, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; static const ber_tlv_tag_t asn_DEF_delayCritical_tags_6[] = { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_delayCritical_6 = { "delayCritical", "delayCritical", &asn_OP_NativeEnumerated, asn_DEF_delayCritical_tags_6, sizeof(asn_DEF_delayCritical_tags_6) /sizeof(asn_DEF_delayCritical_tags_6[0]) - 1, /* 1 */ asn_DEF_delayCritical_tags_6, /* Same as above */ sizeof(asn_DEF_delayCritical_tags_6) /sizeof(asn_DEF_delayCritical_tags_6[0]), /* 2 */ { &asn_OER_type_delayCritical_constr_6, &asn_PER_type_delayCritical_constr_6, NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ &asn_SPC_delayCritical_specs_6 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Dynamic5QIDescriptor_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Dynamic5QIDescriptor, qoSPriorityLevel), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { &asn_OER_memb_qoSPriorityLevel_constr_2, &asn_PER_memb_qoSPriorityLevel_constr_2, memb_qoSPriorityLevel_constraint_1 }, 0, 0, /* No default value */ "qoSPriorityLevel" }, { ATF_NOFLAGS, 0, offsetof(struct Dynamic5QIDescriptor, packetDelayBudget), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_PacketDelayBudget, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "packetDelayBudget" }, { ATF_NOFLAGS, 0, offsetof(struct Dynamic5QIDescriptor, packetErrorRate), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_PacketErrorRate, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "packetErrorRate" }, { ATF_POINTER, 5, offsetof(struct Dynamic5QIDescriptor, fiveQI), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { &asn_OER_memb_fiveQI_constr_5, &asn_PER_memb_fiveQI_constr_5, memb_fiveQI_constraint_1 }, 0, 0, /* No default value */ "fiveQI" }, { ATF_POINTER, 4, offsetof(struct Dynamic5QIDescriptor, delayCritical), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_delayCritical_6, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "delayCritical" }, { ATF_POINTER, 3, offsetof(struct Dynamic5QIDescriptor, averagingWindow), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AveragingWindow, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "averagingWindow" }, { ATF_POINTER, 2, offsetof(struct Dynamic5QIDescriptor, maxDataBurstVolume), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_MaxDataBurstVolume, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "maxDataBurstVolume" }, { ATF_POINTER, 1, offsetof(struct Dynamic5QIDescriptor, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ProtocolExtensionContainer_4624P37, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "iE-Extensions" }, }; static const int asn_MAP_Dynamic5QIDescriptor_oms_1[] = { 3, 4, 5, 6, 7 }; static const ber_tlv_tag_t asn_DEF_Dynamic5QIDescriptor_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_Dynamic5QIDescriptor_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qoSPriorityLevel */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* packetDelayBudget */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* packetErrorRate */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* fiveQI */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* delayCritical */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* averagingWindow */ { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* maxDataBurstVolume */ { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* iE-Extensions */ }; asn_SEQUENCE_specifics_t asn_SPC_Dynamic5QIDescriptor_specs_1 = { sizeof(struct Dynamic5QIDescriptor), offsetof(struct Dynamic5QIDescriptor, _asn_ctx), asn_MAP_Dynamic5QIDescriptor_tag2el_1, 8, /* Count of tags in the map */ asn_MAP_Dynamic5QIDescriptor_oms_1, /* Optional members */ 5, 0, /* Root/Additions */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_Dynamic5QIDescriptor = { "Dynamic5QIDescriptor", "Dynamic5QIDescriptor", &asn_OP_SEQUENCE, asn_DEF_Dynamic5QIDescriptor_tags_1, sizeof(asn_DEF_Dynamic5QIDescriptor_tags_1) /sizeof(asn_DEF_Dynamic5QIDescriptor_tags_1[0]), /* 1 */ asn_DEF_Dynamic5QIDescriptor_tags_1, /* Same as above */ sizeof(asn_DEF_Dynamic5QIDescriptor_tags_1) /sizeof(asn_DEF_Dynamic5QIDescriptor_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_Dynamic5QIDescriptor_1, 8, /* Elements count */ &asn_SPC_Dynamic5QIDescriptor_specs_1 /* Additional specs */ };