[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RAN-AreaConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "./22April22_Paging/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./22April22_Paging -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "RAN-AreaConfig.h"
9
10 static int
11 memb_ran_AreaCodeList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         size_t size;
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         /* Determine the number of elements */
23         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
24         
25         if((size >= 1 && size <= 32)) {
26                 /* Perform validation of the inner elements */
27                 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
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_type_ran_AreaCodeList_constr_3 CC_NOTUSED = {
37         { 0, 0 },
38         -1      /* (SIZE(1..32)) */};
39 static asn_per_constraints_t asn_PER_type_ran_AreaCodeList_constr_3 CC_NOTUSED = {
40         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
41         { APC_CONSTRAINED,       5,  5,  1,  32 }       /* (SIZE(1..32)) */,
42         0, 0    /* No PER value map */
43 };
44 static asn_oer_constraints_t asn_OER_memb_ran_AreaCodeList_constr_3 CC_NOTUSED = {
45         { 0, 0 },
46         -1      /* (SIZE(1..32)) */};
47 static asn_per_constraints_t asn_PER_memb_ran_AreaCodeList_constr_3 CC_NOTUSED = {
48         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
49         { APC_CONSTRAINED,       5,  5,  1,  32 }       /* (SIZE(1..32)) */,
50         0, 0    /* No PER value map */
51 };
52 static asn_TYPE_member_t asn_MBR_ran_AreaCodeList_3[] = {
53         { ATF_POINTER, 0, 0,
54                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
55                 0,
56                 &asn_DEF_RAN_AreaCode,
57                 0,
58                 { 0, 0, 0 },
59                 0, 0, /* No default value */
60                 ""
61                 },
62 };
63 static const ber_tlv_tag_t asn_DEF_ran_AreaCodeList_tags_3[] = {
64         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
65         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
66 };
67 static asn_SET_OF_specifics_t asn_SPC_ran_AreaCodeList_specs_3 = {
68         sizeof(struct RAN_AreaConfig__ran_AreaCodeList),
69         offsetof(struct RAN_AreaConfig__ran_AreaCodeList, _asn_ctx),
70         0,      /* XER encoding is XMLDelimitedItemList */
71 };
72 static /* Use -fall-defs-global to expose */
73 asn_TYPE_descriptor_t asn_DEF_ran_AreaCodeList_3 = {
74         "ran-AreaCodeList",
75         "ran-AreaCodeList",
76         &asn_OP_SEQUENCE_OF,
77         asn_DEF_ran_AreaCodeList_tags_3,
78         sizeof(asn_DEF_ran_AreaCodeList_tags_3)
79                 /sizeof(asn_DEF_ran_AreaCodeList_tags_3[0]) - 1, /* 1 */
80         asn_DEF_ran_AreaCodeList_tags_3,        /* Same as above */
81         sizeof(asn_DEF_ran_AreaCodeList_tags_3)
82                 /sizeof(asn_DEF_ran_AreaCodeList_tags_3[0]), /* 2 */
83         { &asn_OER_type_ran_AreaCodeList_constr_3, &asn_PER_type_ran_AreaCodeList_constr_3, SEQUENCE_OF_constraint },
84         asn_MBR_ran_AreaCodeList_3,
85         1,      /* Single element */
86         &asn_SPC_ran_AreaCodeList_specs_3       /* Additional specs */
87 };
88
89 asn_TYPE_member_t asn_MBR_RAN_AreaConfig_1[] = {
90         { ATF_NOFLAGS, 0, offsetof(struct RAN_AreaConfig, trackingAreaCode),
91                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
92                 -1,     /* IMPLICIT tag at current level */
93                 &asn_DEF_TrackingAreaCode,
94                 0,
95                 { 0, 0, 0 },
96                 0, 0, /* No default value */
97                 "trackingAreaCode"
98                 },
99         { ATF_POINTER, 1, offsetof(struct RAN_AreaConfig, ran_AreaCodeList),
100                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
101                 0,
102                 &asn_DEF_ran_AreaCodeList_3,
103                 0,
104                 { &asn_OER_memb_ran_AreaCodeList_constr_3, &asn_PER_memb_ran_AreaCodeList_constr_3,  memb_ran_AreaCodeList_constraint_1 },
105                 0, 0, /* No default value */
106                 "ran-AreaCodeList"
107                 },
108 };
109 static const int asn_MAP_RAN_AreaConfig_oms_1[] = { 1 };
110 static const ber_tlv_tag_t asn_DEF_RAN_AreaConfig_tags_1[] = {
111         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
112 };
113 static const asn_TYPE_tag2member_t asn_MAP_RAN_AreaConfig_tag2el_1[] = {
114     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trackingAreaCode */
115     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ran-AreaCodeList */
116 };
117 asn_SEQUENCE_specifics_t asn_SPC_RAN_AreaConfig_specs_1 = {
118         sizeof(struct RAN_AreaConfig),
119         offsetof(struct RAN_AreaConfig, _asn_ctx),
120         asn_MAP_RAN_AreaConfig_tag2el_1,
121         2,      /* Count of tags in the map */
122         asn_MAP_RAN_AreaConfig_oms_1,   /* Optional members */
123         1, 0,   /* Root/Additions */
124         -1,     /* First extension addition */
125 };
126 asn_TYPE_descriptor_t asn_DEF_RAN_AreaConfig = {
127         "RAN-AreaConfig",
128         "RAN-AreaConfig",
129         &asn_OP_SEQUENCE,
130         asn_DEF_RAN_AreaConfig_tags_1,
131         sizeof(asn_DEF_RAN_AreaConfig_tags_1)
132                 /sizeof(asn_DEF_RAN_AreaConfig_tags_1[0]), /* 1 */
133         asn_DEF_RAN_AreaConfig_tags_1,  /* Same as above */
134         sizeof(asn_DEF_RAN_AreaConfig_tags_1)
135                 /sizeof(asn_DEF_RAN_AreaConfig_tags_1[0]), /* 1 */
136         { 0, 0, SEQUENCE_constraint },
137         asn_MBR_RAN_AreaConfig_1,
138         2,      /* Elements count */
139         &asn_SPC_RAN_AreaConfig_specs_1 /* Additional specs */
140 };
141