/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "SGP32Definitions"
 * 	found in "../../../asn1/SGP32Definitions.asn"
 * 	`asn1c -fcompound-names -no-gen-example`
 */

#include "CompactProfileInstallationResultData.h"

static asn_oer_constraints_t asn_OER_type_compactFinalResult_constr_5 CC_NOTUSED = {
	{ 0, 0 },
	-1};
static asn_per_constraints_t asn_PER_type_compactFinalResult_constr_5 CC_NOTUSED = {
	{ APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }	/* (0..1,...) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static int asn_DFL_4_cmp_1(const void *sptr) {
	const BOOLEAN_t *st = sptr;
	
	if(!st) {
		return -1; /* No value is not a default value */
	}
	
	/* Test default value 1 */
	return (*st != 1);
}
static int asn_DFL_4_set_1(void **sptr) {
	BOOLEAN_t *st = *sptr;
	
	if(!st) {
		st = (*sptr = CALLOC(1, sizeof(*st)));
		if(!st) return -1;
	}
	
	/* Install default value 1 */
	*st = 1;
	return 0;
}
static asn_TYPE_member_t asn_MBR_compactFinalResult_5[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CompactProfileInstallationResultData__compactFinalResult, choice.compactSuccessResult),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_CompactSuccessResult,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"compactSuccessResult"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CompactProfileInstallationResultData__compactFinalResult, choice.errorResult),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ErrorResult,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"errorResult"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_compactFinalResult_tag2el_5[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* compactSuccessResult */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* errorResult */
};
static asn_CHOICE_specifics_t asn_SPC_compactFinalResult_specs_5 = {
	sizeof(struct CompactProfileInstallationResultData__compactFinalResult),
	offsetof(struct CompactProfileInstallationResultData__compactFinalResult, _asn_ctx),
	offsetof(struct CompactProfileInstallationResultData__compactFinalResult, present),
	sizeof(((struct CompactProfileInstallationResultData__compactFinalResult *)0)->present),
	asn_MAP_compactFinalResult_tag2el_5,
	2,	/* Count of tags in the map */
	0, 0,
	2	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_compactFinalResult_5 = {
	"compactFinalResult",
	"compactFinalResult",
	&asn_OP_CHOICE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ &asn_OER_type_compactFinalResult_constr_5, &asn_PER_type_compactFinalResult_constr_5, CHOICE_constraint },
	asn_MBR_compactFinalResult_5,
	2,	/* Elements count */
	&asn_SPC_compactFinalResult_specs_5	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_CompactProfileInstallationResultData_1[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CompactProfileInstallationResultData, transactionId),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_TransactionId,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"transactionId"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CompactProfileInstallationResultData, seqNumber),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_NativeInteger,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"seqNumber"
		},
	{ ATF_POINTER, 1, offsetof(struct CompactProfileInstallationResultData, iccidPresent),
		(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
		0,
		&asn_DEF_BOOLEAN,
		0,
		{ 0, 0, 0 },
		&asn_DFL_4_cmp_1,	/* Compare DEFAULT 1 */
		&asn_DFL_4_set_1,	/* Set DEFAULT 1 */
		"iccidPresent"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CompactProfileInstallationResultData, compactFinalResult),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_compactFinalResult_5,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"compactFinalResult"
		},
};
static const int asn_MAP_CompactProfileInstallationResultData_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_CompactProfileInstallationResultData_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CompactProfileInstallationResultData_tag2el_1[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 2, 0, 0 }, /* iccidPresent */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* seqNumber */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transactionId */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* compactFinalResult */
};
asn_SEQUENCE_specifics_t asn_SPC_CompactProfileInstallationResultData_specs_1 = {
	sizeof(struct CompactProfileInstallationResultData),
	offsetof(struct CompactProfileInstallationResultData, _asn_ctx),
	asn_MAP_CompactProfileInstallationResultData_tag2el_1,
	4,	/* Count of tags in the map */
	asn_MAP_CompactProfileInstallationResultData_oms_1,	/* Optional members */
	1, 0,	/* Root/Additions */
	4,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CompactProfileInstallationResultData = {
	"CompactProfileInstallationResultData",
	"CompactProfileInstallationResultData",
	&asn_OP_SEQUENCE,
	asn_DEF_CompactProfileInstallationResultData_tags_1,
	sizeof(asn_DEF_CompactProfileInstallationResultData_tags_1)
		/sizeof(asn_DEF_CompactProfileInstallationResultData_tags_1[0]), /* 1 */
	asn_DEF_CompactProfileInstallationResultData_tags_1,	/* Same as above */
	sizeof(asn_DEF_CompactProfileInstallationResultData_tags_1)
		/sizeof(asn_DEF_CompactProfileInstallationResultData_tags_1[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_CompactProfileInstallationResultData_1,
	4,	/* Elements count */
	&asn_SPC_CompactProfileInstallationResultData_specs_1	/* Additional specs */
};

