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_AerialUEReportingPeriodicity.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_AerialUEReportingPeriodicity.h"
9
10
/*
11
 * This type is implemented using NativeEnumerated,
12
 * so here we adjust the DEF accordingly.
13
 */
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t asn_PER_type_NGAP_AerialUEReportingPeriodicity_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  13 } /* (0..13,...) */,
17
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
18
  0, 0  /* No PER value map */
19
};
20
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_AerialUEReportingPeriodicity_value2enum_1[] = {
22
  { 0,  5,  "ms120" },
23
  { 1,  5,  "ms240" },
24
  { 2,  5,  "ms480" },
25
  { 3,  5,  "ms640" },
26
  { 4,  6,  "ms1024" },
27
  { 5,  6,  "ms2048" },
28
  { 6,  6,  "ms5120" },
29
  { 7,  7,  "ms10240" },
30
  { 8,  7,  "ms20480" },
31
  { 9,  7,  "ms40960" },
32
  { 10, 4,  "min1" },
33
  { 11, 4,  "min6" },
34
  { 12, 5,  "min12" },
35
  { 13, 5,  "min30" }
36
  /* This list is extensible */
37
};
38
static int asn_validate_NGAP_AerialUEReportingPeriodicity_1(const asn_TYPE_descriptor_t *td,
39
                       const void *sptr,
40
                       asn_app_constraint_failed_f *ctfailcb,
41
0
                       void* app_key) {
42
0
    if(! sptr) { return -1; }
43
0
    e_NGAP_AerialUEReportingPeriodicity value = *(e_NGAP_AerialUEReportingPeriodicity*)sptr;
44
0
    switch(value) {
45
0
    case NGAP_AerialUEReportingPeriodicity_ms120:
46
0
    case NGAP_AerialUEReportingPeriodicity_ms240:
47
0
    case NGAP_AerialUEReportingPeriodicity_ms480:
48
0
    case NGAP_AerialUEReportingPeriodicity_ms640:
49
0
    case NGAP_AerialUEReportingPeriodicity_ms1024:
50
0
    case NGAP_AerialUEReportingPeriodicity_ms2048:
51
0
    case NGAP_AerialUEReportingPeriodicity_ms5120:
52
0
    case NGAP_AerialUEReportingPeriodicity_ms10240:
53
0
    case NGAP_AerialUEReportingPeriodicity_ms20480:
54
0
    case NGAP_AerialUEReportingPeriodicity_ms40960:
55
0
    case NGAP_AerialUEReportingPeriodicity_min1:
56
0
    case NGAP_AerialUEReportingPeriodicity_min6:
57
0
    case NGAP_AerialUEReportingPeriodicity_min12:
58
0
    case NGAP_AerialUEReportingPeriodicity_min30:
59
0
        return 0;
60
0
    }
61
0
    return -1;
62
0
}
63
static const unsigned int asn_MAP_NGAP_AerialUEReportingPeriodicity_enum2value_1[] = {
64
  10, /* min1(10) */
65
  12, /* min12(12) */
66
  13, /* min30(13) */
67
  11, /* min6(11) */
68
  4,  /* ms1024(4) */
69
  7,  /* ms10240(7) */
70
  0,  /* ms120(0) */
71
  5,  /* ms2048(5) */
72
  8,  /* ms20480(8) */
73
  1,  /* ms240(1) */
74
  9,  /* ms40960(9) */
75
  2,  /* ms480(2) */
76
  6,  /* ms5120(6) */
77
  3 /* ms640(3) */
78
  /* This list is extensible */
79
};
80
const asn_INTEGER_specifics_t asn_SPC_NGAP_AerialUEReportingPeriodicity_specs_1 = {
81
  asn_MAP_NGAP_AerialUEReportingPeriodicity_value2enum_1, /* "tag" => N; sorted by tag */
82
  asn_MAP_NGAP_AerialUEReportingPeriodicity_enum2value_1, /* N => "tag"; sorted by N */
83
  14, /* Number of elements in the maps */
84
  15, /* Extensions before this member */
85
  1,  /* Strict enumeration */
86
  0,  /* Native long size */
87
  0
88
};
89
static const ber_tlv_tag_t asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1[] = {
90
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
91
};
92
asn_TYPE_descriptor_t asn_DEF_NGAP_AerialUEReportingPeriodicity = {
93
  "AerialUEReportingPeriodicity",
94
  "AerialUEReportingPeriodicity",
95
  &asn_OP_NativeEnumerated,
96
  asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1,
97
  sizeof(asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1)
98
    /sizeof(asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1[0]), /* 1 */
99
  asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1, /* Same as above */
100
  sizeof(asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1)
101
    /sizeof(asn_DEF_NGAP_AerialUEReportingPeriodicity_tags_1[0]), /* 1 */
102
  {
103
#if !defined(ASN_DISABLE_OER_SUPPORT)
104
    0,
105
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
106
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
107
    &asn_PER_type_NGAP_AerialUEReportingPeriodicity_constr_1,
108
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
109
#if !defined(ASN_DISABLE_JER_SUPPORT)
110
    0,
111
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
112
    asn_validate_NGAP_AerialUEReportingPeriodicity_1
113
  },
114
  0, 0, /* Defined elsewhere */
115
  &asn_SPC_NGAP_AerialUEReportingPeriodicity_specs_1  /* Additional specs */
116
};
117