Coverage Report

Created: 2026-09-27 06:19

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_NGRAN-RadioResourceStatus.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_NGRAN-RadioResourceStatus.h"
9
10
#include "NGAP_ProtocolExtensionContainer.h"
11
static int
12
memb_NGAP_dL_GBR_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14
0
  long value;
15
  
16
0
  if(!sptr) {
17
0
    ASN__CTFAIL(app_key, td, sptr,
18
0
      "%s: value not given (%s:%d)",
19
0
      td->name, __FILE__, __LINE__);
20
0
    return -1;
21
0
  }
22
  
23
0
  value = *(const long *)sptr;
24
  
25
0
  if((value >= 0L && value <= 100L)) {
26
    /* Constraint check succeeded */
27
0
    return 0;
28
0
  } else {
29
0
    ASN__CTFAIL(app_key, td, sptr,
30
0
      "%s: constraint failed (%s:%d)",
31
0
      td->name, __FILE__, __LINE__);
32
0
    return -1;
33
0
  }
34
0
}
35
36
static int
37
memb_NGAP_uL_GBR_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
38
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
39
0
  long value;
40
  
41
0
  if(!sptr) {
42
0
    ASN__CTFAIL(app_key, td, sptr,
43
0
      "%s: value not given (%s:%d)",
44
0
      td->name, __FILE__, __LINE__);
45
0
    return -1;
46
0
  }
47
  
48
0
  value = *(const long *)sptr;
49
  
50
0
  if((value >= 0L && value <= 100L)) {
51
    /* Constraint check succeeded */
52
0
    return 0;
53
0
  } else {
54
0
    ASN__CTFAIL(app_key, td, sptr,
55
0
      "%s: constraint failed (%s:%d)",
56
0
      td->name, __FILE__, __LINE__);
57
0
    return -1;
58
0
  }
59
0
}
60
61
static int
62
memb_NGAP_dL_non_GBR_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
63
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
64
0
  long value;
65
  
66
0
  if(!sptr) {
67
0
    ASN__CTFAIL(app_key, td, sptr,
68
0
      "%s: value not given (%s:%d)",
69
0
      td->name, __FILE__, __LINE__);
70
0
    return -1;
71
0
  }
72
  
73
0
  value = *(const long *)sptr;
74
  
75
0
  if((value >= 0L && value <= 100L)) {
76
    /* Constraint check succeeded */
77
0
    return 0;
78
0
  } else {
79
0
    ASN__CTFAIL(app_key, td, sptr,
80
0
      "%s: constraint failed (%s:%d)",
81
0
      td->name, __FILE__, __LINE__);
82
0
    return -1;
83
0
  }
84
0
}
85
86
static int
87
memb_NGAP_uL_non_GBR_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
88
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
89
0
  long value;
90
  
91
0
  if(!sptr) {
92
0
    ASN__CTFAIL(app_key, td, sptr,
93
0
      "%s: value not given (%s:%d)",
94
0
      td->name, __FILE__, __LINE__);
95
0
    return -1;
96
0
  }
97
  
98
0
  value = *(const long *)sptr;
99
  
100
0
  if((value >= 0L && value <= 100L)) {
101
    /* Constraint check succeeded */
102
0
    return 0;
103
0
  } else {
104
0
    ASN__CTFAIL(app_key, td, sptr,
105
0
      "%s: constraint failed (%s:%d)",
106
0
      td->name, __FILE__, __LINE__);
107
0
    return -1;
108
0
  }
109
0
}
110
111
static int
112
memb_NGAP_dL_Total_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
113
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
114
0
  long value;
115
  
116
0
  if(!sptr) {
117
0
    ASN__CTFAIL(app_key, td, sptr,
118
0
      "%s: value not given (%s:%d)",
119
0
      td->name, __FILE__, __LINE__);
120
0
    return -1;
121
0
  }
122
  
123
0
  value = *(const long *)sptr;
124
  
125
0
  if((value >= 0L && value <= 100L)) {
126
    /* Constraint check succeeded */
127
0
    return 0;
128
0
  } else {
129
0
    ASN__CTFAIL(app_key, td, sptr,
130
0
      "%s: constraint failed (%s:%d)",
131
0
      td->name, __FILE__, __LINE__);
132
0
    return -1;
133
0
  }
134
0
}
135
136
static int
137
memb_NGAP_uL_Total_PRB_usage_for_MIMO_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
138
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
139
0
  long value;
140
  
141
0
  if(!sptr) {
142
0
    ASN__CTFAIL(app_key, td, sptr,
143
0
      "%s: value not given (%s:%d)",
144
0
      td->name, __FILE__, __LINE__);
145
0
    return -1;
146
0
  }
147
  
148
0
  value = *(const long *)sptr;
149
  
