f1744ff7095e675d534e42f5cb67e0cb44688cee
[ric-plt/submgr.git] / e2ap / lib / WLANMeasurementConfiguration.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
4  *      found in "X2AP-15-4-0.asn1"
5  *      `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
6  */
7
8 #include "WLANMeasurementConfiguration.h"
9
10 #include "WLANMeasConfigNameList.h"
11 #include "ProtocolExtensionContainer.h"
12 /*
13  * This type is implemented using NativeEnumerated,
14  * so here we adjust the DEF accordingly.
15  */
16 /*
17  * This type is implemented using NativeEnumerated,
18  * so here we adjust the DEF accordingly.
19  */
20 static asn_oer_constraints_t asn_OER_type_wlan_rssi_constr_4 CC_NOTUSED = {
21         { 0, 0 },
22         -1};
23 static asn_per_constraints_t asn_PER_type_wlan_rssi_constr_4 CC_NOTUSED = {
24         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
25         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
26         0, 0    /* No PER value map */
27 };
28 static asn_oer_constraints_t asn_OER_type_wlan_rtt_constr_7 CC_NOTUSED = {
29         { 0, 0 },
30         -1};
31 static asn_per_constraints_t asn_PER_type_wlan_rtt_constr_7 CC_NOTUSED = {
32         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
33         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
34         0, 0    /* No PER value map */
35 };
36 static const asn_INTEGER_enum_map_t asn_MAP_wlan_rssi_value2enum_4[] = {
37         { 0,    4,      "true" }
38         /* This list is extensible */
39 };
40 static const unsigned int asn_MAP_wlan_rssi_enum2value_4[] = {
41         0       /* true(0) */
42         /* This list is extensible */
43 };
44 static const asn_INTEGER_specifics_t asn_SPC_wlan_rssi_specs_4 = {
45         asn_MAP_wlan_rssi_value2enum_4, /* "tag" => N; sorted by tag */
46         asn_MAP_wlan_rssi_enum2value_4, /* N => "tag"; sorted by N */
47         1,      /* Number of elements in the maps */
48         2,      /* Extensions before this member */
49         1,      /* Strict enumeration */
50         0,      /* Native long size */
51         0
52 };
53 static const ber_tlv_tag_t asn_DEF_wlan_rssi_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_wlan_rssi_4 = {
59         "wlan-rssi",
60         "wlan-rssi",
61         &asn_OP_NativeEnumerated,
62         asn_DEF_wlan_rssi_tags_4,
63         sizeof(asn_DEF_wlan_rssi_tags_4)
64                 /sizeof(asn_DEF_wlan_rssi_tags_4[0]) - 1, /* 1 */
65         asn_DEF_wlan_rssi_tags_4,       /* Same as above */
66         sizeof(asn_DEF_wlan_rssi_tags_4)
67                 /sizeof(asn_DEF_wlan_rssi_tags_4[0]), /* 2 */
68         { &asn_OER_type_wlan_rssi_constr_4, &asn_PER_type_wlan_rssi_constr_4, NativeEnumerated_constraint },
69         0, 0,   /* Defined elsewhere */
70         &asn_SPC_wlan_rssi_specs_4      /* Additional specs */
71 };
72
73 static const asn_INTEGER_enum_map_t asn_MAP_wlan_rtt_value2enum_7[] = {
74         { 0,    4,      "true" }
75         /* This list is extensible */
76 };
77 static const unsigned int asn_MAP_wlan_rtt_enum2value_7[] = {
78         0       /* true(0) */
79         /* This list is extensible */
80 };
81 static const asn_INTEGER_specifics_t asn_SPC_wlan_rtt_specs_7 = {
82         asn_MAP_wlan_rtt_value2enum_7,  /* "tag" => N; sorted by tag */
83         asn_MAP_wlan_rtt_enum2value_7,  /* N => "tag"; sorted by N */
84         1,      /* Number of elements in the maps */
85         2,      /* Extensions before this member */
86         1,      /* Strict enumeration */
87         0,      /* Native long size */
88         0
89 };
90 static const ber_tlv_tag_t asn_DEF_wlan_rtt_tags_7[] = {
91         (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
92         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
93 };
94 static /* Use -fall-defs-global to expose */
95 asn_TYPE_descriptor_t asn_DEF_wlan_rtt_7 = {
96         "wlan-rtt",
97         "wlan-rtt",
98         &asn_OP_NativeEnumerated,
99         asn_DEF_wlan_rtt_tags_7,
100         sizeof(asn_DEF_wlan_rtt_tags_7)
101                 /sizeof(asn_DEF_wlan_rtt_tags_7[0]) - 1, /* 1 */
102         asn_DEF_wlan_rtt_tags_7,        /* Same as above */
103         sizeof(asn_DEF_wlan_rtt_tags_7)
104                 /sizeof(asn_DEF_wlan_rtt_tags_7[0]), /* 2 */
105         { &asn_OER_type_wlan_rtt_constr_7, &asn_PER_type_wlan_rtt_constr_7, NativeEnumerated_constraint },
106         0, 0,   /* Defined elsewhere */
107         &asn_SPC_wlan_rtt_specs_7       /* Additional specs */
108 };
109
110 static asn_TYPE_member_t asn_MBR_WLANMeasurementConfiguration_1[] = {
111         { ATF_NOFLAGS, 0, offsetof(struct WLANMeasurementConfiguration, wlanMeasConfig),
112                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
113                 -1,     /* IMPLICIT tag at current level */
114                 &asn_DEF_WLANMeasConfig,
115                 0,
116                 { 0, 0, 0 },
117                 0, 0, /* No default value */
118                 "wlanMeasConfig"
119                 },
120         { ATF_POINTER, 4, offsetof(struct WLANMeasurementConfiguration, wlanMeasConfigNameList),
121                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
122                 -1,     /* IMPLICIT tag at current level */
123                 &asn_DEF_WLANMeasConfigNameList,
124                 0,
125                 { 0, 0, 0 },
126                 0, 0, /* No default value */
127                 "wlanMeasConfigNameList"
128                 },
129         { ATF_POINTER, 3, offsetof(struct WLANMeasurementConfiguration, wlan_rssi),
130                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
131                 -1,     /* IMPLICIT tag at current level */
132                 &asn_DEF_wlan_rssi_4,
133                 0,
134                 { 0, 0, 0 },
135                 0, 0, /* No default value */
136                 "wlan-rssi"
137                 },
138         { ATF_POINTER, 2, offsetof(struct WLANMeasurementConfiguration, wlan_rtt),
139                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
140                 -1,     /* IMPLICIT tag at current level */
141                 &asn_DEF_wlan_rtt_7,
142                 0,
143                 { 0, 0, 0 },
144                 0, 0, /* No default value */
145                 "wlan-rtt"
146                 },
147         { ATF_POINTER, 1, offsetof(struct WLANMeasurementConfiguration, iE_Extensions),
148                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
149                 -1,     /* IMPLICIT tag at current level */
150                 &asn_DEF_ProtocolExtensionContainer_7683P222,
151                 0,
152                 { 0, 0, 0 },
153                 0, 0, /* No default value */
154                 "iE-Extensions"
155                 },
156 };
157 static const int asn_MAP_WLANMeasurementConfiguration_oms_1[] = { 1, 2, 3, 4 };
158 static const ber_tlv_tag_t asn_DEF_WLANMeasurementConfiguration_tags_1[] = {
159         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
160 };
161 static const asn_TYPE_tag2member_t asn_MAP_WLANMeasurementConfiguration_tag2el_1[] = {
162     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlanMeasConfig */
163     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlanMeasConfigNameList */
164     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-rssi */
165     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wlan-rtt */
166     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
167 };
168 static asn_SEQUENCE_specifics_t asn_SPC_WLANMeasurementConfiguration_specs_1 = {
169         sizeof(struct WLANMeasurementConfiguration),
170         offsetof(struct WLANMeasurementConfiguration, _asn_ctx),
171         asn_MAP_WLANMeasurementConfiguration_tag2el_1,
172         5,      /* Count of tags in the map */
173         asn_MAP_WLANMeasurementConfiguration_oms_1,     /* Optional members */
174         4, 0,   /* Root/Additions */
175         5,      /* First extension addition */
176 };
177 asn_TYPE_descriptor_t asn_DEF_WLANMeasurementConfiguration = {
178         "WLANMeasurementConfiguration",
179         "WLANMeasurementConfiguration",
180         &asn_OP_SEQUENCE,
181         asn_DEF_WLANMeasurementConfiguration_tags_1,
182         sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1)
183                 /sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
184         asn_DEF_WLANMeasurementConfiguration_tags_1,    /* Same as above */
185         sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1)
186                 /sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
187         { 0, 0, SEQUENCE_constraint },
188         asn_MBR_WLANMeasurementConfiguration_1,
189         5,      /* Elements count */
190         &asn_SPC_WLANMeasurementConfiguration_specs_1   /* Additional specs */
191 };
192