[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / AS-Config.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-InterNodeDefinitions"
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 "AS-Config.h"
9
10 static int
11 memb_rrcReconfiguration_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
14         
15         if(!sptr) {
16                 ASN__CTFAIL(app_key, td, sptr,
17                         "%s: value not given (%s:%d)",
18                         td->name, __FILE__, __LINE__);
19                 return -1;
20         }
21         
22         
23         if(1 /* No applicable constraints whatsoever */) {
24                 (void)st; /* Unused variable */
25                 /* Nothing is here. See below */
26         }
27         
28         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29 }
30
31 static asn_oer_constraints_t asn_OER_memb_rrcReconfiguration_constr_2 CC_NOTUSED = {
32         { 0, 0 },
33         -1      /* (SIZE(0..MAX)) */};
34 static asn_per_constraints_t asn_PER_memb_rrcReconfiguration_constr_2 CC_NOTUSED = {
35         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
36         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
37         0, 0    /* No PER value map */
38 };
39 asn_TYPE_member_t asn_MBR_AS_Config_1[] = {
40         { ATF_NOFLAGS, 0, offsetof(struct AS_Config, rrcReconfiguration),
41                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
42                 -1,     /* IMPLICIT tag at current level */
43                 &asn_DEF_OCTET_STRING,
44                 0,
45                 { &asn_OER_memb_rrcReconfiguration_constr_2, &asn_PER_memb_rrcReconfiguration_constr_2,  memb_rrcReconfiguration_constraint_1 },
46                 0, 0, /* No default value */
47                 "rrcReconfiguration"
48                 },
49 };
50 static const ber_tlv_tag_t asn_DEF_AS_Config_tags_1[] = {
51         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
52 };
53 static const asn_TYPE_tag2member_t asn_MAP_AS_Config_tag2el_1[] = {
54     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* rrcReconfiguration */
55 };
56 asn_SEQUENCE_specifics_t asn_SPC_AS_Config_specs_1 = {
57         sizeof(struct AS_Config),
58         offsetof(struct AS_Config, _asn_ctx),
59         asn_MAP_AS_Config_tag2el_1,
60         1,      /* Count of tags in the map */
61         0, 0, 0,        /* Optional elements (not needed) */
62         1,      /* First extension addition */
63 };
64 asn_TYPE_descriptor_t asn_DEF_AS_Config = {
65         "AS-Config",
66         "AS-Config",
67         &asn_OP_SEQUENCE,
68         asn_DEF_AS_Config_tags_1,
69         sizeof(asn_DEF_AS_Config_tags_1)
70                 /sizeof(asn_DEF_AS_Config_tags_1[0]), /* 1 */
71         asn_DEF_AS_Config_tags_1,       /* Same as above */
72         sizeof(asn_DEF_AS_Config_tags_1)
73                 /sizeof(asn_DEF_AS_Config_tags_1[0]), /* 1 */
74         { 0, 0, SEQUENCE_constraint },
75         asn_MBR_AS_Config_1,
76         1,      /* Elements count */
77         &asn_SPC_AS_Config_specs_1      /* Additional specs */
78 };
79