Merge "Cell down alarm notification [Issue-Id: ODUHIGH-430]"
[o-du/l2.git] / src / codec_utils / RRC / CellReselectionPriorities.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 "CellReselectionPriorities.h"
9
10 #include "FreqPriorityListEUTRA.h"
11 #include "FreqPriorityListNR.h"
12 /*
13  * This type is implemented using NativeEnumerated,
14  * so here we adjust the DEF accordingly.
15  */
16 static asn_oer_constraints_t asn_OER_type_t320_constr_4 CC_NOTUSED = {
17         { 0, 0 },
18         -1};
19 static asn_per_constraints_t asn_PER_type_t320_constr_4 CC_NOTUSED = {
20         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
21         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
22         0, 0    /* No PER value map */
23 };
24 static const asn_INTEGER_enum_map_t asn_MAP_t320_value2enum_4[] = {
25         { 0,    4,      "min5" },
26         { 1,    5,      "min10" },
27         { 2,    5,      "min20" },
28         { 3,    5,      "min30" },
29         { 4,    5,      "min60" },
30         { 5,    6,      "min120" },
31         { 6,    6,      "min180" },
32         { 7,    6,      "spare1" }
33 };
34 static const unsigned int asn_MAP_t320_enum2value_4[] = {
35         1,      /* min10(1) */
36         5,      /* min120(5) */
37         6,      /* min180(6) */
38         2,      /* min20(2) */
39         3,      /* min30(3) */
40         0,      /* min5(0) */
41         4,      /* min60(4) */
42         7       /* spare1(7) */
43 };
44 static const asn_INTEGER_specifics_t asn_SPC_t320_specs_4 = {
45         asn_MAP_t320_value2enum_4,      /* "tag" => N; sorted by tag */
46         asn_MAP_t320_enum2value_4,      /* N => "tag"; sorted by N */
47         8,      /* Number of elements in the maps */
48         0,      /* Enumeration is not extensible */
49         1,      /* Strict enumeration */
50         0,      /* Native long size */
51         0
52 };
53 static const ber_tlv_tag_t asn_DEF_t320_tags_4[] = {
54         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
55         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
56 };
57 static /* Use -fall-defs-global to expose */
58 asn_TYPE_descriptor_t asn_DEF_t320_4 = {
59         "t320",
60         "t320",
61         &asn_OP_NativeEnumerated,
62         asn_DEF_t320_tags_4,
63         sizeof(asn_DEF_t320_tags_4)
64                 /sizeof(asn_DEF_t320_tags_4[0]) - 1, /* 1 */
65         asn_DEF_t320_tags_4,    /* Same as above */
66         sizeof(asn_DEF_t320_tags_4)
67                 /sizeof(asn_DEF_t320_tags_4[0]), /* 2 */
68         { &asn_OER_type_t320_constr_4, &asn_PER_type_t320_constr_4, NativeEnumerated_constraint },
69         0, 0,   /* Defined elsewhere */
70         &asn_SPC_t320_specs_4   /* Additional specs */
71 };
72
73 asn_TYPE_member_t asn_MBR_CellReselectionPriorities_1[] = {
74         { ATF_POINTER, 3, offsetof(struct CellReselectionPriorities, freqPriorityListEUTRA),
75                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
76                 -1,     /* IMPLICIT tag at current level */
77                 &asn_DEF_FreqPriorityListEUTRA,
78                 0,
79                 { 0, 0, 0 },
80                 0, 0, /* No default value */
81                 "freqPriorityListEUTRA"
82                 },
83         { ATF_POINTER, 2, offsetof(struct CellReselectionPriorities, freqPriorityListNR),
84                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
85                 -1,     /* IMPLICIT tag at current level */
86                 &asn_DEF_FreqPriorityListNR,
87                 0,
88                 { 0, 0, 0 },
89                 0, 0, /* No default value */
90                 "freqPriorityListNR"
91                 },
92         { ATF_POINTER, 1, offsetof(struct CellReselectionPriorities, t320),
93                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
94                 -1,     /* IMPLICIT tag at current level */
95                 &asn_DEF_t320_4,
96                 0,
97                 { 0, 0, 0 },
98                 0, 0, /* No default value */
99                 "t320"
100                 },
101 };
102 static const int asn_MAP_CellReselectionPriorities_oms_1[] = { 0, 1, 2 };
103 static const ber_tlv_tag_t asn_DEF_CellReselectionPriorities_tags_1[] = {
104         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
105 };
106 static const asn_TYPE_tag2member_t asn_MAP_CellReselectionPriorities_tag2el_1[] = {
107     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqPriorityListEUTRA */
108     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* freqPriorityListNR */
109     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* t320 */
110 };
111 asn_SEQUENCE_specifics_t asn_SPC_CellReselectionPriorities_specs_1 = {
112         sizeof(struct CellReselectionPriorities),
113         offsetof(struct CellReselectionPriorities, _asn_ctx),
114         asn_MAP_CellReselectionPriorities_tag2el_1,
115         3,      /* Count of tags in the map */
116         asn_MAP_CellReselectionPriorities_oms_1,        /* Optional members */
117         3, 0,   /* Root/Additions */
118         3,      /* First extension addition */
119 };
120 asn_TYPE_descriptor_t asn_DEF_CellReselectionPriorities = {
121         "CellReselectionPriorities",
122         "CellReselectionPriorities",
123         &asn_OP_SEQUENCE,
124         asn_DEF_CellReselectionPriorities_tags_1,
125         sizeof(asn_DEF_CellReselectionPriorities_tags_1)
126                 /sizeof(asn_DEF_CellReselectionPriorities_tags_1[0]), /* 1 */
127         asn_DEF_CellReselectionPriorities_tags_1,       /* Same as above */
128         sizeof(asn_DEF_CellReselectionPriorities_tags_1)
129                 /sizeof(asn_DEF_CellReselectionPriorities_tags_1[0]), /* 1 */
130         { 0, 0, SEQUENCE_constraint },
131         asn_MBR_CellReselectionPriorities_1,
132         3,      /* Elements count */
133         &asn_SPC_CellReselectionPriorities_specs_1      /* Additional specs */
134 };
135