Coverage Report

Created: 2026-08-14 06:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_BeamMeasurementsReportQuantity.c
Line
Count
Source
1
/*
2
 * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c)
3
 * From ASN.1 module "NGAP-IEs"
4
 *  found in "../support/ngap-r19.2.0/38413-j20.asn"
5
 *  `asn1c -pdu=all -fprefix=NGAP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER`
6
 */
7
8
#include "NGAP_BeamMeasurementsReportQuantity.h"
9
10
#include "NGAP_ProtocolExtensionContainer.h"
11
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
12
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
13
extern asn_TYPE_descriptor_t asn_DEF_NGAP_rSRP __attribute__((weak, alias("asn_DEF_NGAP_rSRP_2")));
14
#else
15
static asn_TYPE_descriptor_t asn_DEF_NGAP_rSRP_2;
16
static asn_TYPE_descriptor_t asn_DEF_NGAP_rSRP;
17
__attribute__((constructor)) static void asn_DEF_NGAP_rSRP_2_alias_init(void) {
18
  asn_DEF_NGAP_rSRP = asn_DEF_NGAP_rSRP_2;
19
}
20
#endif
21
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
22
/*
23
 * This type is implemented using NativeEnumerated,
24
 * so here we adjust the DEF accordingly.
25
 */
26
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
27
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
28
extern asn_TYPE_descriptor_t asn_DEF_NGAP_rSRQ __attribute__((weak, alias("asn_DEF_NGAP_rSRQ_6")));
29
#else
30
static asn_TYPE_descriptor_t asn_DEF_NGAP_rSRQ_6;
31
static asn_TYPE_descriptor_t asn_DEF_NGAP_rSRQ;
32
__attribute__((constructor)) static void asn_DEF_NGAP_rSRQ_6_alias_init(void) {
33
  asn_DEF_NGAP_rSRQ = asn_DEF_NGAP_rSRQ_6;
34
}
35
#endif
36
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
37
/*
38
 * This type is implemented using NativeEnumerated,
39
 * so here we adjust the DEF accordingly.
40
 */
41
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
42
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
43
extern asn_TYPE_descriptor_t asn_DEF_NGAP_sINR __attribute__((weak, alias("asn_DEF_NGAP_sINR_10")));
44
#else
45
static asn_TYPE_descriptor_t asn_DEF_NGAP_sINR_10;
46
static asn_TYPE_descriptor_t asn_DEF_NGAP_sINR;
47
__attribute__((constructor)) static void asn_DEF_NGAP_sINR_10_alias_init(void) {
48
  asn_DEF_NGAP_sINR = asn_DEF_NGAP_sINR_10;
49
}
50
#endif
51
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
52
/*
53
 * This type is implemented using NativeEnumerated,
54
 * so here we adjust the DEF accordingly.
55
 */