150
0
  if((value >= 0L && value <= 100L)) {
151
    /* Constraint check succeeded */
152
0
    return 0;
153
0
  } else {
154
0
    ASN__CTFAIL(app_key, td, sptr,
155
0
      "%s: constraint failed (%s:%d)",
156
0
      td->name, __FILE__, __LINE__);
157
0
    return -1;
158
0
  }
159
0
}
160
161
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
162
static asn_per_constraints_t asn_PER_memb_NGAP_dL_GBR_PRB_usage_for_MIMO_constr_2 CC_NOTUSED = {
163
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
164
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
165
  0, 0  /* No PER value map */
166
};
167
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
168
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
169
static asn_per_constraints_t asn_PER_memb_NGAP_uL_GBR_PRB_usage_for_MIMO_constr_3 CC_NOTUSED = {
170
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
171
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
172
  0, 0  /* No PER value map */
173
};
174
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
175
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
176
static asn_per_constraints_t asn_PER_memb_NGAP_dL_non_GBR_PRB_usage_for_MIMO_constr_4 CC_NOTUSED = {
177
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
178
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
179
  0, 0  /* No PER value map */
180
};
181
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
182
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
183
static asn_per_constraints_t asn_PER_memb_NGAP_uL_non_GBR_PRB_usage_for_MIMO_constr_5 CC_NOTUSED = {
184
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
185
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
186
  0, 0  /* No PER value map */
187
};
188
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
189
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
190
static asn_per_constraints_t asn_PER_memb_NGAP_dL_Total_PRB_usage_for_MIMO_constr_6 CC_NOTUSED = {
191
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
192
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
193
  0, 0  /* No PER value map */
194
};
195
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
196
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
197
static asn_per_constraints_t asn_PER_memb_NGAP_uL_Total_PRB_usage_for_MIMO_constr_7 CC_NOTUSED = {
198
  { APC_CONSTRAINED,   7,  7,  0,  100 }  /* (0..100) */,
199
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
200
  0, 0  /* No PER value map */
201
};
202
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
203
asn_TYPE_member_t asn_MBR_NGAP_NGRAN_RadioResourceStatus_1[] = {
204
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, dL_GBR_PRB_usage_for_MIMO),
205
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
206
    -1, /* IMPLICIT tag at current level */
207
    &asn_DEF_NativeInteger,
208
    0,
209
    {
210
#if !defined(ASN_DISABLE_OER_SUPPORT)
211
      0,
212
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
213
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
214
      &asn_PER_memb_NGAP_dL_GBR_PRB_usage_for_MIMO_constr_2,
215
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
216
#if !defined(ASN_DISABLE_JER_SUPPORT)
217
      0,
218
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
219
      memb_NGAP_dL_GBR_PRB_usage_for_MIMO_constraint_1
220
    },
221
    0, 0, /* No default value */
222
    "dL-GBR-PRB-usage-for-MIMO"
223
    },
224
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, uL_GBR_PRB_usage_for_MIMO),
225
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
226
    -1, /* IMPLICIT tag at current level */
227
    &asn_DEF_NativeInteger,
228
    0,
229
    {
230
#if !defined(ASN_DISABLE_OER_SUPPORT)
231
      0,
232
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
233
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
234
      &asn_PER_memb_NGAP_uL_GBR_PRB_usage_for_MIMO_constr_3,
235
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
236
#if !defined(ASN_DISABLE_JER_SUPPORT)
237
      0,
238
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
239
      memb_NGAP_uL_GBR_PRB_usage_for_MIMO_constraint_1
240
    },
241
    0, 0, /* No default value */
242
    "uL-GBR-PRB-usage-for-MIMO"
243
    },
244
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, dL_non_GBR_PRB_usage_for_MIMO),
245
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
246
    -1, /* IMPLICIT tag at current level */
247
    &asn_DEF_NativeInteger,
248
    0,
249
    {
250
#if !defined(ASN_DISABLE_OER_SUPPORT)
251
      0,
252
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
253
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
254
      &asn_PER_memb_NGAP_dL_non_GBR_PRB_usage_for_MIMO_constr_4,
255
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
256
#if !defined(ASN_DISABLE_JER_SUPPORT)
257
      0,
258
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
259
      memb_NGAP_dL_non_GBR_PRB_usage_for_MIMO_constraint_1
260
    },
261
    0, 0, /* No default value */
262
    "dL-non-GBR-PRB-usage-for-MIMO"
263
    },
264
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, uL_non_GBR_PRB_usage_for_MIMO),
265
    (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
266
    -1, /* IMPLICIT tag at current level */
267
    &asn_DEF_NativeInteger,
268
    0,
269
    {
270
#if !defined(ASN_DISABLE_OER_SUPPORT)
271
      0,
272
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
273
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
274
      &asn_PER_memb_NGAP_uL_non_GBR_PRB_usage_for_MIMO_constr_5,
275
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
276
#if !defined(ASN_DISABLE_JER_SUPPORT)
277
      0,
278
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
279
      memb_NGAP_uL_non_GBR_PRB_usage_for_MIMO_constraint_1
280
    },
281
    0, 0, /* No default value */
282
    "uL-non-GBR-PRB-usage-for-MIMO"
283
    },
