[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / UL-AM-RLC.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 "UL-AM-RLC.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_maxRetxThreshold_constr_6 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_maxRetxThreshold_constr_6 CC_NOTUSED = {
18         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static const asn_INTEGER_enum_map_t asn_MAP_maxRetxThreshold_value2enum_6[] = {
23         { 0,    2,      "t1" },
24         { 1,    2,      "t2" },
25         { 2,    2,      "t3" },
26         { 3,    2,      "t4" },
27         { 4,    2,      "t6" },
28         { 5,    2,      "t8" },
29         { 6,    3,      "t16" },
30         { 7,    3,      "t32" }
31 };
32 static const unsigned int asn_MAP_maxRetxThreshold_enum2value_6[] = {
33         0,      /* t1(0) */
34         6,      /* t16(6) */
35         1,      /* t2(1) */
36         2,      /* t3(2) */
37         7,      /* t32(7) */
38         3,      /* t4(3) */
39         4,      /* t6(4) */
40         5       /* t8(5) */
41 };
42 static const asn_INTEGER_specifics_t asn_SPC_maxRetxThreshold_specs_6 = {
43         asn_MAP_maxRetxThreshold_value2enum_6,  /* "tag" => N; sorted by tag */
44         asn_MAP_maxRetxThreshold_enum2value_6,  /* N => "tag"; sorted by N */
45         8,      /* Number of elements in the maps */
46         0,      /* Enumeration is not extensible */
47         1,      /* Strict enumeration */
48         0,      /* Native long size */
49         0
50 };
51 static const ber_tlv_tag_t asn_DEF_maxRetxThreshold_tags_6[] = {
52         (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
53         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
54 };
55 static /* Use -fall-defs-global to expose */
56 asn_TYPE_descriptor_t asn_DEF_maxRetxThreshold_6 = {
57         "maxRetxThreshold",
58         "maxRetxThreshold",
59         &asn_OP_NativeEnumerated,
60         asn_DEF_maxRetxThreshold_tags_6,
61         sizeof(asn_DEF_maxRetxThreshold_tags_6)
62                 /sizeof(asn_DEF_maxRetxThreshold_tags_6[0]) - 1, /* 1 */
63         asn_DEF_maxRetxThreshold_tags_6,        /* Same as above */
64         sizeof(asn_DEF_maxRetxThreshold_tags_6)
65                 /sizeof(asn_DEF_maxRetxThreshold_tags_6[0]), /* 2 */
66         { &asn_OER_type_maxRetxThreshold_constr_6, &asn_PER_type_maxRetxThreshold_constr_6, NativeEnumerated_constraint },
67         0, 0,   /* Defined elsewhere */
68         &asn_SPC_maxRetxThreshold_specs_6       /* Additional specs */
69 };
70
71 asn_TYPE_member_t asn_MBR_UL_AM_RLC_1[] = {
72         { ATF_POINTER, 1, offsetof(struct UL_AM_RLC, sn_FieldLength),
73                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
74                 -1,     /* IMPLICIT tag at current level */
75                 &asn_DEF_SN_FieldLengthAM,
76                 0,
77                 { 0, 0, 0 },
78                 0, 0, /* No default value */
79                 "sn-FieldLength"
80                 },
81         { ATF_NOFLAGS, 0, offsetof(struct UL_AM_RLC, t_PollRetransmit),
82                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
83                 -1,     /* IMPLICIT tag at current level */
84                 &asn_DEF_T_PollRetransmit,
85                 0,
86                 { 0, 0, 0 },
87                 0, 0, /* No default value */
88                 "t-PollRetransmit"
89                 },
90         { ATF_NOFLAGS, 0, offsetof(struct UL_AM_RLC, pollPDU),
91                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
92                 -1,     /* IMPLICIT tag at current level */
93                 &asn_DEF_PollPDU,
94                 0,
95                 { 0, 0, 0 },
96                 0, 0, /* No default value */
97                 "pollPDU"
98                 },
99         { ATF_NOFLAGS, 0, offsetof(struct UL_AM_RLC, pollByte),
100                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
101                 -1,     /* IMPLICIT tag at current level */
102                 &asn_DEF_PollByte,
103                 0,
104                 { 0, 0, 0 },
105                 0, 0, /* No default value */
106                 "pollByte"
107                 },
108         { ATF_NOFLAGS, 0, offsetof(struct UL_AM_RLC, maxRetxThreshold),
109                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
110                 -1,     /* IMPLICIT tag at current level */
111                 &asn_DEF_maxRetxThreshold_6,
112                 0,
113                 { 0, 0, 0 },
114                 0, 0, /* No default value */
115                 "maxRetxThreshold"
116                 },
117 };
118 static const int asn_MAP_UL_AM_RLC_oms_1[] = { 0 };
119 static const ber_tlv_tag_t asn_DEF_UL_AM_RLC_tags_1[] = {
120         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
121 };
122 static const asn_TYPE_tag2member_t asn_MAP_UL_AM_RLC_tag2el_1[] = {
123     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sn-FieldLength */
124     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* t-PollRetransmit */
125     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pollPDU */
126     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pollByte */
127     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* maxRetxThreshold */
128 };
129 asn_SEQUENCE_specifics_t asn_SPC_UL_AM_RLC_specs_1 = {
130         sizeof(struct UL_AM_RLC),
131         offsetof(struct UL_AM_RLC, _asn_ctx),
132         asn_MAP_UL_AM_RLC_tag2el_1,
133         5,      /* Count of tags in the map */
134         asn_MAP_UL_AM_RLC_oms_1,        /* Optional members */
135         1, 0,   /* Root/Additions */
136         -1,     /* First extension addition */
137 };
138 asn_TYPE_descriptor_t asn_DEF_UL_AM_RLC = {
139         "UL-AM-RLC",
140         "UL-AM-RLC",
141         &asn_OP_SEQUENCE,
142         asn_DEF_UL_AM_RLC_tags_1,
143         sizeof(asn_DEF_UL_AM_RLC_tags_1)
144                 /sizeof(asn_DEF_UL_AM_RLC_tags_1[0]), /* 1 */
145         asn_DEF_UL_AM_RLC_tags_1,       /* Same as above */
146         sizeof(asn_DEF_UL_AM_RLC_tags_1)
147                 /sizeof(asn_DEF_UL_AM_RLC_tags_1[0]), /* 1 */
148         { 0, 0, SEQUENCE_constraint },
149         asn_MBR_UL_AM_RLC_1,
150         5,      /* Elements count */
151         &asn_SPC_UL_AM_RLC_specs_1      /* Additional specs */
152 };
153