e863f09278f7da7ed2b5f07031585136fea37ba5
[o-du/l2.git] / src / codec_utils / RRC / SRS-TxSwitch.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 "SRS-TxSwitch.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 /*
15  * This type is implemented using NativeEnumerated,
16  * so here we adjust the DEF accordingly.
17  */
18 static asn_oer_constraints_t asn_OER_type_supportedSRS_TxPortSwitch_constr_2 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_supportedSRS_TxPortSwitch_constr_2 CC_NOTUSED = {
22         { APC_CONSTRAINED,       3,  3,  0,  4 }        /* (0..4) */,
23         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
24         0, 0    /* No PER value map */
25 };
26 static asn_oer_constraints_t asn_OER_type_txSwitchImpactToRx_constr_8 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_txSwitchImpactToRx_constr_8 CC_NOTUSED = {
30         { APC_CONSTRAINED,       0,  0,  0,  0 }        /* (0..0) */,
31         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
32         0, 0    /* No PER value map */
33 };
34 static const asn_INTEGER_enum_map_t asn_MAP_supportedSRS_TxPortSwitch_value2enum_2[] = {
35         { 0,    4,      "t1r2" },
36         { 1,    4,      "t1r4" },
37         { 2,    4,      "t2r4" },
38         { 3,    9,      "t1r4-t2r4" },
39         { 4,    8,      "tr-equal" }
40 };
41 static const unsigned int asn_MAP_supportedSRS_TxPortSwitch_enum2value_2[] = {
42         0,      /* t1r2(0) */
43         1,      /* t1r4(1) */
44         3,      /* t1r4-t2r4(3) */
45         2,      /* t2r4(2) */
46         4       /* tr-equal(4) */
47 };
48 static const asn_INTEGER_specifics_t asn_SPC_supportedSRS_TxPortSwitch_specs_2 = {
49         asn_MAP_supportedSRS_TxPortSwitch_value2enum_2, /* "tag" => N; sorted by tag */
50         asn_MAP_supportedSRS_TxPortSwitch_enum2value_2, /* N => "tag"; sorted by N */
51         5,      /* Number of elements in the maps */
52         0,      /* Enumeration is not extensible */
53         1,      /* Strict enumeration */
54         0,      /* Native long size */
55         0
56 };
57 static const ber_tlv_tag_t asn_DEF_supportedSRS_TxPortSwitch_tags_2[] = {
58         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
59         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
60 };
61 static /* Use -fall-defs-global to expose */
62 asn_TYPE_descriptor_t asn_DEF_supportedSRS_TxPortSwitch_2 = {
63         "supportedSRS-TxPortSwitch",
64         "supportedSRS-TxPortSwitch",
65         &asn_OP_NativeEnumerated,
66         asn_DEF_supportedSRS_TxPortSwitch_tags_2,
67         sizeof(asn_DEF_supportedSRS_TxPortSwitch_tags_2)
68                 /sizeof(asn_DEF_supportedSRS_TxPortSwitch_tags_2[0]) - 1, /* 1 */
69         asn_DEF_supportedSRS_TxPortSwitch_tags_2,       /* Same as above */
70         sizeof(asn_DEF_supportedSRS_TxPortSwitch_tags_2)
71                 /sizeof(asn_DEF_supportedSRS_TxPortSwitch_tags_2[0]), /* 2 */
72         { &asn_OER_type_supportedSRS_TxPortSwitch_constr_2, &asn_PER_type_supportedSRS_TxPortSwitch_constr_2, NativeEnumerated_constraint },
73         0, 0,   /* Defined elsewhere */
74         &asn_SPC_supportedSRS_TxPortSwitch_specs_2      /* Additional specs */
75 };
76
77 static const asn_INTEGER_enum_map_t asn_MAP_txSwitchImpactToRx_value2enum_8[] = {
78         { 0,    4,      "true" }
79 };
80 static const unsigned int asn_MAP_txSwitchImpactToRx_enum2value_8[] = {
81         0       /* true(0) */
82 };
83 static const asn_INTEGER_specifics_t asn_SPC_txSwitchImpactToRx_specs_8 = {
84         asn_MAP_txSwitchImpactToRx_value2enum_8,        /* "tag" => N; sorted by tag */
85         asn_MAP_txSwitchImpactToRx_enum2value_8,        /* N => "tag"; sorted by N */
86         1,      /* Number of elements in the maps */
87         0,      /* Enumeration is not extensible */
88         1,      /* Strict enumeration */
89         0,      /* Native long size */
90         0
91 };
92 static const ber_tlv_tag_t asn_DEF_txSwitchImpactToRx_tags_8[] = {
93         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
94         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
95 };
96 static /* Use -fall-defs-global to expose */
97 asn_TYPE_descriptor_t asn_DEF_txSwitchImpactToRx_8 = {
98         "txSwitchImpactToRx",
99         "txSwitchImpactToRx",
100         &asn_OP_NativeEnumerated,
101         asn_DEF_txSwitchImpactToRx_tags_8,
102         sizeof(asn_DEF_txSwitchImpactToRx_tags_8)
103                 /sizeof(asn_DEF_txSwitchImpactToRx_tags_8[0]) - 1, /* 1 */
104         asn_DEF_txSwitchImpactToRx_tags_8,      /* Same as above */
105         sizeof(asn_DEF_txSwitchImpactToRx_tags_8)
106                 /sizeof(asn_DEF_txSwitchImpactToRx_tags_8[0]), /* 2 */
107         { &asn_OER_type_txSwitchImpactToRx_constr_8, &asn_PER_type_txSwitchImpactToRx_constr_8, NativeEnumerated_constraint },
108         0, 0,   /* Defined elsewhere */
109         &asn_SPC_txSwitchImpactToRx_specs_8     /* Additional specs */
110 };
111
112 asn_TYPE_member_t asn_MBR_SRS_TxSwitch_1[] = {
113         { ATF_NOFLAGS, 0, offsetof(struct SRS_TxSwitch, supportedSRS_TxPortSwitch),
114                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
115                 -1,     /* IMPLICIT tag at current level */
116                 &asn_DEF_supportedSRS_TxPortSwitch_2,
117                 0,
118                 { 0, 0, 0 },
119                 0, 0, /* No default value */
120                 "supportedSRS-TxPortSwitch"
121                 },
122         { ATF_POINTER, 1, offsetof(struct SRS_TxSwitch, txSwitchImpactToRx),
123                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
124                 -1,     /* IMPLICIT tag at current level */
125                 &asn_DEF_txSwitchImpactToRx_8,
126                 0,
127                 { 0, 0, 0 },
128                 0, 0, /* No default value */
129                 "txSwitchImpactToRx"
130                 },
131 };
132 static const int asn_MAP_SRS_TxSwitch_oms_1[] = { 1 };
133 static const ber_tlv_tag_t asn_DEF_SRS_TxSwitch_tags_1[] = {
134         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
135 };
136 static const asn_TYPE_tag2member_t asn_MAP_SRS_TxSwitch_tag2el_1[] = {
137     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supportedSRS-TxPortSwitch */
138     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* txSwitchImpactToRx */
139 };
140 asn_SEQUENCE_specifics_t asn_SPC_SRS_TxSwitch_specs_1 = {
141         sizeof(struct SRS_TxSwitch),
142         offsetof(struct SRS_TxSwitch, _asn_ctx),
143         asn_MAP_SRS_TxSwitch_tag2el_1,
144         2,      /* Count of tags in the map */
145         asn_MAP_SRS_TxSwitch_oms_1,     /* Optional members */
146         1, 0,   /* Root/Additions */
147         -1,     /* First extension addition */
148 };
149 asn_TYPE_descriptor_t asn_DEF_SRS_TxSwitch = {
150         "SRS-TxSwitch",
151         "SRS-TxSwitch",
152         &asn_OP_SEQUENCE,
153         asn_DEF_SRS_TxSwitch_tags_1,
154         sizeof(asn_DEF_SRS_TxSwitch_tags_1)
155                 /sizeof(asn_DEF_SRS_TxSwitch_tags_1[0]), /* 1 */
156         asn_DEF_SRS_TxSwitch_tags_1,    /* Same as above */
157         sizeof(asn_DEF_SRS_TxSwitch_tags_1)
158                 /sizeof(asn_DEF_SRS_TxSwitch_tags_1[0]), /* 1 */
159         { 0, 0, SEQUENCE_constraint },
160         asn_MBR_SRS_TxSwitch_1,
161         2,      /* Elements count */
162         &asn_SPC_SRS_TxSwitch_specs_1   /* Additional specs */
163 };
164