
/*** <<< INCLUDES [PacketId] >>> ***/

#include <NativeInteger.h>

/*** <<< TYPE-DECLS [PacketId] >>> ***/

typedef long	 PacketId_t;

/*** <<< FUNC-DECLS [PacketId] >>> ***/

#define PacketId_id_TYPE1	((PacketId_t)1)
extern asn_per_constraints_t asn_PER_type_PacketId_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_PacketId;
asn_struct_free_f PacketId_free;
asn_struct_print_f PacketId_print;
asn_constr_check_f PacketId_constraint;
ber_type_decoder_f PacketId_decode_ber;
der_type_encoder_f PacketId_encode_der;
xer_type_decoder_f PacketId_decode_xer;
xer_type_encoder_f PacketId_encode_xer;
per_type_decoder_f PacketId_decode_uper;
per_type_encoder_f PacketId_encode_uper;
per_type_decoder_f PacketId_decode_aper;
per_type_encoder_f PacketId_encode_aper;

/*** <<< CODE [PacketId] >>> ***/

int
PacketId_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0L && value <= 65535L)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

/*
 * This type is implemented using NativeInteger,
 * so here we adjust the DEF accordingly.
 */

/*** <<< CTDEFS [PacketId] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
asn_per_constraints_t asn_PER_type_PacketId_constr_1 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [PacketId] >>> ***/

static const ber_tlv_tag_t asn_DEF_PacketId_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PacketId = {
	"PacketId",
	"PacketId",
	&asn_OP_NativeInteger,
	asn_DEF_PacketId_tags_1,
	sizeof(asn_DEF_PacketId_tags_1)
		/sizeof(asn_DEF_PacketId_tags_1[0]), /* 1 */
	asn_DEF_PacketId_tags_1,	/* Same as above */
	sizeof(asn_DEF_PacketId_tags_1)
		/sizeof(asn_DEF_PacketId_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_PacketId_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		PacketId_constraint
	},
	0, 0,	/* No members */
	0	/* No specifics */
};


/*** <<< INCLUDES [Color] >>> ***/

#include <NativeEnumerated.h>

/*** <<< DEPS [Color] >>> ***/

typedef enum Color {
	Color_red	= 0,
	Color_green	= 1,
	Color_blue	= 2
} e_Color;

/*** <<< TYPE-DECLS [Color] >>> ***/

typedef long	 Color_t;

/*** <<< FUNC-DECLS [Color] >>> ***/

extern asn_per_constraints_t asn_PER_type_Color_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_Color;
extern const asn_INTEGER_specifics_t asn_SPC_Color_specs_1;
asn_struct_free_f Color_free;
asn_struct_print_f Color_print;
asn_constr_check_f Color_constraint;
ber_type_decoder_f Color_decode_ber;
der_type_encoder_f Color_encode_der;
xer_type_decoder_f Color_decode_xer;
xer_type_encoder_f Color_encode_xer;
per_type_decoder_f Color_decode_uper;
per_type_encoder_f Color_encode_uper;
per_type_decoder_f Color_decode_aper;
per_type_encoder_f Color_encode_aper;

/*** <<< CODE [Color] >>> ***/

/*
 * This type is implemented using NativeEnumerated,
 * so here we adjust the DEF accordingly.
 */

/*** <<< CTDEFS [Color] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
asn_per_constraints_t asn_PER_type_Color_constr_1 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [Color] >>> ***/

