0dea1d300bd0b2a97498396336f7428401fbc92a
[o-du/l2.git] / src / codec_utils / RRC / RRCResumeComplete-IEs.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "RRCResumeComplete-IEs.h"
9
10 #include "UplinkTxDirectCurrentList.h"
11 static int
12 memb_selectedPLMN_Identity_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_selectedPLMN_Identity_constr_3 CC_NOTUSED = {
37         { 1, 1 }        /* (1..12) */,
38         -1};
39 static asn_per_constraints_t asn_PER_memb_selectedPLMN_Identity_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 const ber_tlv_tag_t asn_DEF_nonCriticalExtension_tags_6[] = {
45         (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
46         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
47 };
48 static asn_SEQUENCE_specifics_t asn_SPC_nonCriticalExtension_specs_6 = {
49         sizeof(struct RRCResumeComplete_IEs__nonCriticalExtension),
50         offsetof(struct RRCResumeComplete_IEs__nonCriticalExtension, _asn_ctx),
51         0,      /* No top level tags */
52         0,      /* No tags in the map */
53         0, 0, 0,        /* Optional elements (not needed) */
54         -1,     /* First extension addition */
55 };
56 static /* Use -fall-defs-global to expose */
57 asn_TYPE_descriptor_t asn_DEF_nonCriticalExtension_6 = {
58         "nonCriticalExtension",
59         "nonCriticalExtension",
60         &asn_OP_SEQUENCE,
61         asn_DEF_nonCriticalExtension_tags_6,
62         sizeof(asn_DEF_nonCriticalExtension_tags_6)
63                 /sizeof(asn_DEF_nonCriticalExtension_tags_6[0]) - 1, /* 1 */
64         asn_DEF_nonCriticalExtension_tags_6,    /* Same as above */
65         sizeof(asn_DEF_nonCriticalExtension_tags_6)
66                 /sizeof(asn_DEF_nonCriticalExtension_tags_6[0]), /* 2 */
67         { 0, 0, SEQUENCE_constraint },
68         0, 0,   /* No members */
69         &asn_SPC_nonCriticalExtension_specs_6   /* Additional specs */
70 };
71
72 asn_TYPE_member_t asn_MBR_RRCResumeComplete_IEs_1[] = {
73         { ATF_POINTER, 5, offsetof(struct RRCResumeComplete_IEs, dedicatedNAS_Message),
74                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
75                 -1,     /* IMPLICIT tag at current level */
76                 &asn_DEF_DedicatedNAS_Message,
77                 0,
78                 { 0, 0, 0 },
79                 0, 0, /* No default value */
80                 "dedicatedNAS-Message"
81                 },
82         { ATF_POINTER, 4, offsetof(struct RRCResumeComplete_IEs, selectedPLMN_Identity),
83                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
84                 -1,     /* IMPLICIT tag at current level */
85                 &asn_DEF_NativeInteger,
86                 0,
87                 { &asn_OER_memb_selectedPLMN_Identity_constr_3, &asn_PER_memb_selectedPLMN_Identity_constr_3,  memb_selectedPLMN_Identity_constraint_1 },
88                 0, 0, /* No default value */
89                 "selectedPLMN-Identity"
90                 },
91         { ATF_POINTER, 3, offsetof(struct RRCResumeComplete_IEs, uplinkTxDirectCurrentList),
92                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
93                 -1,     /* IMPLICIT tag at current level */
94                 &asn_DEF_UplinkTxDirectCurrentList,
95                 0,
96                 { 0, 0, 0 },
97                 0, 0, /* No default value */
98                 "uplinkTxDirectCurrentList"
99                 },
100         { ATF_POINTER, 2, offsetof(struct RRCResumeComplete_IEs, lateNonCriticalExtension),
101                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
102                 -1,     /* IMPLICIT tag at current level */
103                 &asn_DEF_OCTET_STRING,
104                 0,
105                 { 0, 0, 0 },
106                 0, 0, /* No default value */
107                 "lateNonCriticalExtension"
108                 },
109         { ATF_POINTER, 1, offsetof(struct RRCResumeComplete_IEs, nonCriticalExtension),
110                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
111                 0,
112                 &asn_DEF_nonCriticalExtension_6,
113                 0,
114                 { 0, 0, 0 },
115                 0, 0, /* No default value */
116                 "nonCriticalExtension"
117                 },
118 };
119 static const int asn_MAP_RRCResumeComplete_IEs_oms_1[] = { 0, 1, 2, 3, 4 };
120 static const ber_tlv_tag_t asn_DEF_RRCResumeComplete_IEs_tags_1[] = {
121         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
122 };
123 static const asn_TYPE_tag2member_t asn_MAP_RRCResumeComplete_IEs_tag2el_1[] = {
124     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dedicatedNAS-Message */
125     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* selectedPLMN-Identity */
126     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* uplinkTxDirectCurrentList */
127     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* lateNonCriticalExtension */
128     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* nonCriticalExtension */
129 };
130 asn_SEQUENCE_specifics_t asn_SPC_RRCResumeComplete_IEs_specs_1 = {
131         sizeof(struct RRCResumeComplete_IEs),
132         offsetof(struct RRCResumeComplete_IEs, _asn_ctx),
133         asn_MAP_RRCResumeComplete_IEs_tag2el_1,
134         5,      /* Count of tags in the map */
135         asn_MAP_RRCResumeComplete_IEs_oms_1,    /* Optional members */
136         5, 0,   /* Root/Additions */
137         -1,     /* First extension addition */
138 };
139 asn_TYPE_descriptor_t asn_DEF_RRCResumeComplete_IEs = {
140         "RRCResumeComplete-IEs",
141         "RRCResumeComplete-IEs",
142         &asn_OP_SEQUENCE,
143         asn_DEF_RRCResumeComplete_IEs_tags_1,
144         sizeof(asn_DEF_RRCResumeComplete_IEs_tags_1)
145                 /sizeof(asn_DEF_RRCResumeComplete_IEs_tags_1[0]), /* 1 */
146         asn_DEF_RRCResumeComplete_IEs_tags_1,   /* Same as above */
147         sizeof(asn_DEF_RRCResumeComplete_IEs_tags_1)
148                 /sizeof(asn_DEF_RRCResumeComplete_IEs_tags_1[0]), /* 1 */
149         { 0, 0, SEQUENCE_constraint },
150         asn_MBR_RRCResumeComplete_IEs_1,
151         5,      /* Elements count */
152         &asn_SPC_RRCResumeComplete_IEs_specs_1  /* Additional specs */
153 };
154