2 * Copyright 2019 AT&T Intellectual Property
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 * platform project (RICP).
25 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26 * From ASN.1 module "X2AP-IEs"
27 * found in "../../asnFiles/X2AP-IEs.asn"
28 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
31 #include "BluetoothMeasurementConfiguration.h"
33 #include "BluetoothMeasConfigNameList.h"
34 #include "ProtocolExtensionContainer.h"
36 * This type is implemented using NativeEnumerated,
37 * so here we adjust the DEF accordingly.
39 static asn_per_constraints_t asn_PER_type_bt_rssi_constr_4 CC_NOTUSED = {
40 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 0, 0 /* No PER value map */
44 static const asn_INTEGER_enum_map_t asn_MAP_bt_rssi_value2enum_4[] = {
46 /* This list is extensible */
48 static const unsigned int asn_MAP_bt_rssi_enum2value_4[] = {
50 /* This list is extensible */
52 static const asn_INTEGER_specifics_t asn_SPC_bt_rssi_specs_4 = {
53 asn_MAP_bt_rssi_value2enum_4, /* "tag" => N; sorted by tag */
54 asn_MAP_bt_rssi_enum2value_4, /* N => "tag"; sorted by N */
55 1, /* Number of elements in the maps */
56 2, /* Extensions before this member */
57 1, /* Strict enumeration */
58 0, /* Native long size */
61 static const ber_tlv_tag_t asn_DEF_bt_rssi_tags_4[] = {
62 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
63 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
65 static /* Use -fall-defs-global to expose */
66 asn_TYPE_descriptor_t asn_DEF_bt_rssi_4 = {
69 &asn_OP_NativeEnumerated,
70 asn_DEF_bt_rssi_tags_4,
71 sizeof(asn_DEF_bt_rssi_tags_4)
72 /sizeof(asn_DEF_bt_rssi_tags_4[0]) - 1, /* 1 */
73 asn_DEF_bt_rssi_tags_4, /* Same as above */
74 sizeof(asn_DEF_bt_rssi_tags_4)
75 /sizeof(asn_DEF_bt_rssi_tags_4[0]), /* 2 */
76 { 0, &asn_PER_type_bt_rssi_constr_4, NativeEnumerated_constraint },
77 0, 0, /* Defined elsewhere */
78 &asn_SPC_bt_rssi_specs_4 /* Additional specs */
81 asn_TYPE_member_t asn_MBR_BluetoothMeasurementConfiguration_1[] = {
82 { ATF_NOFLAGS, 0, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfig),
83 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
84 -1, /* IMPLICIT tag at current level */
85 &asn_DEF_BluetoothMeasConfig,
88 0, 0, /* No default value */
91 { ATF_POINTER, 3, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfigNameList),
92 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
93 -1, /* IMPLICIT tag at current level */
94 &asn_DEF_BluetoothMeasConfigNameList,
97 0, 0, /* No default value */
98 "bluetoothMeasConfigNameList"
100 { ATF_POINTER, 2, offsetof(struct BluetoothMeasurementConfiguration, bt_rssi),
101 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
102 -1, /* IMPLICIT tag at current level */
106 0, 0, /* No default value */
109 { ATF_POINTER, 1, offsetof(struct BluetoothMeasurementConfiguration, iE_Extensions),
110 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
111 -1, /* IMPLICIT tag at current level */
112 &asn_DEF_ProtocolExtensionContainer_170P111,
115 0, 0, /* No default value */
119 static const int asn_MAP_BluetoothMeasurementConfiguration_oms_1[] = { 1, 2, 3 };
120 static const ber_tlv_tag_t asn_DEF_BluetoothMeasurementConfiguration_tags_1[] = {
121 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
123 static const asn_TYPE_tag2member_t asn_MAP_BluetoothMeasurementConfiguration_tag2el_1[] = {
124 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bluetoothMeasConfig */
125 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bluetoothMeasConfigNameList */
126 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-rssi */
127 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
129 asn_SEQUENCE_specifics_t asn_SPC_BluetoothMeasurementConfiguration_specs_1 = {
130 sizeof(struct BluetoothMeasurementConfiguration),
131 offsetof(struct BluetoothMeasurementConfiguration, _asn_ctx),
132 asn_MAP_BluetoothMeasurementConfiguration_tag2el_1,
133 4, /* Count of tags in the map */
134 asn_MAP_BluetoothMeasurementConfiguration_oms_1, /* Optional members */
135 3, 0, /* Root/Additions */
136 4, /* First extension addition */
138 asn_TYPE_descriptor_t asn_DEF_BluetoothMeasurementConfiguration = {
139 "BluetoothMeasurementConfiguration",
140 "BluetoothMeasurementConfiguration",
142 asn_DEF_BluetoothMeasurementConfiguration_tags_1,
143 sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
144 /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
145 asn_DEF_BluetoothMeasurementConfiguration_tags_1, /* Same as above */
146 sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
147 /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
148 { 0, 0, SEQUENCE_constraint },
149 asn_MBR_BluetoothMeasurementConfiguration_1,
150 4, /* Elements count */
151 &asn_SPC_BluetoothMeasurementConfiguration_specs_1 /* Additional specs */