static const asn_INTEGER_enum_map_t asn_MAP_Color_value2enum_1[] = {
	{ 0,	3,	"red" },
	{ 1,	5,	"green" },
	{ 2,	4,	"blue" }
};
static const unsigned int asn_MAP_Color_enum2value_1[] = {
	2,	/* blue(2) */
	1,	/* green(1) */
	0	/* red(0) */
};
const asn_INTEGER_specifics_t asn_SPC_Color_specs_1 = {
	asn_MAP_Color_value2enum_1,	/* "tag" => N; sorted by tag */
	asn_MAP_Color_enum2value_1,	/* N => "tag"; sorted by N */
	3,	/* Number of elements in the maps */
	0,	/* Enumeration is not extensible */
	1,	/* Strict enumeration */
	0,	/* Native long size */
	0
};
static const ber_tlv_tag_t asn_DEF_Color_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Color = {
	"Color",
	"Color",
	&asn_OP_NativeEnumerated,
	asn_DEF_Color_tags_1,
	sizeof(asn_DEF_Color_tags_1)
		/sizeof(asn_DEF_Color_tags_1[0]), /* 1 */
	asn_DEF_Color_tags_1,	/* Same as above */
	sizeof(asn_DEF_Color_tags_1)
		/sizeof(asn_DEF_Color_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_Color_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		NativeEnumerated_constraint
	},
	0, 0,	/* Defined elsewhere */
	&asn_SPC_Color_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [Valid] >>> ***/

#include <NativeEnumerated.h>

/*** <<< DEPS [Valid] >>> ***/

typedef enum Valid {
	Valid_crc_nok	= 0,
	Valid_crc_ok	= 1
} e_Valid;

/*** <<< TYPE-DECLS [Valid] >>> ***/

typedef long	 Valid_t;

/*** <<< FUNC-DECLS [Valid] >>> ***/

extern asn_per_constraints_t asn_PER_type_Valid_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_Valid;
extern const asn_INTEGER_specifics_t asn_SPC_Valid_specs_1;
asn_struct_free_f Valid_free;
asn_struct_print_f Valid_print;
asn_constr_check_f Valid_constraint;
ber_type_decoder_f Valid_decode_ber;
der_type_encoder_f Valid_encode_der;
xer_type_decoder_f Valid_decode_xer;
xer_type_encoder_f Valid_encode_xer;
per_type_decoder_f Valid_decode_uper;
per_type_encoder_f Valid_encode_uper;
per_type_decoder_f Valid_decode_aper;
per_type_encoder_f Valid_encode_aper;

/*** <<< CODE [Valid] >>> ***/

/*
 * This type is implemented using NativeEnumerated,
 * so here we adjust the DEF accordingly.
 */

/*** <<< CTDEFS [Valid] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
asn_per_constraints_t asn_PER_type_Valid_constr_1 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [Valid] >>> ***/

static const asn_INTEGER_enum_map_t asn_MAP_Valid_value2enum_1[] = {
	{ 0,	7,	"crc-nok" },
	{ 1,	6,	"crc-ok" }
};
static const unsigned int asn_MAP_Valid_enum2value_1[] = {
	0,	/* crc-nok(0) */
	1	/* crc-ok(1) */
};
const asn_INTEGER_specifics_t asn_SPC_Valid_specs_1 = {
	asn_MAP_Valid_value2enum_1,	/* "tag" => N; sorted by tag */
	asn_MAP_Valid_enum2value_1,	/* N => "tag"; sorted by N */
	2,	/* Number of elements in the maps */
	0,	/* Enumeration is not extensible */
	1,	/* Strict enumeration */
	0,	/* Native long size */
	0
};
static const ber_tlv_tag_t asn_DEF_Valid_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Valid = {
	"Valid",
	"Valid",
	&asn_OP_NativeEnumerated,
	asn_DEF_Valid_tags_1,
	sizeof(asn_DEF_Valid_tags_1)
		/sizeof(asn_DEF_Valid_tags_1[0]), /* 1 */
	asn_DEF_Valid_tags_1,	/* Same as above */
	sizeof(asn_DEF_Valid_tags_1)
		/sizeof(asn_DEF_Valid_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_Valid_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		NativeEnumerated_constraint
	},
	0, 0,	/* Defined elsewhere */
	&asn_SPC_Valid_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [Packet-List] >>> ***/

#include "UpperLayer-List.h"

/*** <<< TYPE-DECLS [Packet-List] >>> ***/

typedef UpperLayer_List_41P0_t	 Packet_List_t;

/*** <<< FUNC-DECLS [Packet-List] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_Packet_List;
asn_struct_free_f Packet_List_free;
asn_struct_print_f Packet_List_print;
asn_constr_check_f Packet_List_constraint;
ber_type_decoder_f Packet_List_decode_ber;
der_type_encoder_f Packet_List_encode_der;
xer_type_decoder_f Packet_List_decode_xer;
xer_type_encoder_f Packet_List_encode_xer;
per_type_decoder_f Packet_List_decode_uper;
per_type_encoder_f Packet_List_encode_uper;
per_type_decoder_f Packet_List_decode_aper;
per_type_encoder_f Packet_List_encode_aper;

/*** <<< CODE [Packet-List] >>> ***/

int
Packet_List_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	size_t size;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	/* Determine the number of elements */
	size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
	
	if((size >= 1UL && size <= 256UL)) {
		/* Perform validation of the inner elements */
		return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

/*
 * This type is implemented using UpperLayer_List_41P0,
 * so here we adjust the DEF accordingly.
 */

/*** <<< CTDEFS [Packet-List] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
static asn_per_constraints_t asn_PER_type_Packet_List_constr_1 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_CONSTRAINED,	 8,  8,  1,  256 }	/* (SIZE(1..256)) */,
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [Packet-List] >>> ***/

static const ber_tlv_tag_t asn_DEF_Packet_List_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_Packet_List = {
	"Packet-List",
	"Packet-List",
	&asn_OP_SEQUENCE_OF,
	asn_DEF_Packet_List_tags_1,
	sizeof(asn_DEF_Packet_List_tags_1)
		/sizeof(asn_DEF_Packet_List_tags_1[0]), /* 1 */
	asn_DEF_Packet_List_tags_1,	/* Same as above */
	sizeof(asn_DEF_Packet_List_tags_1)
		/sizeof(asn_DEF_Packet_List_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_Packet_List_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		Packet_List_constraint
	},
	asn_MBR_LowerLayer_List_45P0_1,
	1,	/* Single element */
	&asn_SPC_LowerLayer_List_45P0_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [UpperLayer-List] >>> ***/

#include "LowerLayer-List.h"

/*** <<< TYPE-DECLS [UpperLayer-List] >>> ***/

typedef LowerLayer_List_45P0_t	 UpperLayer_List_41P0_t;

/*** <<< FUNC-DECLS [UpperLayer-List] >>> ***/

extern asn_per_constraints_t asn_PER_type_UpperLayer_List_41P0_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_UpperLayer_List_41P0;
asn_struct_free_f UpperLayer_List_41P0_free;
asn_struct_print_f UpperLayer_List_41P0_print;
asn_constr_check_f UpperLayer_List_41P0_constraint;
ber_type_decoder_f UpperLayer_List_41P0_decode_ber;
der_type_encoder_f UpperLayer_List_41P0_encode_der;
xer_type_decoder_f UpperLayer_List_41P0_decode_xer;
xer_type_encoder_f UpperLayer_List_41P0_encode_xer;
per_type_decoder_f UpperLayer_List_41P0_decode_uper;
per_type_encoder_f UpperLayer_List_41P0_encode_uper;
per_type_decoder_f UpperLayer_List_41P0_decode_aper;
per_type_encoder_f UpperLayer_List_41P0_encode_aper;

/*** <<< CODE [UpperLayer-List] >>> ***/

int
UpperLayer_List_41P0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	size_t size;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	/* Determine the number of elements */
	size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
	
	if((size >= 1UL && size <= 256UL)) {
		/* Perform validation of the inner elements */
		return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

/*
 * This type is implemented using LowerLayer_List_45P0,
 * so here we adjust the DEF accordingly.
 */

/*** <<< CTDEFS [UpperLayer-List] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
asn_per_constraints_t asn_PER_type_UpperLayer_List_41P0_constr_1 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_CONSTRAINED,	 8,  8,  1,  256 }	/* (SIZE(1..256)) */,
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [UpperLayer-List] >>> ***/

static const ber_tlv_tag_t asn_DEF_UpperLayer_List_41P0_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_UpperLayer_List_41P0 = {
	"UpperLayer-List",
	"UpperLayer-List",
	&asn_OP_SEQUENCE_OF,
	asn_DEF_UpperLayer_List_41P0_tags_1,
	sizeof(asn_DEF_UpperLayer_List_41P0_tags_1)
		/sizeof(asn_DEF_UpperLayer_List_41P0_tags_1[0]), /* 1 */
	asn_DEF_UpperLayer_List_41P0_tags_1,	/* Same as above */
	sizeof(asn_DEF_UpperLayer_List_41P0_tags_1)
		/sizeof(asn_DEF_UpperLayer_List_41P0_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_UpperLayer_List_41P0_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		UpperLayer_List_41P0_constraint
	},
	asn_MBR_LowerLayer_List_45P0_1,
	1,	/* Single element */
	&asn_SPC_LowerLayer_List_45P0_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [LowerLayer-List] >>> ***/

#include <asn_SEQUENCE_OF.h>
#include <constr_SEQUENCE_OF.h>

/*** <<< FWD-DECLS [LowerLayer-List] >>> ***/

struct SinglePacket;

/*** <<< TYPE-DECLS [LowerLayer-List] >>> ***/

typedef struct LowerLayer_List_45P0 {
	A_SEQUENCE_OF(struct SinglePacket) list;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} LowerLayer_List_45P0_t;

/*** <<< FUNC-DECLS [LowerLayer-List] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_LowerLayer_List_45P0;
extern asn_SET_OF_specifics_t asn_SPC_LowerLayer_List_45P0_specs_1;
extern asn_TYPE_member_t asn_MBR_LowerLayer_List_45P0_1[1];
extern asn_per_constraints_t asn_PER_type_LowerLayer_List_45P0_constr_1;

/*** <<< POST-INCLUDE [LowerLayer-List] >>> ***/

#include "SinglePacket.h"

/*** <<< CTDEFS [LowerLayer-List] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
asn_per_constraints_t asn_PER_type_LowerLayer_List_45P0_constr_1 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_CONSTRAINED,	 8,  8,  1,  256 }	/* (SIZE(1..256)) */,
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [LowerLayer-List] >>> ***/

asn_TYPE_member_t asn_MBR_LowerLayer_List_45P0_1[] = {
	{ ATF_POINTER, 0, 0,
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_SinglePacket_48P0,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = ""
		},
};
static const ber_tlv_tag_t asn_DEF_LowerLayer_List_45P0_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_LowerLayer_List_45P0_specs_1 = {
	sizeof(struct LowerLayer_List_45P0),
	offsetof(struct LowerLayer_List_45P0, _asn_ctx),
	0,	/* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_LowerLayer_List_45P0 = {
	"LowerLayer-List",
	"LowerLayer-List",
	&asn_OP_SEQUENCE_OF,
	asn_DEF_LowerLayer_List_45P0_tags_1,
	sizeof(asn_DEF_LowerLayer_List_45P0_tags_1)
		/sizeof(asn_DEF_LowerLayer_List_45P0_tags_1[0]), /* 1 */
	asn_DEF_LowerLayer_List_45P0_tags_1,	/* Same as above */
	sizeof(asn_DEF_LowerLayer_List_45P0_tags_1)
		/sizeof(asn_DEF_LowerLayer_List_45P0_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_LowerLayer_List_45P0_constr_1,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		SEQUENCE_OF_constraint
	},
	asn_MBR_LowerLayer_List_45P0_1,
	1,	/* Single element */
	&asn_SPC_LowerLayer_List_45P0_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [SinglePacket] >>> ***/

#include "Packet.h"

/*** <<< TYPE-DECLS [SinglePacket] >>> ***/

typedef ClassItem_t	 SinglePacket_48P0_t;

/*** <<< FUNC-DECLS [SinglePacket] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_SinglePacket_48P0;
asn_struct_free_f SinglePacket_48P0_free;
asn_struct_print_f SinglePacket_48P0_print;
asn_constr_check_f SinglePacket_48P0_constraint;
ber_type_decoder_f SinglePacket_48P0_decode_ber;
der_type_encoder_f SinglePacket_48P0_encode_der;
xer_type_decoder_f SinglePacket_48P0_decode_xer;
xer_type_encoder_f SinglePacket_48P0_encode_xer;
per_type_decoder_f SinglePacket_48P0_decode_uper;
per_type_encoder_f SinglePacket_48P0_encode_uper;
per_type_decoder_f SinglePacket_48P0_decode_aper;
per_type_encoder_f SinglePacket_48P0_encode_aper;

/*** <<< CODE [SinglePacket] >>> ***/

/*
 * This type is implemented using ClassItem,
 * so here we adjust the DEF accordingly.
 */

/*** <<< STAT-DEFS [SinglePacket] >>> ***/

static const ber_tlv_tag_t asn_DEF_SinglePacket_48P0_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_TYPE_descriptor_t asn_DEF_SinglePacket_48P0 = {
	"SinglePacket",
	"SinglePacket",
	&asn_OP_SEQUENCE,
	asn_DEF_SinglePacket_48P0_tags_1,
	sizeof(asn_DEF_SinglePacket_48P0_tags_1)
		/sizeof(asn_DEF_SinglePacket_48P0_tags_1[0]), /* 1 */
	asn_DEF_SinglePacket_48P0_tags_1,	/* Same as above */
	sizeof(asn_DEF_SinglePacket_48P0_tags_1)
		/sizeof(asn_DEF_SinglePacket_48P0_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		SEQUENCE_constraint
	},
	asn_MBR_ClassItem_1,
	3,	/* Elements count */
	&asn_SPC_ClassItem_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [Packet] >>> ***/

#include "PacketId.h"
#include "Color.h"
#include <ANY.h>
#include <asn_ioc.h>
#include <OCTET_STRING.h>
#include "Valid.h"
#include <OPEN_TYPE.h>
#include <constr_CHOICE.h>
#include <constr_SEQUENCE.h>

/*** <<< DEPS [Packet] >>> ***/

typedef enum value_PR {
	value_PR_NOTHING,	/* No components present */
	value_PR_OCTET_STRING
} value_PR;

/*** <<< TYPE-DECLS [Packet] >>> ***/

typedef struct ClassItem {
	PacketId_t	 id;
	Color_t	 color;
	struct value {
		value_PR present;
		union ClassItem__value_u {
			OCTET_STRING_t	 OCTET_STRING;
		} choice;
		
		/* Context for parsing across buffer boundaries */
		asn_struct_ctx_t _asn_ctx;
	} value;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} ClassItem_t;

/*** <<< FUNC-DECLS [Packet] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_ClassItem;
extern asn_SEQUENCE_specifics_t asn_SPC_ClassItem_specs_1;
extern asn_TYPE_member_t asn_MBR_ClassItem_1[3];

/*** <<< IOC-TABLES [Packet] >>> ***/

static const long asn_VAL_1_id_TYPE1 = 1;
static const long asn_VAL_1_blue = 2;
static const long asn_VAL_1_crc_ok = 1;
static const asn_ioc_cell_t asn_IOS_ClassItem_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_PacketId, &asn_VAL_1_id_TYPE1 },
	{ "&color", aioc__value, &asn_DEF_Color, &asn_VAL_1_blue },
	{ "&Value", aioc__type, &asn_DEF_OCTET_STRING },
	{ "&valid", aioc__value, &asn_DEF_Valid, &asn_VAL_1_crc_ok }
};
static const asn_ioc_set_t asn_IOS_ClassItem_1[] = {
	{ 1, 4, asn_IOS_ClassItem_1_rows }
};

/*** <<< CODE [Packet] >>> ***/

static int
memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0L && value <= 65535L)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ClassItem_color_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ClassItem_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &color */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ClassItem, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_color_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ClassItem_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ClassItem_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ClassItem, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}


/*** <<< CTDEFS [Packet] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
static asn_per_constraints_t asn_PER_memb_id_constr_2 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
static asn_per_constraints_t asn_PER_memb_color_constr_3 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [Packet] >>> ***/

static asn_TYPE_member_t asn_MBR_value_4[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct value, choice.OCTET_STRING),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_OCTET_STRING,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "OCTET STRING"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_4[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* OCTET STRING */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
	sizeof(struct value),
	offsetof(struct value, _asn_ctx),
	offsetof(struct value, present),
	sizeof(((struct value *)0)->present),
	.tag2el = asn_MAP_value_tag2el_4,
	.tag2el_count = 1,	/* Count of tags in the map */
	0, 0,
	.first_extension = -1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_4 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		OPEN_TYPE_constraint
	},
	asn_MBR_value_4,
	1,	/* Elements count */
	&asn_SPC_value_specs_4	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ClassItem_1[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ClassItem, id),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_PacketId,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = &asn_PER_memb_id_constr_2,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = memb_id_constraint_1
		},
		0, 0, /* No default value */
		.name = "id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ClassItem, color),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_Color,
		.type_selector = select_ClassItem_color_type,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = &asn_PER_memb_color_constr_3,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = memb_color_constraint_1
		},
		0, 0, /* No default value */
		.name = "color"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ClassItem, value),
		.tag = -1 /* Ambiguous tag (ANY?) */,
		.tag_mode = 0,
		.type = &asn_DEF_value_4,
		.type_selector = select_ClassItem_value_type,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = &asn_PER_memb_value_constr_4,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = memb_value_constraint_1
		},
		0, 0, /* No default value */
		.name = "value"
		},
};
static const ber_tlv_tag_t asn_DEF_ClassItem_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ClassItem_tag2el_1[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* color */
};
asn_SEQUENCE_specifics_t asn_SPC_ClassItem_specs_1 = {
	sizeof(struct ClassItem),
	offsetof(struct ClassItem, _asn_ctx),
	.tag2el = asn_MAP_ClassItem_tag2el_1,
	.tag2el_count = 2,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ClassItem = {
	"ClassItem",
	"ClassItem",
	&asn_OP_SEQUENCE,
	asn_DEF_ClassItem_tags_1,
	sizeof(asn_DEF_ClassItem_tags_1)
		/sizeof(asn_DEF_ClassItem_tags_1[0]), /* 1 */
	asn_DEF_ClassItem_tags_1,	/* Same as above */
	sizeof(asn_DEF_ClassItem_tags_1)
		/sizeof(asn_DEF_ClassItem_tags_1[0]), /* 1 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		SEQUENCE_constraint
	},
	asn_MBR_ClassItem_1,
	3,	/* Elements count */
	&asn_SPC_ClassItem_specs_1	/* Additional specs */
};


/*** <<< INCLUDES [EXTERNAL] >>> ***/

#include <OBJECT_IDENTIFIER.h>
#include <NativeInteger.h>
#include <ObjectDescriptor.h>
#include <ANY.h>
#include <OCTET_STRING.h>
#include <BIT_STRING.h>
#include <constr_CHOICE.h>
#include <constr_SEQUENCE.h>

/*** <<< DEPS [EXTERNAL] >>> ***/

typedef enum encoding_PR {
	encoding_PR_NOTHING,	/* No components present */
	encoding_PR_single_ASN1_type,
	encoding_PR_octet_aligned,
	encoding_PR_arbitrary
} encoding_PR;

/*** <<< TYPE-DECLS [EXTERNAL] >>> ***/

typedef struct EXTERNAL {
	OBJECT_IDENTIFIER_t	*direct_reference;	/* OPTIONAL */
	long	*indirect_reference;	/* OPTIONAL */
	ObjectDescriptor_t	*data_value_descriptor;	/* OPTIONAL */
	struct encoding {
		encoding_PR present;
		union EXTERNAL__encoding_u {
			ANY_t	 single_ASN1_type;
			OCTET_STRING_t	 octet_aligned;
			BIT_STRING_t	 arbitrary;
		} choice;
		
		/* Context for parsing across buffer boundaries */
		asn_struct_ctx_t _asn_ctx;
	} encoding;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} EXTERNAL_t;

/*** <<< FUNC-DECLS [EXTERNAL] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_EXTERNAL;

/*** <<< CTDEFS [EXTERNAL] >>> ***/

#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
static asn_per_constraints_t asn_PER_type_encoding_constr_5 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */

/*** <<< STAT-DEFS [EXTERNAL] >>> ***/

static asn_TYPE_member_t asn_MBR_encoding_5[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct encoding, choice.single_ASN1_type),
		.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		.tag_mode = +1,	/* EXPLICIT tag at current level */
		.type = &asn_DEF_ANY,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "single-ASN1-type"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct encoding, choice.octet_aligned),
		.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_OCTET_STRING,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "octet-aligned"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct encoding, choice.arbitrary),
		.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_BIT_STRING,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "arbitrary"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */
};
static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = {
	sizeof(struct encoding),
	offsetof(struct encoding, _asn_ctx),
	offsetof(struct encoding, present),
	sizeof(((struct encoding *)0)->present),
	.tag2el = asn_MAP_encoding_tag2el_5,
	.tag2el_count = 3,	/* Count of tags in the map */
	0, 0,
	.first_extension = -1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_encoding_5 = {
	"encoding",
	"encoding",
	&asn_OP_CHOICE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		&asn_PER_type_encoding_constr_5,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		CHOICE_constraint
	},
	asn_MBR_encoding_5,
	3,	/* Elements count */
	&asn_SPC_encoding_specs_5	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = {
	{ ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_OBJECT_IDENTIFIER,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "direct-reference"
		},
	{ ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_NativeInteger,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "indirect-reference"
		},
	{ ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor),
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_ObjectDescriptor,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "data-value-descriptor"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding),
		.tag = -1 /* Ambiguous tag (CHOICE?) */,
		.tag_mode = 0,
		.type = &asn_DEF_encoding_5,
		.type_selector = 0,
		{
#if !defined(ASN_DISABLE_OER_SUPPORT)
			.oer_constraints = 0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
			.per_constraints = 0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
			.general_constraints = 0
		},
		0, 0, /* No default value */
		.name = "encoding"
		},
};
static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 };
static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */
    { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */
    { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */
};
static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = {
	sizeof(struct EXTERNAL),
	offsetof(struct EXTERNAL, _asn_ctx),
	.tag2el = asn_MAP_EXTERNAL_tag2el_1,
	.tag2el_count = 6,	/* Count of tags in the map */
	asn_MAP_EXTERNAL_oms_1,	/* Optional members */
	3, 0,	/* Root/Additions */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_EXTERNAL = {
	"EXTERNAL",
	"EXTERNAL",
	&asn_OP_SEQUENCE,
	asn_DEF_EXTERNAL_tags_1,
	sizeof(asn_DEF_EXTERNAL_tags_1)
		/sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */
	asn_DEF_EXTERNAL_tags_1,	/* Same as above */
	sizeof(asn_DEF_EXTERNAL_tags_1)
		/sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */
	{
#if !defined(ASN_DISABLE_OER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
		0,
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
		SEQUENCE_constraint
	},
	asn_MBR_EXTERNAL_1,
	4,	/* Elements count */
	&asn_SPC_EXTERNAL_specs_1	/* Additional specs */
};


/*** <<< asn_constant.h >>> ***/

/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 */

#ifndef _ASN_CONSTANT_H
#define _ASN_CONSTANT_H

#ifdef __cplusplus
extern "C" {
#endif

#define max_items (256)


#ifdef __cplusplus
}
#endif

#endif /* _ASN_CONSTANT_H */