284
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, dL_Total_PRB_usage_for_MIMO),
285
    (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
286
    -1, /* IMPLICIT tag at current level */
287
    &asn_DEF_NativeInteger,
288
    0,
289
    {
290
#if !defined(ASN_DISABLE_OER_SUPPORT)
291
      0,
292
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
293
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
294
      &asn_PER_memb_NGAP_dL_Total_PRB_usage_for_MIMO_constr_6,
295
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
296
#if !defined(ASN_DISABLE_JER_SUPPORT)
297
      0,
298
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
299
      memb_NGAP_dL_Total_PRB_usage_for_MIMO_constraint_1
300
    },
301
    0, 0, /* No default value */
302
    "dL-Total-PRB-usage-for-MIMO"
303
    },
304
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_NGRAN_RadioResourceStatus, uL_Total_PRB_usage_for_MIMO),
305
    (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
306
    -1, /* IMPLICIT tag at current level */
307
    &asn_DEF_NativeInteger,
308
    0,
309
    {
310
#if !defined(ASN_DISABLE_OER_SUPPORT)
311
      0,
312
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
313
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
314
      &asn_PER_memb_NGAP_uL_Total_PRB_usage_for_MIMO_constr_7,
315
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
316
#if !defined(ASN_DISABLE_JER_SUPPORT)
317
      0,
318
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
319
      memb_NGAP_uL_Total_PRB_usage_for_MIMO_constraint_1
320
    },
321
    0, 0, /* No default value */
322
    "uL-Total-PRB-usage-for-MIMO"
323
    },
324
  { ATF_POINTER, 1, offsetof(struct NGAP_NGRAN_RadioResourceStatus, iE_Extensions),
325
    (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
326
    -1, /* IMPLICIT tag at current level */
327
    &asn_DEF_NGAP_ProtocolExtensionContainer_14713P178,
328
    0,
329
    {
330
#if !defined(ASN_DISABLE_OER_SUPPORT)
331
      0,
332
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
333
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
334
      0,
335
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
336
#if !defined(ASN_DISABLE_JER_SUPPORT)
337
      0,
338
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
339
      0
340
    },
341
    0, 0, /* No default value */
342
    "iE-Extensions"
343
    },
344
};
345
static const int asn_MAP_NGAP_NGRAN_RadioResourceStatus_oms_1[] = { 6 };
346
static const ber_tlv_tag_t asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1[] = {
347
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
348
};
349
static const asn_TYPE_tag2member_t asn_MAP_NGAP_NGRAN_RadioResourceStatus_tag2el_1[] = {
350
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dL-GBR-PRB-usage-for-MIMO */
351
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-GBR-PRB-usage-for-MIMO */
352
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-non-GBR-PRB-usage-for-MIMO */
353
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uL-non-GBR-PRB-usage-for-MIMO */
354
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dL-Total-PRB-usage-for-MIMO */
355
    { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* uL-Total-PRB-usage-for-MIMO */
356
    { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* iE-Extensions */
357
};
358
asn_SEQUENCE_specifics_t asn_SPC_NGAP_NGRAN_RadioResourceStatus_specs_1 = {
359
  sizeof(struct NGAP_NGRAN_RadioResourceStatus),
360
  offsetof(struct NGAP_NGRAN_RadioResourceStatus, _asn_ctx),
361
  asn_MAP_NGAP_NGRAN_RadioResourceStatus_tag2el_1,
362
  7,  /* Count of tags in the map */
363
  asn_MAP_NGAP_NGRAN_RadioResourceStatus_oms_1, /* Optional members */
364
  1, 0, /* Root/Additions */
365
  7,  /* First extension addition */
366
};
367
asn_TYPE_descriptor_t asn_DEF_NGAP_NGRAN_RadioResourceStatus = {
368
  "NGRAN-RadioResourceStatus",
369
  "NGRAN-RadioResourceStatus",
370
  &asn_OP_SEQUENCE,
371
  asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1,
372
  sizeof(asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1)
373
    /sizeof(asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1[0]), /* 1 */
374
  asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1,  /* Same as above */
375
  sizeof(asn_DEF_NGAP_NGRAN_RadioResourceStatus_tags_1)
376
    /sizeof(asn_DEF_NGAP_NGRAN_RadioResourceStatus_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_NGRAN_RadioResourceStatus_1,
390
  7,  /* Elements count */
391
  &asn_SPC_NGAP_NGRAN_RadioResourceStatus_specs_1 /* Additional specs */
392
};
393