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

#ifndef	_Interface_MessageID_H_
#define	_Interface_MessageID_H_


#include <asn_application.h>

/* Including external dependencies */
#include <NativeInteger.h>
#include <NativeEnumerated.h>
#include <constr_SEQUENCE.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Dependencies */
typedef enum Interface_MessageID__messageType {
	Interface_MessageID__messageType_initiatingMessage	= 0,
	Interface_MessageID__messageType_successfulOutcome	= 1,
	Interface_MessageID__messageType_unsuccessfulOutcome	= 2
	/*
	 * Enumeration is extensible
	 */
} e_Interface_MessageID__messageType;

/* Interface-MessageID */
typedef struct Interface_MessageID {
	long	 interfaceProcedureID;
	long	 messageType;
	/*
	 * This type is extensible,
	 * possible extensions are below.
	 */
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} Interface_MessageID_t;

/* Implementation */
/* extern asn_TYPE_descriptor_t asn_DEF_messageType_3;	// (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_Interface_MessageID;
extern asn_SEQUENCE_specifics_t asn_SPC_Interface_MessageID_specs_1;
extern asn_TYPE_member_t asn_MBR_Interface_MessageID_1[2];

#ifdef __cplusplus
}
#endif

#endif	/* _Interface_MessageID_H_ */
#include <asn_internal.h>
