2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../ASN1_Input/rrc_15_3_asn.asn1"
5 * `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "RadioLinkMonitoringRS.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
14 static asn_oer_constraints_t asn_OER_type_purpose_constr_3 CC_NOTUSED = {
17 static asn_per_constraints_t asn_PER_type_purpose_constr_3 CC_NOTUSED = {
18 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
19 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
20 0, 0 /* No PER value map */
22 static asn_oer_constraints_t asn_OER_type_detectionResource_constr_7 CC_NOTUSED = {
25 static asn_per_constraints_t asn_PER_type_detectionResource_constr_7 CC_NOTUSED = {
26 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
27 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
28 0, 0 /* No PER value map */
30 static const asn_INTEGER_enum_map_t asn_MAP_purpose_value2enum_3[] = {
31 { 0, 11, "beamFailure" },
35 static const unsigned int asn_MAP_purpose_enum2value_3[] = {
36 0, /* beamFailure(0) */
40 static const asn_INTEGER_specifics_t asn_SPC_purpose_specs_3 = {
41 asn_MAP_purpose_value2enum_3, /* "tag" => N; sorted by tag */
42 asn_MAP_purpose_enum2value_3, /* N => "tag"; sorted by N */
43 3, /* Number of elements in the maps */
44 0, /* Enumeration is not extensible */
45 1, /* Strict enumeration */
46 0, /* Native long size */
49 static const ber_tlv_tag_t asn_DEF_purpose_tags_3[] = {
50 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
51 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
53 static /* Use -fall-defs-global to expose */
54 asn_TYPE_descriptor_t asn_DEF_purpose_3 = {
57 &asn_OP_NativeEnumerated,
58 asn_DEF_purpose_tags_3,
59 sizeof(asn_DEF_purpose_tags_3)
60 /sizeof(asn_DEF_purpose_tags_3[0]) - 1, /* 1 */
61 asn_DEF_purpose_tags_3, /* Same as above */
62 sizeof(asn_DEF_purpose_tags_3)
63 /sizeof(asn_DEF_purpose_tags_3[0]), /* 2 */
64 { &asn_OER_type_purpose_constr_3, &asn_PER_type_purpose_constr_3, NativeEnumerated_constraint },
65 0, 0, /* Defined elsewhere */
66 &asn_SPC_purpose_specs_3 /* Additional specs */
69 static asn_TYPE_member_t asn_MBR_detectionResource_7[] = {
70 { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS__detectionResource, choice.ssb_Index),
71 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
72 -1, /* IMPLICIT tag at current level */
76 0, 0, /* No default value */
79 { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS__detectionResource, choice.csi_RS_Index),
80 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
81 -1, /* IMPLICIT tag at current level */
82 &asn_DEF_NZP_CSI_RS_ResourceId,
85 0, 0, /* No default value */
89 static const asn_TYPE_tag2member_t asn_MAP_detectionResource_tag2el_7[] = {
90 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index */
91 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RS-Index */
93 static asn_CHOICE_specifics_t asn_SPC_detectionResource_specs_7 = {
94 sizeof(struct RadioLinkMonitoringRS__detectionResource),
95 offsetof(struct RadioLinkMonitoringRS__detectionResource, _asn_ctx),
96 offsetof(struct RadioLinkMonitoringRS__detectionResource, present),
97 sizeof(((struct RadioLinkMonitoringRS__detectionResource *)0)->present),
98 asn_MAP_detectionResource_tag2el_7,
99 2, /* Count of tags in the map */
101 -1 /* Extensions start */
103 static /* Use -fall-defs-global to expose */
104 asn_TYPE_descriptor_t asn_DEF_detectionResource_7 = {
108 0, /* No effective tags (pointer) */
109 0, /* No effective tags (count) */
110 0, /* No tags (pointer) */
111 0, /* No tags (count) */
112 { &asn_OER_type_detectionResource_constr_7, &asn_PER_type_detectionResource_constr_7, CHOICE_constraint },
113 asn_MBR_detectionResource_7,
114 2, /* Elements count */
115 &asn_SPC_detectionResource_specs_7 /* Additional specs */
118 asn_TYPE_member_t asn_MBR_RadioLinkMonitoringRS_1[] = {
119 { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, radioLinkMonitoringRS_Id),
120 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
121 -1, /* IMPLICIT tag at current level */
122 &asn_DEF_RadioLinkMonitoringRS_Id,
125 0, 0, /* No default value */
126 "radioLinkMonitoringRS-Id"
128 { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, purpose),
129 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
130 -1, /* IMPLICIT tag at current level */
134 0, 0, /* No default value */
137 { ATF_NOFLAGS, 0, offsetof(struct RadioLinkMonitoringRS, detectionResource),
138 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
139 +1, /* EXPLICIT tag at current level */
140 &asn_DEF_detectionResource_7,
143 0, 0, /* No default value */
147 static const ber_tlv_tag_t asn_DEF_RadioLinkMonitoringRS_tags_1[] = {
148 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
150 static const asn_TYPE_tag2member_t asn_MAP_RadioLinkMonitoringRS_tag2el_1[] = {
151 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioLinkMonitoringRS-Id */
152 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* purpose */
153 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* detectionResource */
155 asn_SEQUENCE_specifics_t asn_SPC_RadioLinkMonitoringRS_specs_1 = {
156 sizeof(struct RadioLinkMonitoringRS),
157 offsetof(struct RadioLinkMonitoringRS, _asn_ctx),
158 asn_MAP_RadioLinkMonitoringRS_tag2el_1,
159 3, /* Count of tags in the map */
160 0, 0, 0, /* Optional elements (not needed) */
161 3, /* First extension addition */
163 asn_TYPE_descriptor_t asn_DEF_RadioLinkMonitoringRS = {
164 "RadioLinkMonitoringRS",
165 "RadioLinkMonitoringRS",
167 asn_DEF_RadioLinkMonitoringRS_tags_1,
168 sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1)
169 /sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1[0]), /* 1 */
170 asn_DEF_RadioLinkMonitoringRS_tags_1, /* Same as above */
171 sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1)
172 /sizeof(asn_DEF_RadioLinkMonitoringRS_tags_1[0]), /* 1 */
173 { 0, 0, SEQUENCE_constraint },
174 asn_MBR_RadioLinkMonitoringRS_1,
175 3, /* Elements count */
176 &asn_SPC_RadioLinkMonitoringRS_specs_1 /* Additional specs */