56
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
57
static asn_per_constraints_t asn_PER_type_NGAP_rSRP_constr_2 CC_NOTUSED = {
58
  { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }  /* (0..0,...) */,
59
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
60
  0, 0  /* No PER value map */
61
};
62
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
63
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
64
static asn_per_constraints_t asn_PER_type_NGAP_rSRQ_constr_6 CC_NOTUSED = {
65
  { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }  /* (0..0,...) */,
66
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
67
  0, 0  /* No PER value map */
68
};
69
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
70
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
71
static asn_per_constraints_t asn_PER_type_NGAP_sINR_constr_10 CC_NOTUSED = {
72
  { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }  /* (0..0,...) */,
73
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
74
  0, 0  /* No PER value map */
75
};
76
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
77
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_rSRP_value2enum_2[] = {
78
  { 0,  4,  "true" },
79
  { 1,  5,  "false" }
80
  /* This list is extensible */
81
};
82
static int asn_validate_NGAP_rSRP_2(const asn_TYPE_descriptor_t *td,
83
                       const void *sptr,
84
                       asn_app_constraint_failed_f *ctfailcb,
85
0
                       void* app_key) {
86
0
    if(! sptr) { return -1; }
87
0
    e_NGAP_BeamMeasurementsReportQuantity__rSRP value = *(e_NGAP_BeamMeasurementsReportQuantity__rSRP*)sptr;
88
0
    switch(value) {
89
0
    case NGAP_BeamMeasurementsReportQuantity__rSRP_true:
90
0
    case NGAP_BeamMeasurementsReportQuantity__rSRP_false:
91
0
        return 0;
92
0
    }
93
0
    return -1;
94
0
}
95
static const unsigned int asn_MAP_NGAP_rSRP_enum2value_2[] = {
96
  1,  /* false(1) */
97
  0 /* true(0) */
98
  /* This list is extensible */
99
};
100
static const asn_INTEGER_specifics_t asn_SPC_NGAP_rSRP_specs_2 = {
101
  asn_MAP_NGAP_rSRP_value2enum_2, /* "tag" => N; sorted by tag */
102
  asn_MAP_NGAP_rSRP_enum2value_2, /* N => "tag"; sorted by N */
103
  2,  /* Number of elements in the maps */
104
  2,  /* Extensions before this member */
105
  1,  /* Strict enumeration */
106
  0,  /* Native long size */
107
  0
108
};
109
static const ber_tlv_tag_t asn_DEF_NGAP_rSRP_tags_2[] = {
110
  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
111
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
112
};
113
static /* Use -fall-defs-global to expose */
114
asn_TYPE_descriptor_t asn_DEF_NGAP_rSRP_2 = {
115
  "rSRP",
116
  "rSRP",
117
  &asn_OP_NativeEnumerated,
118
  asn_DEF_NGAP_rSRP_tags_2,
119
  sizeof(asn_DEF_NGAP_rSRP_tags_2)
120
    /sizeof(asn_DEF_NGAP_rSRP_tags_2[0]) - 1, /* 1 */
121
  asn_DEF_NGAP_rSRP_tags_2, /* Same as above */
122
  sizeof(asn_DEF_NGAP_rSRP_tags_2)
123
    /sizeof(asn_DEF_NGAP_rSRP_tags_2[0]), /* 2 */
124
  {
125
#if !defined(ASN_DISABLE_OER_SUPPORT)
126
    0,
127
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
128
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
129
    &asn_PER_type_NGAP_rSRP_constr_2,
130
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
131
#if !defined(ASN_DISABLE_JER_SUPPORT)
132
    0,
133
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
134
    asn_validate_NGAP_rSRP_2
135
  },
136
  0, 0, /* Defined elsewhere */
137
  &asn_SPC_NGAP_rSRP_specs_2  /* Additional specs */
138
};
139
140
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_rSRQ_value2enum_6[] = {
141
  { 0,  4,  "true" },
142
  { 1,  5,  "false" }
143
  /* This list is extensible */
144
};
145
static int asn_validate_NGAP_rSRQ_6(const asn_TYPE_descriptor_t *td,
146
                       const void *sptr,
147
                       asn_app_constraint_failed_f *ctfailcb,
148
0
                       void* app_key) {
149
0
    if(! sptr) { return -1; }
150
0
    e_NGAP_BeamMeasurementsReportQuantity__rSRQ value = *(e_NGAP_BeamMeasurementsReportQuantity__rSRQ*)sptr;
151
0
    switch(value) {
152
0
    case NGAP_BeamMeasurementsReportQuantity__rSRQ_true:
153
0
    case NGAP_BeamMeasurementsReportQuantity__rSRQ_false:
154
0
        return 0;
155
0
    }
156
0
    return -1;
157
0
}
158
static const unsigned int asn_MAP_NGAP_rSRQ_enum2value_6[] = {
159
  1,  /* false(1) */
160
  0 /* true(0) */
161
  /* This list is extensible */
162
};
163
static const asn_INTEGER_specifics_t asn_SPC_NGAP_rSRQ_specs_6 = {
164
  asn_MAP_NGAP_rSRQ_value2enum_6, /* "tag" => N; sorted by tag */
165
  asn_MAP_NGAP_rSRQ_enum2value_6, /* N => "tag"; sorted by N */
166
  2,  /* Number of elements in the maps */
167
  2,  /* Extensions before this member */
168
  1,  /* Strict enumeration */
169
  0,  /* Native long size */
170
  0
171
};
172
static const ber_tlv_tag_t asn_DEF_NGAP_rSRQ_tags_6[] = {
173
  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
174
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
175
};
176
static /* Use -fall-defs-global to expose */
177
asn_TYPE_descriptor_t asn_DEF_NGAP_rSRQ_6 = {
178
  "rSRQ",
179
  "rSRQ",
180
  &asn_OP_NativeEnumerated,
181
  asn_DEF_NGAP_rSRQ_tags_6,
182
  sizeof(asn_DEF_NGAP_rSRQ_tags_6)
183
    /sizeof(asn_DEF_NGAP_rSRQ_tags_6[0]) - 1, /* 1 */
184
  asn_DEF_NGAP_rSRQ_tags_6, /* Same as above */
185
  sizeof(asn_DEF_NGAP_rSRQ_tags_6)
186
    /sizeof(asn_DEF_NGAP_rSRQ_tags_6[0]), /* 2 */
187
  {
188
#if !defined(ASN_DISABLE_OER_SUPPORT)
189
    0,
190
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
191
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
192
    &asn_PER_type_NGAP_rSRQ_constr_6,
193
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
194
#if !defined(ASN_DISABLE_JER_SUPPORT)
195
    0,
196
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
197
    asn_validate_NGAP_rSRQ_6
198
  },
199
  0, 0, /* Defined elsewhere */
200
  &asn_SPC_NGAP_rSRQ_specs_6  /* Additional specs */
201
};
202
203
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_sINR_value2enum_10[] = {
204
  { 0,  4,  "true" },
205
  { 1,  5,  "false" }
206
  /* This list is extensible */
207
};
208
static int asn_validate_NGAP_sINR_10(const asn_TYPE_descriptor_t *td,
209
                       const void *sptr,
210
                       asn_app_constraint_failed_f *ctfailcb,
211
0
                       void* app_key) {
212
0
    if(! sptr) { return -1; }
213
0
    e_NGAP_BeamMeasurementsReportQuantity__sINR value = *(e_NGAP_BeamMeasurementsReportQuantity__sINR*)sptr;
214
0
    switch(value) {
215
0
    case NGAP_BeamMeasurementsReportQuantity__sINR_true:
216
0
    case NGAP_BeamMeasurementsReportQuantity__sINR_false:
217
0
        return 0;
218
0
    }
219
0
    return -1;
220
0
}
221
static const unsigned int asn_MAP_NGAP_sINR_enum2value_10[] = {
222
  1,  /* false(1) */
223
  0 /* true(0) */
224
  /* This list is extensible */
225
};
226
static const asn_INTEGER_specifics_t asn_SPC_NGAP_sINR_specs_10 = {
227
  asn_MAP_NGAP_sINR_value2enum_10,  /* "tag" => N; sorted by tag */
228
  asn_MAP_NGAP_sINR_enum2value_10,  /* N => "tag"; sorted by N */
229
  2,  /* Number of elements in the maps */
230
  2,  /* Extensions before this member */
231
  1,  /* Strict enumeration */
232
  0,  /* Native long size */
233
  0
234
};
235
static const ber_tlv_tag_t asn_DEF_NGAP_sINR_tags_10[] = {
236
  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
237
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
238
};
239
static /* Use -fall-defs-global to expose */
240
asn_TYPE_descriptor_t asn_DEF_NGAP_sINR_10 = {
241
  "sINR",
242
  "sINR",
243
  &asn_OP_NativeEnumerated,
244
  asn_DEF_NGAP_sINR_tags_10,
245
  sizeof(asn_DEF_NGAP_sINR_tags_10)
246
    /sizeof(asn_DEF_NGAP_sINR_tags_10[0]) - 1, /* 1 */
247
  asn_DEF_NGAP_sINR_tags_10,  /* Same as above */
248
  sizeof(asn_DEF_NGAP_sINR_tags_10)
249
    /sizeof(asn_DEF_NGAP_sINR_tags_10[0]), /* 2 */
250
  {
251
#if !defined(ASN_DISABLE_OER_SUPPORT)
252
    0,
253
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
254
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
255
    &asn_PER_type_NGAP_sINR_constr_10,
256
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
257
#if !defined(ASN_DISABLE_JER_SUPPORT)
258
    0,
259
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
260
    asn_validate_NGAP_sINR_10
261
  },
262
  0, 0, /* Defined elsewhere */
263
  &asn_SPC_NGAP_sINR_specs_10 /* Additional specs */
264
};
265
266
asn_TYPE_member_t asn_MBR_NGAP_BeamMeasurementsReportQuantity_1[] = {
267
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_BeamMeasurementsReportQuantity, rSRP),
268
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
269
    -1, /* IMPLICIT tag at current level */
