/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "X2AP-IEs"
 * 	found in "Spec/e2_and_x2-combined-and-minimized.asn1"
 * 	`asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
 */

#ifndef	_SubframeAllocation_H_
#define	_SubframeAllocation_H_


#include "asn_application.h"

/* Including external dependencies */
#include "Oneframe.h"
#include "Fourframes.h"
#include "constr_CHOICE.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Dependencies */
typedef enum SubframeAllocation_PR {
	SubframeAllocation_PR_NOTHING,	/* No components present */
	SubframeAllocation_PR_oneframe,
	SubframeAllocation_PR_fourframes
	/* Extensions may appear below */
	
} SubframeAllocation_PR;

/* SubframeAllocation */
typedef struct SubframeAllocation {
	SubframeAllocation_PR present;
	union SubframeAllocation_u {
		Oneframe_t	 oneframe;
		Fourframes_t	 fourframes;
		/*
		 * This type is extensible,
		 * possible extensions are below.
		 */
	} choice;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} SubframeAllocation_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_SubframeAllocation;
extern asn_CHOICE_specifics_t asn_SPC_SubframeAllocation_specs_1;
extern asn_TYPE_member_t asn_MBR_SubframeAllocation_1[2];
extern asn_per_constraints_t asn_PER_type_SubframeAllocation_constr_1;

#ifdef __cplusplus
}
#endif

#endif	/* _SubframeAllocation_H_ */
#include "asn_internal.h"
