2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../ASN1_Input/rrc_15_3_asn.asn1"
5 * `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "PLMN-Identity-EUTRA-5GC.h"
10 #include "PLMN-IdentitY.h"
12 memb_plmn_index_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 value = *(const long *)sptr;
25 if((value >= 1 && value <= 12)) {
26 /* Constraint check succeeded */
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
36 static asn_oer_constraints_t asn_OER_memb_plmn_index_constr_3 CC_NOTUSED = {
37 { 1, 1 } /* (1..12) */,
39 static asn_per_constraints_t asn_PER_memb_plmn_index_constr_3 CC_NOTUSED = {
40 { APC_CONSTRAINED, 4, 4, 1, 12 } /* (1..12) */,
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 0, 0 /* No PER value map */
44 static asn_oer_constraints_t asn_OER_type_PLMN_Identity_EUTRA_5GC_constr_1 CC_NOTUSED = {
47 asn_per_constraints_t asn_PER_type_PLMN_Identity_EUTRA_5GC_constr_1 CC_NOTUSED = {
48 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
49 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
50 0, 0 /* No PER value map */
52 asn_TYPE_member_t asn_MBR_PLMN_Identity_EUTRA_5GC_1[] = {
53 { ATF_POINTER, 0, offsetof(struct PLMN_Identity_EUTRA_5GC, choice.plmn_Identity_EUTRA_5GC),
54 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
55 -1, /* IMPLICIT tag at current level */
56 &asn_DEF_PLMN_IdentitY,
59 0, 0, /* No default value */
60 "plmn-Identity-EUTRA-5GC"
62 { ATF_NOFLAGS, 0, offsetof(struct PLMN_Identity_EUTRA_5GC, choice.plmn_index),
63 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
64 -1, /* IMPLICIT tag at current level */
65 &asn_DEF_NativeInteger,
67 { &asn_OER_memb_plmn_index_constr_3, &asn_PER_memb_plmn_index_constr_3, memb_plmn_index_constraint_1 },
68 0, 0, /* No default value */
72 static const asn_TYPE_tag2member_t asn_MAP_PLMN_Identity_EUTRA_5GC_tag2el_1[] = {
73 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Identity-EUTRA-5GC */
74 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* plmn-index */
76 asn_CHOICE_specifics_t asn_SPC_PLMN_Identity_EUTRA_5GC_specs_1 = {
77 sizeof(struct PLMN_Identity_EUTRA_5GC),
78 offsetof(struct PLMN_Identity_EUTRA_5GC, _asn_ctx),
79 offsetof(struct PLMN_Identity_EUTRA_5GC, present),
80 sizeof(((struct PLMN_Identity_EUTRA_5GC *)0)->present),
81 asn_MAP_PLMN_Identity_EUTRA_5GC_tag2el_1,
82 2, /* Count of tags in the map */
84 -1 /* Extensions start */
86 asn_TYPE_descriptor_t asn_DEF_PLMN_Identity_EUTRA_5GC = {
87 "PLMN-Identity-EUTRA-5GC",
88 "PLMN-Identity-EUTRA-5GC",
90 0, /* No effective tags (pointer) */
91 0, /* No effective tags (count) */
92 0, /* No tags (pointer) */
93 0, /* No tags (count) */
94 { &asn_OER_type_PLMN_Identity_EUTRA_5GC_constr_1, &asn_PER_type_PLMN_Identity_EUTRA_5GC_constr_1, CHOICE_constraint },
95 asn_MBR_PLMN_Identity_EUTRA_5GC_1,
96 2, /* Elements count */
97 &asn_SPC_PLMN_Identity_EUTRA_5GC_specs_1 /* Additional specs */