/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "X2AP-PDU-Contents"
 * 	found in "Spec/e2ap-v031ex.asn"
 * 	`asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
 */

#include "ENDCX2SetupRequest.h"

asn_TYPE_member_t asn_MBR_ENDCX2SetupRequest_1[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupRequest, protocolIEs),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_Container_9515P84,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"protocolIEs"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCX2SetupRequest_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCX2SetupRequest_tag2el_1[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* protocolIEs */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCX2SetupRequest_specs_1 = {
	sizeof(struct ENDCX2SetupRequest),
	offsetof(struct ENDCX2SetupRequest, _asn_ctx),
	asn_MAP_ENDCX2SetupRequest_tag2el_1,
	1,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCX2SetupRequest = {
	"ENDCX2SetupRequest",
	"ENDCX2SetupRequest",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCX2SetupRequest_tags_1,
	sizeof(asn_DEF_ENDCX2SetupRequest_tags_1)
		/sizeof(asn_DEF_ENDCX2SetupRequest_tags_1[0]), /* 1 */
	asn_DEF_ENDCX2SetupRequest_tags_1,	/* Same as above */
	sizeof(asn_DEF_ENDCX2SetupRequest_tags_1)
		/sizeof(asn_DEF_ENDCX2SetupRequest_tags_1[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCX2SetupRequest_1,
	1,	/* Elements count */
	&asn_SPC_ENDCX2SetupRequest_specs_1	/* Additional specs */
};

