/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "NGAP-IEs"
 * 	found in "NGAP-IEs.asn"
 * 	`asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-OER -gen-PER -no-gen-example -D ngap`
 */

#include "ASN_NGAP_UEAppLayerMeasConfigInfo.h"

#include "ASN_NGAP_AreaScopeOfQMC.h"
#include "ASN_NGAP_SliceSupportListQMC.h"
#include "ASN_NGAP_MDT-AlignmentInfo.h"
#include "ASN_NGAP_AvailableRANVisibleQoEMetrics.h"
#include "ASN_NGAP_ProtocolExtensionContainer.h"
/*
 * This type is implemented using NativeEnumerated,
 * so here we adjust the DEF accordingly.
 */
static int
memb_ASN_NGAP_containerForAppLayerMeasConfig_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
	size_t size;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	size = st->size;
	
	if((size >= 1 && size <= 8000)) {
		/* 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_ASN_NGAP_measConfigAppLayerID_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 <= 15)) {
		/* 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_per_constraints_t asn_PER_type_ASN_NGAP_qoEMeasurementStatus_constr_6 CC_NOTUSED = {
	{ APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }	/* (0..0,...) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_ASN_NGAP_containerForAppLayerMeasConfig_constr_9 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_CONSTRAINED,	 13,  13,  1,  8000 }	/* (SIZE(1..8000)) */,
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_ASN_NGAP_measConfigAppLayerID_constr_10 CC_NOTUSED = {
	{ APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  15 }	/* (0..15,...) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_ASN_NGAP_qoEMeasurementStatus_value2enum_6[] = {
	{ 0,	7,	"ongoing" }
	/* This list is extensible */
};
static const unsigned int asn_MAP_ASN_NGAP_qoEMeasurementStatus_enum2value_6[] = {
	0	/* ongoing(0) */
	/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_ASN_NGAP_qoEMeasurementStatus_specs_6 = {
	asn_MAP_ASN_NGAP_qoEMeasurementStatus_value2enum_6,	/* "tag" => N; sorted by tag */
	asn_MAP_ASN_NGAP_qoEMeasurementStatus_enum2value_6,	/* N => "tag"; sorted by N */
	1,	/* Number of elements in the maps */
	2,	/* Extensions before this member */
	1,	/* Strict enumeration */
	0,	/* Native long size */
	0
};
static const ber_tlv_tag_t asn_DEF_ASN_NGAP_qoEMeasurementStatus_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_ASN_NGAP_qoEMeasurementStatus_6 = {
	"qoEMeasurementStatus",
	"qoEMeasurementStatus",
	&asn_OP_NativeEnumerated,
	asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6,
	sizeof(asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6)
		/sizeof(asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6[0]) - 1, /* 1 */
	asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6,	/* Same as above */
	sizeof(asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6)
		/sizeof(asn_DEF_ASN_NGAP_qoEMeasurementStatus_tags_6[0]), /* 2 */
	{ 0, &asn_PER_type_ASN_NGAP_qoEMeasurementStatus_constr_6, NativeEnumerated_constraint },
	0, 0,	/* Defined elsewhere */
	&asn_SPC_ASN_NGAP_qoEMeasurementStatus_specs_6	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ASN_NGAP_UEAppLayerMeasConfigInfo_1[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, qoEReference),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_QoEReference,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"qoEReference"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, serviceType),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_ServiceType,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"serviceType"
		},
	{ ATF_POINTER, 1, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, areaScopeOfQMC),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_AreaScopeOfQMC,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"areaScopeOfQMC"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, measCollEntityIPAddress),
		(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_TransportLayerAddress,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"measCollEntityIPAddress"
		},
	{ ATF_POINTER, 7, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, qoEMeasurementStatus),
		(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_qoEMeasurementStatus_6,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"qoEMeasurementStatus"
		},
	{ ATF_POINTER, 6, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, containerForAppLayerMeasConfig),
		(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_OCTET_STRING,
		0,
		{ 0, &asn_PER_memb_ASN_NGAP_containerForAppLayerMeasConfig_constr_9,  memb_ASN_NGAP_containerForAppLayerMeasConfig_constraint_1 },
		0, 0, /* No default value */
		"containerForAppLayerMeasConfig"
		},
	{ ATF_POINTER, 5, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, measConfigAppLayerID),
		(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_NativeInteger,
		0,
		{ 0, &asn_PER_memb_ASN_NGAP_measConfigAppLayerID_constr_10,  memb_ASN_NGAP_measConfigAppLayerID_constraint_1 },
		0, 0, /* No default value */
		"measConfigAppLayerID"
		},
	{ ATF_POINTER, 4, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, sliceSupportListQMC),
		(ASN_TAG_CLASS_CONTEXT | (7 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_SliceSupportListQMC,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"sliceSupportListQMC"
		},
	{ ATF_POINTER, 3, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, mDT_AlignmentInfo),
		(ASN_TAG_CLASS_CONTEXT | (8 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_MDT_AlignmentInfo,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"mDT-AlignmentInfo"
		},
	{ ATF_POINTER, 2, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, availableRANVisibleQoEMetrics),
		(ASN_TAG_CLASS_CONTEXT | (9 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_AvailableRANVisibleQoEMetrics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"availableRANVisibleQoEMetrics"
		},
	{ ATF_POINTER, 1, offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, iE_Extensions),
		(ASN_TAG_CLASS_CONTEXT | (10 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ASN_NGAP_ProtocolExtensionContainer_174P348,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"iE-Extensions"
		},
};
static const int asn_MAP_ASN_NGAP_UEAppLayerMeasConfigInfo_oms_1[] = { 2, 4, 5, 6, 7, 8, 9, 10 };
static const ber_tlv_tag_t asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ASN_NGAP_UEAppLayerMeasConfigInfo_tag2el_1[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qoEReference */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* serviceType */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* areaScopeOfQMC */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* measCollEntityIPAddress */
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* qoEMeasurementStatus */
    { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* containerForAppLayerMeasConfig */
    { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* measConfigAppLayerID */
    { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sliceSupportListQMC */
    { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* mDT-AlignmentInfo */
    { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* availableRANVisibleQoEMetrics */
    { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ASN_NGAP_UEAppLayerMeasConfigInfo_specs_1 = {
	sizeof(struct ASN_NGAP_UEAppLayerMeasConfigInfo),
	offsetof(struct ASN_NGAP_UEAppLayerMeasConfigInfo, _asn_ctx),
	asn_MAP_ASN_NGAP_UEAppLayerMeasConfigInfo_tag2el_1,
	11,	/* Count of tags in the map */
	asn_MAP_ASN_NGAP_UEAppLayerMeasConfigInfo_oms_1,	/* Optional members */
	8, 0,	/* Root/Additions */
	11,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo = {
	"UEAppLayerMeasConfigInfo",
	"UEAppLayerMeasConfigInfo",
	&asn_OP_SEQUENCE,
	asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1,
	sizeof(asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1)
		/sizeof(asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1[0]), /* 1 */
	asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1,	/* Same as above */
	sizeof(asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1)
		/sizeof(asn_DEF_ASN_NGAP_UEAppLayerMeasConfigInfo_tags_1[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ASN_NGAP_UEAppLayerMeasConfigInfo_1,
	11,	/* Elements count */
	&asn_SPC_ASN_NGAP_UEAppLayerMeasConfigInfo_specs_1	/* Additional specs */
};

