5c53c11eeebfdf9c395746cd521ea293fe3f1603
[o-du/l2.git] / src / codec_utils / RRC / FailureInfoRLC-Bearer.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 "FailureInfoRLC-Bearer.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_failureType_constr_4 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_failureType_constr_4 CC_NOTUSED = {
18         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
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_failureType_value2enum_4[] = {
23         { 0,    11,     "duplication" },
24         { 1,    6,      "spare3" },
25         { 2,    6,      "spare2" },
26         { 3,    6,      "spare1" }
27 };
28 static const unsigned int asn_MAP_failureType_enum2value_4[] = {
29         0,      /* duplication(0) */
30         3,      /* spare1(3) */
31         2,      /* spare2(2) */
32         1       /* spare3(1) */
33 };
34 static const asn_INTEGER_specifics_t asn_SPC_failureType_specs_4 = {
35         asn_MAP_failureType_value2enum_4,       /* "tag" => N; sorted by tag */
36         asn_MAP_failureType_enum2value_4,       /* N => "tag"; sorted by N */
37         4,      /* Number of elements in the maps */
38         0,      /* Enumeration is not extensible */
39         1,      /* Strict enumeration */
40         0,      /* Native long size */
41         0
42 };
43 static const ber_tlv_tag_t asn_DEF_failureType_tags_4[] = {
44         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
45         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
46 };
47 static /* Use -fall-defs-global to expose */
48 asn_TYPE_descriptor_t asn_DEF_failureType_4 = {
49         "failureType",
50         "failureType",
51         &asn_OP_NativeEnumerated,
52         asn_DEF_failureType_tags_4,
53         sizeof(asn_DEF_failureType_tags_4)
54                 /sizeof(asn_DEF_failureType_tags_4[0]) - 1, /* 1 */
55         asn_DEF_failureType_tags_4,     /* Same as above */
56         sizeof(asn_DEF_failureType_tags_4)
57                 /sizeof(asn_DEF_failureType_tags_4[0]), /* 2 */
58         { &asn_OER_type_failureType_constr_4, &asn_PER_type_failureType_constr_4, NativeEnumerated_constraint },
59         0, 0,   /* Defined elsewhere */
60         &asn_SPC_failureType_specs_4    /* Additional specs */
61 };
62
63 asn_TYPE_member_t asn_MBR_FailureInfoRLC_Bearer_1[] = {
64         { ATF_NOFLAGS, 0, offsetof(struct FailureInfoRLC_Bearer, cellGroupId),
65                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
66                 -1,     /* IMPLICIT tag at current level */
67                 &asn_DEF_CellGroupId,
68                 0,
69                 { 0, 0, 0 },
70                 0, 0, /* No default value */
71                 "cellGroupId"
72                 },
73         { ATF_NOFLAGS, 0, offsetof(struct FailureInfoRLC_Bearer, logicalChannelIdentity),
74                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
75                 -1,     /* IMPLICIT tag at current level */
76                 &asn_DEF_LogicalChannelIdentity,
77                 0,
78                 { 0, 0, 0 },
79                 0, 0, /* No default value */
80                 "logicalChannelIdentity"
81                 },
82         { ATF_NOFLAGS, 0, offsetof(struct FailureInfoRLC_Bearer, failureType),
83                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
84                 -1,     /* IMPLICIT tag at current level */
85                 &asn_DEF_failureType_4,
86                 0,
87                 { 0, 0, 0 },
88                 0, 0, /* No default value */
89                 "failureType"
90                 },
91 };
92 static const ber_tlv_tag_t asn_DEF_FailureInfoRLC_Bearer_tags_1[] = {
93         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
94 };
95 static const asn_TYPE_tag2member_t asn_MAP_FailureInfoRLC_Bearer_tag2el_1[] = {
96     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellGroupId */
97     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* logicalChannelIdentity */
98     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* failureType */
99 };
100 asn_SEQUENCE_specifics_t asn_SPC_FailureInfoRLC_Bearer_specs_1 = {
101         sizeof(struct FailureInfoRLC_Bearer),
102         offsetof(struct FailureInfoRLC_Bearer, _asn_ctx),
103         asn_MAP_FailureInfoRLC_Bearer_tag2el_1,
104         3,      /* Count of tags in the map */
105         0, 0, 0,        /* Optional elements (not needed) */
106         -1,     /* First extension addition */
107 };
108 asn_TYPE_descriptor_t asn_DEF_FailureInfoRLC_Bearer = {
109         "FailureInfoRLC-Bearer",
110         "FailureInfoRLC-Bearer",
111         &asn_OP_SEQUENCE,
112         asn_DEF_FailureInfoRLC_Bearer_tags_1,
113         sizeof(asn_DEF_FailureInfoRLC_Bearer_tags_1)
114                 /sizeof(asn_DEF_FailureInfoRLC_Bearer_tags_1[0]), /* 1 */
115         asn_DEF_FailureInfoRLC_Bearer_tags_1,   /* Same as above */
116         sizeof(asn_DEF_FailureInfoRLC_Bearer_tags_1)
117                 /sizeof(asn_DEF_FailureInfoRLC_Bearer_tags_1[0]), /* 1 */
118         { 0, 0, SEQUENCE_constraint },
119         asn_MBR_FailureInfoRLC_Bearer_1,
120         3,      /* Elements count */
121         &asn_SPC_FailureInfoRLC_Bearer_specs_1  /* Additional specs */
122 };
123