/*
 * 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	_RSRPMeasurementResult_H_
#define	_RSRPMeasurementResult_H_


#include "asn_application.h"

/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "ECGI.h"
#include "NativeInteger.h"
#include "constr_SEQUENCE.h"
#include "constr_SEQUENCE_OF.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Forward declarations */
struct ProtocolExtensionContainer;

/* Forward definitions */
typedef struct RSRPMeasurementResult__Member {
	ECGI_t	 rSRPCellID;
	long	 rSRPMeasured;
	struct ProtocolExtensionContainer	*iE_Extensions;	/* OPTIONAL */
	/*
	 * This type is extensible,
	 * possible extensions are below.
	 */
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} RSRPMeasurementResult__Member;

/* RSRPMeasurementResult */
typedef struct RSRPMeasurementResult {
	A_SEQUENCE_OF(RSRPMeasurementResult__Member) list;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} RSRPMeasurementResult_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_RSRPMeasurementResult;
extern asn_SET_OF_specifics_t asn_SPC_RSRPMeasurementResult_specs_1;
extern asn_TYPE_member_t asn_MBR_RSRPMeasurementResult_1[1];
extern asn_per_constraints_t asn_PER_type_RSRPMeasurementResult_constr_1;

#ifdef __cplusplus
}
#endif

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