[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / PLMN-Identity-EUTRA-5GC.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "PLMN-Identity-EUTRA-5GC.h"
9
10 #include "PLMN-IdentitY.h"
11 static int
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) {
14         long value;
15         
16         if(!sptr) {
17                 ASN__CTFAIL(app_key, td, sptr,
18                         "%s: value not given (%s:%d)",
19                         td->name, __FILE__, __LINE__);
20                 return -1;
21         }
22         
23         value = *(const long *)sptr;
24         
25         if((value >= 1 && value <= 12)) {
26                 /* Constraint check succeeded */
27                 return 0;
28         } else {
29                 ASN__CTFAIL(app_key, td, sptr,
30                         "%s: constraint failed (%s:%d)",
31                         td->name, __FILE__, __LINE__);
32                 return -1;
33         }
34 }
35
36 static asn_oer_constraints_t asn_OER_memb_plmn_index_constr_3 CC_NOTUSED = {
37         { 1, 1 }        /* (1..12) */,
38         -1};
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 */
43 };
44 static asn_oer_constraints_t asn_OER_type_PLMN_Identity_EUTRA_5GC_constr_1 CC_NOTUSED = {
45         { 0, 0 },
46         -1};
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 */
51 };
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,
57                 0,
58                 { 0, 0, 0 },
59                 0, 0, /* No default value */
60                 "plmn-Identity-EUTRA-5GC"
61                 },
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,
66                 0,
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 */
69                 "plmn-index"
70                 },
71 };
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 */
75 };
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 */
83         0, 0,
84         -1      /* Extensions start */
85 };
86 asn_TYPE_descriptor_t asn_DEF_PLMN_Identity_EUTRA_5GC = {
87         "PLMN-Identity-EUTRA-5GC",
88         "PLMN-Identity-EUTRA-5GC",
89         &asn_OP_CHOICE,
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 */
98 };
99