Coverage Report

Created: 2026-07-14 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_TimeToTrigger.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_TimeToTrigger.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_TimeToTrigger_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED,   4,  4,  0,  15 } /* (0..15) */,
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_TimeToTrigger_value2enum_1[] = {
22
  { 0,  3,  "ms0" },
23
  { 1,  4,  "ms40" },
24
  { 2,  4,  "ms64" },
25
  { 3,  4,  "ms80" },
26
  { 4,  5,  "ms100" },
27
  { 5,  5,  "ms128" },
28
  { 6,  5,  "ms160" },
29
  { 7,  5,  "ms256" },
30
  { 8,  5,  "ms320" },
31
  { 9,  5,  "ms480" },
32
  { 10, 5,  "ms512" },
33
  { 11, 5,  "ms640" },
34
  { 12, 6,  "ms1024" },
35
  { 13, 6,  "ms1280" },
36
  { 14, 6,  "ms2560" },
37
  { 15, 6,  "ms5120" }
38
};
39
static int asn_validate_S1AP_TimeToTrigger_1(const asn_TYPE_descriptor_t *td,
40
                       const void *sptr,
41
                       asn_app_constraint_failed_f *ctfailcb,
42
0
                       void* app_key) {
43
0
    if(! sptr) { return -1; }
44
0
    e_S1AP_TimeToTrigger value = *(e_S1AP_TimeToTrigger*)sptr;
45
0
    switch(value) {
46
0
    case S1AP_TimeToTrigger_ms0:
47
0
    case S1AP_TimeToTrigger_ms40:
48
0
    case S1AP_TimeToTrigger_ms64:
49
0
    case S1AP_TimeToTrigger_ms80:
50
0
    case S1AP_TimeToTrigger_ms100:
51
0
    case S1AP_TimeToTrigger_ms128:
52
0
    case S1AP_TimeToTrigger_ms160:
53
0
    case S1AP_TimeToTrigger_ms256:
54
0
    case S1AP_TimeToTrigger_ms320:
55
0
    case S1AP_TimeToTrigger_ms480:
56
0
    case S1AP_TimeToTrigger_ms512:
57
0
    case S1AP_TimeToTrigger_ms640:
58
0
    case S1AP_TimeToTrigger_ms1024:
59
0
    case S1AP_TimeToTrigger_ms1280:
60
0
    case S1AP_TimeToTrigger_ms2560:
61
0
    case S1AP_TimeToTrigger_ms5120:
62
0
        return 0;
63
0
    }
64
0
    return -1;
65
0
}
66
static const unsigned int asn_MAP_S1AP_TimeToTrigger_enum2value_1[] = {
67
  0,  /* ms0(0) */
68
  4,  /* ms100(4) */
69
  12, /* ms1024(12) */
70
  5,  /* ms128(5) */
71
  13, /* ms1280(13) */
72
  6,  /* ms160(6) */
73
  7,  /* ms256(7) */
74
  14, /* ms2560(14) */
75
  8,  /* ms320(8) */
76
  1,  /* ms40(1) */
77
  9,  /* ms480(9) */
78
  10, /* ms512(10) */
79
  15, /* ms5120(15) */
80
  2,  /* ms64(2) */
81
  11, /* ms640(11) */
82
  3 /* ms80(3) */
83
};
84
const asn_INTEGER_specifics_t asn_SPC_S1AP_TimeToTrigger_specs_1 = {
85
  asn_MAP_S1AP_TimeToTrigger_value2enum_1,  /* "tag" => N; sorted by tag */
86
  asn_MAP_S1AP_TimeToTrigger_enum2value_1,  /* N => "tag"; sorted by N */
87
  16, /* Number of elements in the maps */
88
  0,  /* Enumeration is not extensible */
89
  1,  /* Strict enumeration */
90
  0,  /* Native long size */
91
  0
92
};
93
static const ber_tlv_tag_t asn_DEF_S1AP_TimeToTrigger_tags_1[] = {
94
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
95
};
96
asn_TYPE_descriptor_t asn_DEF_S1AP_TimeToTrigger = {
97
  "TimeToTrigger",
98
  "TimeToTrigger",
99
  &asn_OP_NativeEnumerated,
100
  asn_DEF_S1AP_TimeToTrigger_tags_1,
101
  sizeof(asn_DEF_S1AP_TimeToTrigger_tags_1)
102
    /sizeof(asn_DEF_S1AP_TimeToTrigger_tags_1[0]), /* 1 */
103
  asn_DEF_S1AP_TimeToTrigger_tags_1,  /* Same as above */
104
  sizeof(asn_DEF_S1AP_TimeToTrigger_tags_1)
105
    /sizeof(asn_DEF_S1AP_TimeToTrigger_tags_1[0]), /* 1 */
106
  {
107
#if !defined(ASN_DISABLE_OER_SUPPORT)
108
    0,
109
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
110
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
111
    &asn_PER_type_S1AP_TimeToTrigger_constr_1,
112
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
113
#if !defined(ASN_DISABLE_JER_SUPPORT)
114
    0,
115
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
116
    asn_validate_S1AP_TimeToTrigger_1
117
  },
118
  0, 0, /* Defined elsewhere */
119
  &asn_SPC_S1AP_TimeToTrigger_specs_1 /* Additional specs */
120
};
121