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


#include "asn_application.h"

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

#ifdef __cplusplus
extern "C" {
#endif

/* Forward declarations */
struct ProtocolExtensionContainer;

/* ProtectedFootprintTimePattern */
typedef struct ProtectedFootprintTimePattern {
	long	 protectedFootprintTimePeriodicity;
	long	 protectedFootprintStartTime;
	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;
} ProtectedFootprintTimePattern_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ProtectedFootprintTimePattern;
extern asn_SEQUENCE_specifics_t asn_SPC_ProtectedFootprintTimePattern_specs_1;
extern asn_TYPE_member_t asn_MBR_ProtectedFootprintTimePattern_1[3];

#ifdef __cplusplus
}
#endif

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