270
    &asn_DEF_NGAP_rSRP_2,
271
    0,
272
    {
273
#if !defined(ASN_DISABLE_OER_SUPPORT)
274
      0,
275
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
276
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
277
      0,
278
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
279
#if !defined(ASN_DISABLE_JER_SUPPORT)
280
      0,
281
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
282
      0
283
    },
284
    0, 0, /* No default value */
285
    "rSRP"
286
    },
287
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_BeamMeasurementsReportQuantity, rSRQ),
288
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
289
    -1, /* IMPLICIT tag at current level */
290
    &asn_DEF_NGAP_rSRQ_6,
291
    0,
292
    {
293
#if !defined(ASN_DISABLE_OER_SUPPORT)
294
      0,
295
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
296
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
297
      0,
298
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
299
#if !defined(ASN_DISABLE_JER_SUPPORT)
300
      0,
301
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
302
      0
303
    },
304
    0, 0, /* No default value */
305
    "rSRQ"
306
    },
307
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_BeamMeasurementsReportQuantity, sINR),
308
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
309
    -1, /* IMPLICIT tag at current level */
310
    &asn_DEF_NGAP_sINR_10,
311
    0,
312
    {
313
#if !defined(ASN_DISABLE_OER_SUPPORT)
314
      0,
315
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
316
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
317
      0,
318
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
319
#if !defined(ASN_DISABLE_JER_SUPPORT)
320
      0,
321
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
322
      0
323
    },
