Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "X2AP-IEs" |
kalnagy | 1455c85 | 2019-10-21 13:06:23 +0200 | [diff] [blame] | 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` |
Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include "BluetoothMeasurementConfiguration.h" |
| 9 | |
| 10 | #include "BluetoothMeasConfigNameList.h" |
| 11 | #include "ProtocolExtensionContainer.h" |
| 12 | /* |
| 13 | * This type is implemented using NativeEnumerated, |
| 14 | * so here we adjust the DEF accordingly. |
| 15 | */ |
| 16 | static asn_oer_constraints_t asn_OER_type_bt_rssi_constr_4 CC_NOTUSED = { |
| 17 | { 0, 0 }, |
| 18 | -1}; |
| 19 | static asn_per_constraints_t asn_PER_type_bt_rssi_constr_4 CC_NOTUSED = { |
| 20 | { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, |
| 21 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 22 | 0, 0 /* No PER value map */ |
| 23 | }; |
| 24 | static const asn_INTEGER_enum_map_t asn_MAP_bt_rssi_value2enum_4[] = { |
| 25 | { 0, 4, "true" } |
| 26 | /* This list is extensible */ |
| 27 | }; |
| 28 | static const unsigned int asn_MAP_bt_rssi_enum2value_4[] = { |
| 29 | 0 /* true(0) */ |
| 30 | /* This list is extensible */ |
| 31 | }; |
| 32 | static const asn_INTEGER_specifics_t asn_SPC_bt_rssi_specs_4 = { |
| 33 | asn_MAP_bt_rssi_value2enum_4, /* "tag" => N; sorted by tag */ |
| 34 | asn_MAP_bt_rssi_enum2value_4, /* N => "tag"; sorted by N */ |
| 35 | 1, /* Number of elements in the maps */ |
| 36 | 2, /* Extensions before this member */ |
| 37 | 1, /* Strict enumeration */ |
| 38 | 0, /* Native long size */ |
| 39 | 0 |
| 40 | }; |
| 41 | static const ber_tlv_tag_t asn_DEF_bt_rssi_tags_4[] = { |
| 42 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 43 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 44 | }; |
| 45 | static /* Use -fall-defs-global to expose */ |
| 46 | asn_TYPE_descriptor_t asn_DEF_bt_rssi_4 = { |
| 47 | "bt-rssi", |
| 48 | "bt-rssi", |
| 49 | &asn_OP_NativeEnumerated, |
| 50 | asn_DEF_bt_rssi_tags_4, |
| 51 | sizeof(asn_DEF_bt_rssi_tags_4) |
| 52 | /sizeof(asn_DEF_bt_rssi_tags_4[0]) - 1, /* 1 */ |
| 53 | asn_DEF_bt_rssi_tags_4, /* Same as above */ |
| 54 | sizeof(asn_DEF_bt_rssi_tags_4) |
| 55 | /sizeof(asn_DEF_bt_rssi_tags_4[0]), /* 2 */ |
| 56 | { &asn_OER_type_bt_rssi_constr_4, &asn_PER_type_bt_rssi_constr_4, NativeEnumerated_constraint }, |
| 57 | 0, 0, /* Defined elsewhere */ |
| 58 | &asn_SPC_bt_rssi_specs_4 /* Additional specs */ |
| 59 | }; |
| 60 | |
| 61 | static asn_TYPE_member_t asn_MBR_BluetoothMeasurementConfiguration_1[] = { |
| 62 | { ATF_NOFLAGS, 0, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfig), |
| 63 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 64 | -1, /* IMPLICIT tag at current level */ |
| 65 | &asn_DEF_BluetoothMeasConfig, |
| 66 | 0, |
| 67 | { 0, 0, 0 }, |
| 68 | 0, 0, /* No default value */ |
| 69 | "bluetoothMeasConfig" |
| 70 | }, |
| 71 | { ATF_POINTER, 3, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfigNameList), |
| 72 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 73 | -1, /* IMPLICIT tag at current level */ |
| 74 | &asn_DEF_BluetoothMeasConfigNameList, |
| 75 | 0, |
| 76 | { 0, 0, 0 }, |
| 77 | 0, 0, /* No default value */ |
| 78 | "bluetoothMeasConfigNameList" |
| 79 | }, |
| 80 | { ATF_POINTER, 2, offsetof(struct BluetoothMeasurementConfiguration, bt_rssi), |
| 81 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 82 | -1, /* IMPLICIT tag at current level */ |
| 83 | &asn_DEF_bt_rssi_4, |
| 84 | 0, |
| 85 | { 0, 0, 0 }, |
| 86 | 0, 0, /* No default value */ |
| 87 | "bt-rssi" |
| 88 | }, |
| 89 | { ATF_POINTER, 1, offsetof(struct BluetoothMeasurementConfiguration, iE_Extensions), |
| 90 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 91 | -1, /* IMPLICIT tag at current level */ |
kalnagy | 1455c85 | 2019-10-21 13:06:23 +0200 | [diff] [blame] | 92 | &asn_DEF_ProtocolExtensionContainer_7683P111, |
Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 93 | 0, |
| 94 | { 0, 0, 0 }, |
| 95 | 0, 0, /* No default value */ |
| 96 | "iE-Extensions" |
| 97 | }, |
| 98 | }; |
| 99 | static const int asn_MAP_BluetoothMeasurementConfiguration_oms_1[] = { 1, 2, 3 }; |
| 100 | static const ber_tlv_tag_t asn_DEF_BluetoothMeasurementConfiguration_tags_1[] = { |
| 101 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 102 | }; |
| 103 | static const asn_TYPE_tag2member_t asn_MAP_BluetoothMeasurementConfiguration_tag2el_1[] = { |
| 104 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bluetoothMeasConfig */ |
| 105 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bluetoothMeasConfigNameList */ |
| 106 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-rssi */ |
| 107 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ |
| 108 | }; |
| 109 | static asn_SEQUENCE_specifics_t asn_SPC_BluetoothMeasurementConfiguration_specs_1 = { |
| 110 | sizeof(struct BluetoothMeasurementConfiguration), |
| 111 | offsetof(struct BluetoothMeasurementConfiguration, _asn_ctx), |
| 112 | asn_MAP_BluetoothMeasurementConfiguration_tag2el_1, |
| 113 | 4, /* Count of tags in the map */ |
| 114 | asn_MAP_BluetoothMeasurementConfiguration_oms_1, /* Optional members */ |
| 115 | 3, 0, /* Root/Additions */ |
| 116 | 4, /* First extension addition */ |
| 117 | }; |
| 118 | asn_TYPE_descriptor_t asn_DEF_BluetoothMeasurementConfiguration = { |
| 119 | "BluetoothMeasurementConfiguration", |
| 120 | "BluetoothMeasurementConfiguration", |
| 121 | &asn_OP_SEQUENCE, |
| 122 | asn_DEF_BluetoothMeasurementConfiguration_tags_1, |
| 123 | sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1) |
| 124 | /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */ |
| 125 | asn_DEF_BluetoothMeasurementConfiguration_tags_1, /* Same as above */ |
| 126 | sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1) |
| 127 | /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */ |
| 128 | { 0, 0, SEQUENCE_constraint }, |
| 129 | asn_MBR_BluetoothMeasurementConfiguration_1, |
| 130 | 4, /* Elements count */ |
| 131 | &asn_SPC_BluetoothMeasurementConfiguration_specs_1 /* Additional specs */ |
| 132 | }; |
| 133 | |