Coverage Report

Created: 2026-11-12 06:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_NR-Paging-Long-eDRX-Cycle-for-RRC-INACTIVE.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-Long-eDRX-Cycle-for-RRC-INACTIVE.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_Long_eDRX_Cycle_for_RRC_INACTIVE_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  9 }  /* (0..9,...) */,
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_Long_eDRX_Cycle_for_RRC_INACTIVE_value2enum_1[] = {
22
  { 0,  3,  "hf2" },
23
  { 1,  3,  "hf4" },
24
  { 2,  3,  "hf8" },
25
  { 3,  4,  "hf16" },
26
  { 4,  4,  "hf32" },
27
  { 5,  4,  "hf64" },
28
  { 6,  5,  "hf128" },
29
  { 7,  5,  "hf256" },
30
  { 8,  5,  "hf512" },
31
  { 9,  6,  "hf1024" }
32
  /* This list is extensible */
33
};
34
static int asn_validate_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_1(const asn_TYPE_descriptor_t *td,
35
                       const void *sptr,
36
                       asn_app_constraint_failed_f *ctfailcb,
37
0
                       void* app_key) {
38
0
    if(! sptr) { return -1; }
39
0
    e_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE value = *(e_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE*)sptr;
40
0
    switch(value) {
41
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf2:
42
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf4:
43
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf8:
44
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf16:
45
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf32:
46
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf64:
47
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf128:
48
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf256:
49
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf512:
50
0
    case NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_hf1024:
51
0
        return 0;
52
0
    }
53
0
    return -1;
54
0
}
55
static const unsigned int asn_MAP_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_enum2value_1[] = {
56
  9,  /* hf1024(9) */
57
  6,  /* hf128(6) */
58
  3,  /* hf16(3) */
59
  0,  /* hf2(0) */
60
  7,  /* hf256(7) */
61
  4,  /* hf32(4) */
62
  1,  /* hf4(1) */
63
  8,  /* hf512(8) */
64
  5,  /* hf64(5) */
65
  2 /* hf8(2) */
66
  /* This list is extensible */
67
};
68
const asn_INTEGER_specifics_t asn_SPC_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_specs_1 = {
69
  asn_MAP_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_value2enum_1, /* "tag" => N; sorted by tag */
70
  asn_MAP_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_enum2value_1, /* N => "tag"; sorted by N */
71
  10, /* Number of elements in the maps */
72
  11, /* Extensions before this member */
73
  1,  /* Strict enumeration */
74
  0,  /* Native long size */
75
  0
76
};
77
static const ber_tlv_tag_t asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1[] = {
78
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
79
};
80
asn_TYPE_descriptor_t asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE = {
81
  "NR-Paging-Long-eDRX-Cycle-for-RRC-INACTIVE",
82
  "NR-Paging-Long-eDRX-Cycle-for-RRC-INACTIVE",
83
  &asn_OP_NativeEnumerated,
84
  asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1,
85
  sizeof(asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1)
86
    /sizeof(asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1[0]), /* 1 */
87
  asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1, /* Same as above */
88
  sizeof(asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1)
89
    /sizeof(asn_DEF_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_tags_1[0]), /* 1 */
90
  {
91
#if !defined(ASN_DISABLE_OER_SUPPORT)
92
    0,
93
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
94
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
95
    &asn_PER_type_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_constr_1,
96
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
97
#if !defined(ASN_DISABLE_JER_SUPPORT)
98
    0,
99
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
100
    asn_validate_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_1
101
  },
102
  0, 0, /* Defined elsewhere */
103
  &asn_SPC_NGAP_NR_Paging_Long_eDRX_Cycle_for_RRC_INACTIVE_specs_1  /* Additional specs */
104
};
105