Coverage Report

Created: 2026-09-28 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_NB-IoT-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 "S1AP-IEs"
4
 *  found in "../support/s1ap-r19.1.0/36413-j10.asn"
5
 *  `asn1c -pdu=all -fprefix=S1AP_ -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 "S1AP_NB-IoT-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_S1AP_NB_IoT_Paging_eDRX_Cycle_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_S1AP_NB_IoT_Paging_eDRX_Cycle_value2enum_1[] = {
22
  { 0,  3,  "hf2" },
23
  { 1,  3,  "hf4" },
24
  { 2,  3,  "hf6" },
25
  { 3,  3,  "hf8" },
26
  { 4,  4,  "hf10" },
27
  { 5,  4,  "hf12" },
28
  { 6,  4,  "hf14" },
29
  { 7,  4,  "hf16" },
30
  { 8,  4,  "hf32" },
31
  { 9,  4,  "hf64" },
32
  { 10, 5,  "hf128" },
33
  { 11, 5,  "hf256" },
34
  { 12, 5,  "hf512" },
35
  { 13, 6,  "hf1024" }
36
  /* This list is extensible */
37
};
38
static int asn_validate_S1AP_NB_IoT_Paging_eDRX_Cycle_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_S1AP_NB_IoT_Paging_eDRX_Cycle value = *(e_S1AP_NB_IoT_Paging_eDRX_Cycle*)sptr;
44
0
    switch(value) {
45
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf2:
46
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf4:
47
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf6:
48
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf8:
49
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf10:
50
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf12:
51
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf14:
52
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf16:
53
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf32:
54
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf64:
55
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf128:
56
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf256:
57
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf512:
58
0
    case S1AP_NB_IoT_Paging_eDRX_Cycle_hf1024:
59
0
        return 0;
60
0
    }
61
0
    return -1;
62
0
}
63
static const unsigned int asn_MAP_S1AP_NB_IoT_Paging_eDRX_Cycle_enum2value_1[] = {
64
  4,  /* hf10(4) */
65
  13, /* hf1024(13) */
66
  5,  /* hf12(5) */
67
  10, /* hf128(10) */
68
  6,  /* hf14(6) */
69
  7,  /* hf16(7) */
70
  0,  /* hf2(0) */
71
  11, /* hf256(11) */
72
  8,  /* hf32(8) */
73
  1,  /* hf4(1) */
74
  12, /* hf512(12) */
75
  2,  /* hf6(2) */
76
  9,  /* hf64(9) */
77
  3 /* hf8(3) */
78
  /* This list is extensible */
79
};
80
const asn_INTEGER_specifics_t asn_SPC_S1AP_NB_IoT_Paging_eDRX_Cycle_specs_1 = {
81
  asn_MAP_S1AP_NB_IoT_Paging_eDRX_Cycle_value2enum_1, /* "tag" => N; sorted by tag */
82
  asn_MAP_S1AP_NB_IoT_Paging_eDRX_Cycle_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_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1[] = {
90
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
91
};
92
asn_TYPE_descriptor_t asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle = {
93
  "NB-IoT-Paging-eDRX-Cycle",
94
  "NB-IoT-Paging-eDRX-Cycle",
95
  &asn_OP_NativeEnumerated,
96
  asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1,
97
  sizeof(asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1)
98
    /sizeof(asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1[0]), /* 1 */
99
  asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1, /* Same as above */
100
  sizeof(asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_tags_1)
101
    /sizeof(asn_DEF_S1AP_NB_IoT_Paging_eDRX_Cycle_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_S1AP_NB_IoT_Paging_eDRX_Cycle_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_S1AP_NB_IoT_Paging_eDRX_Cycle_1
113
  },
114
  0, 0, /* Defined elsewhere */
115
  &asn_SPC_S1AP_NB_IoT_Paging_eDRX_Cycle_specs_1  /* Additional specs */
116
};
117