324
    0, 0, /* No default value */
325
    "sINR"
326
    },
327
  { ATF_POINTER, 1, offsetof(struct NGAP_BeamMeasurementsReportQuantity, iE_Extensions),
328
    (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
329
    -1, /* IMPLICIT tag at current level */
330
    &asn_DEF_NGAP_ProtocolExtensionContainer_14713P39,
331
    0,
332
    {
333
#if !defined(ASN_DISABLE_OER_SUPPORT)
334
      0,
335
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
336
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
337
      0,
338
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
339
#if !defined(ASN_DISABLE_JER_SUPPORT)
340
      0,
341
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
342
      0
343
    },
344
    0, 0, /* No default value */
345
    "iE-Extensions"
346
    },
347
};
348
static const int asn_MAP_NGAP_BeamMeasurementsReportQuantity_oms_1[] = { 3 };
349
static const ber_tlv_tag_t asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1[] = {
350
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
351
};
352
static const asn_TYPE_tag2member_t asn_MAP_NGAP_BeamMeasurementsReportQuantity_tag2el_1[] = {
353
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rSRP */
354
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rSRQ */
355
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sINR */
356
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
357
};
358
asn_SEQUENCE_specifics_t asn_SPC_NGAP_BeamMeasurementsReportQuantity_specs_1 = {
359
  sizeof(struct NGAP_BeamMeasurementsReportQuantity),
360
  offsetof(struct NGAP_BeamMeasurementsReportQuantity, _asn_ctx),
361
  asn_MAP_NGAP_BeamMeasurementsReportQuantity_tag2el_1,
362
  4,  /* Count of tags in the map */
363
  asn_MAP_NGAP_BeamMeasurementsReportQuantity_oms_1,  /* Optional members */
364
  1, 0, /* Root/Additions */
365
  4,  /* First extension addition */
366
};
367
asn_TYPE_descriptor_t asn_DEF_NGAP_BeamMeasurementsReportQuantity = {
368
  "BeamMeasurementsReportQuantity",
369
  "BeamMeasurementsReportQuantity",
370
  &asn_OP_SEQUENCE,
371
  asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1,
372
  sizeof(asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1)
373
    /sizeof(asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1[0]), /* 1 */
374
  asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1, /* Same as above */
375
  sizeof(asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1)
376
    /sizeof(asn_DEF_NGAP_BeamMeasurementsReportQuantity_tags_1[0]), /* 1 */
377
  {
378
#if !defined(ASN_DISABLE_OER_SUPPORT)
379
    0,
380
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
381
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
382
    0,
383
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
384
#if !defined(ASN_DISABLE_JER_SUPPORT)
385
    0,
386
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
387
    SEQUENCE_constraint
388
  },
389
  asn_MBR_NGAP_BeamMeasurementsReportQuantity_1,
390
  4,  /* Elements count */
391
  &asn_SPC_NGAP_BeamMeasurementsReportQuantity_specs_1  /* Additional specs */
392
};
393