Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_NR-Paging-eDRX-Cycle.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_NR-Paging-eDRX-Cycle.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_NR_Paging_eDRX_Cycle_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  12 } /* (0..12,...) */,
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_NR_Paging_eDRX_Cycle_value2enum_1[] = {
22
  { 0,  9,  "hfquarter" },
23
  { 1,  6,  "hfhalf" },
24
  { 2,  3,  "hf1" },
25
  { 3,  3,  "hf2" },
26
  { 4,  3,  "hf4" },
27
  { 5,  3,  "hf8" },
28
  { 6,  4,  "hf16" },
29
  { 7,  4,  "hf32" },
30
  { 8,  4,  "hf64" },
31
  { 9,  5,  "hf128" },
32
  { 10, 5,  "hf256" },
33
  { 11, 5,  "hf512" },
34
  { 12, 6,  "hf1024" }
35
  /* This list is extensible */
36
};
37
static int asn_validate_NGAP_NR_Paging_eDRX_Cycle_1(const asn_TYPE_descriptor_t *td,
38
                       const void *sptr,
39
                       asn_app_constraint_failed_f *ctfailcb,
40
0
                       void* app_key) {
41
0
    if(! sptr) { return -1; }
42
0
    e_NGAP_NR_Paging_eDRX_Cycle value = *(e_NGAP_NR_Paging_eDRX_Cycle*)sptr;
43
0
    switch(value) {
44
0
    case NGAP_NR_Paging_eDRX_Cycle_hfquarter:
45
0
    case NGAP_NR_Paging_eDRX_Cycle_hfhalf:
46
0
    case NGAP_NR_Paging_eDRX_Cycle_hf1:
47
0
    case NGAP_NR_Paging_eDRX_Cycle_hf2:
48
0
    case NGAP_NR_Paging_eDRX_Cycle_hf4:
49
0
    case NGAP_NR_Paging_eDRX_Cycle_hf8:
50
0
    case NGAP_NR_Paging_eDRX_Cycle_hf16:
51
0
    case NGAP_NR_Paging_eDRX_Cycle_hf32:
52
0
    case NGAP_NR_Paging_eDRX_Cycle_hf64:
53
0
    case NGAP_NR_Paging_eDRX_Cycle_hf128:
54
0
    case NGAP_NR_Paging_eDRX_Cycle_hf256:
55
0
    case NGAP_NR_Paging_eDRX_Cycle_hf512:
56
0
    case NGAP_NR_Paging_eDRX_Cycle_hf1024:
57
0
        return 0;
58
0
    }
59
0
    return -1;
60
0
}
61
static const unsigned int asn_MAP_NGAP_NR_Paging_eDRX_Cycle_enum2value_1[] = {
62
  2,  /* hf1(2) */
63
  12, /* hf1024(12) */
64
  9,  /* hf128(9) */
65
  6,  /* hf16(6) */
66
  3,  /* hf2(3) */
67
  10, /* hf256(10) */
68
  7,  /* hf32(7) */
69
  4,  /* hf4(4) */
70
  11, /* hf512(11) */
71
  8,  /* hf64(8) */
72
  5,  /* hf8(5) */
73
  1,  /* hfhalf(1) */
74
  0 /* hfquarter(0) */
75
  /* This list is extensible */
76
};
77
const asn_INTEGER_specifics_t asn_SPC_NGAP_NR_Paging_eDRX_Cycle_specs_1 = {
78
  asn_MAP_NGAP_NR_Paging_eDRX_Cycle_value2enum_1, /* "tag" => N; sorted by tag */
79
  asn_MAP_NGAP_NR_Paging_eDRX_Cycle_enum2value_1, /* N => "tag"; sorted by N */
80
  13, /* Number of elements in the maps */
81
  14, /* Extensions before this member */
82
  1,  /* Strict enumeration */
83
  0,  /* Native long size */
84
  0
85
};
86
static const ber_tlv_tag_t asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1[] = {
87
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
88
};
89
asn_TYPE_descriptor_t asn_DEF_NGAP_NR_Paging_eDRX_Cycle = {
90
  "NR-Paging-eDRX-Cycle",
91
  "NR-Paging-eDRX-Cycle",
92
  &asn_OP_NativeEnumerated,
93
  asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1,
94
  sizeof(asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1)
95
    /sizeof(asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1[0]), /* 1 */
96
  asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1, /* Same as above */
97
  sizeof(asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1)
98
    /sizeof(asn_DEF_NGAP_NR_Paging_eDRX_Cycle_tags_1[0]), /* 1 */
99
  {
100
#if !defined(ASN_DISABLE_OER_SUPPORT)
101
    0,
102
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
103
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
104
    &asn_PER_type_NGAP_NR_Paging_eDRX_Cycle_constr_1,
105
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
106
#if !defined(ASN_DISABLE_JER_SUPPORT)
107
    0,
108
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
109
    asn_validate_NGAP_NR_Paging_eDRX_Cycle_1
110
  },
111
  0, 0, /* Defined elsewhere */
112
  &asn_SPC_NGAP_NR_Paging_eDRX_Cycle_specs_1  /* Additional specs */
113
};
114