/src/open5gs/lib/asn1c/ngap/NGAP_NB-IoT-Paging-TimeWindow.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_NB-IoT-Paging-TimeWindow.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_NB_IoT_Paging_TimeWindow_constr_1 CC_NOTUSED = { |
16 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 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_NGAP_NB_IoT_Paging_TimeWindow_value2enum_1[] = { |
22 | | { 0, 2, "s1" }, |
23 | | { 1, 2, "s2" }, |
24 | | { 2, 2, "s3" }, |
25 | | { 3, 2, "s4" }, |
26 | | { 4, 2, "s5" }, |
27 | | { 5, 2, "s6" }, |
28 | | { 6, 2, "s7" }, |
29 | | { 7, 2, "s8" }, |
30 | | { 8, 2, "s9" }, |
31 | | { 9, 3, "s10" }, |
32 | | { 10, 3, "s11" }, |
33 | | { 11, 3, "s12" }, |
34 | | { 12, 3, "s13" }, |
35 | | { 13, 3, "s14" }, |
36 | | { 14, 3, "s15" }, |
37 | | { 15, 3, "s16" } |
38 | | /* This list is extensible */ |
39 | | }; |
40 | | static int asn_validate_NGAP_NB_IoT_Paging_TimeWindow_1(const asn_TYPE_descriptor_t *td, |
41 | | const void *sptr, |
42 | | asn_app_constraint_failed_f *ctfailcb, |
43 | 0 | void* app_key) { |
44 | 0 | if(! sptr) { return -1; } |
45 | 0 | e_NGAP_NB_IoT_Paging_TimeWindow value = *(e_NGAP_NB_IoT_Paging_TimeWindow*)sptr; |
46 | 0 | switch(value) { |
47 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s1: |
48 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s2: |
49 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s3: |
50 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s4: |
51 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s5: |
52 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s6: |
53 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s7: |
54 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s8: |
55 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s9: |
56 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s10: |
57 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s11: |
58 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s12: |
59 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s13: |
60 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s14: |
61 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s15: |
62 | 0 | case NGAP_NB_IoT_Paging_TimeWindow_s16: |
63 | 0 | return 0; |
64 | 0 | } |
65 | 0 | return -1; |
66 | 0 | } |
67 | | static const unsigned int asn_MAP_NGAP_NB_IoT_Paging_TimeWindow_enum2value_1[] = { |
68 | | 0, /* s1(0) */ |
69 | | 9, /* s10(9) */ |
70 | | 10, /* s11(10) */ |
71 | | 11, /* s12(11) */ |
72 | | 12, /* s13(12) */ |
73 | | 13, /* s14(13) */ |
74 | | 14, /* s15(14) */ |
75 | | 15, /* s16(15) */ |
76 | | 1, /* s2(1) */ |
77 | | 2, /* s3(2) */ |
78 | | 3, /* s4(3) */ |
79 | | 4, /* s5(4) */ |
80 | | 5, /* s6(5) */ |
81 | | 6, /* s7(6) */ |
82 | | 7, /* s8(7) */ |
83 | | 8 /* s9(8) */ |
84 | | /* This list is extensible */ |
85 | | }; |
86 | | const asn_INTEGER_specifics_t asn_SPC_NGAP_NB_IoT_Paging_TimeWindow_specs_1 = { |
87 | | asn_MAP_NGAP_NB_IoT_Paging_TimeWindow_value2enum_1, /* "tag" => N; sorted by tag */ |
88 | | asn_MAP_NGAP_NB_IoT_Paging_TimeWindow_enum2value_1, /* N => "tag"; sorted by N */ |
89 | | 16, /* Number of elements in the maps */ |
90 | | 17, /* Extensions before this member */ |
91 | | 1, /* Strict enumeration */ |
92 | | 0, /* Native long size */ |
93 | | 0 |
94 | | }; |
95 | | static const ber_tlv_tag_t asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1[] = { |
96 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
97 | | }; |
98 | | asn_TYPE_descriptor_t asn_DEF_NGAP_NB_IoT_Paging_TimeWindow = { |
99 | | "NB-IoT-Paging-TimeWindow", |
100 | | "NB-IoT-Paging-TimeWindow", |
101 | | &asn_OP_NativeEnumerated, |
102 | | asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1, |
103 | | sizeof(asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1) |
104 | | /sizeof(asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1[0]), /* 1 */ |
105 | | asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1, /* Same as above */ |
106 | | sizeof(asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1) |
107 | | /sizeof(asn_DEF_NGAP_NB_IoT_Paging_TimeWindow_tags_1[0]), /* 1 */ |
108 | | { |
109 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
110 | | 0, |
111 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
112 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
113 | | &asn_PER_type_NGAP_NB_IoT_Paging_TimeWindow_constr_1, |
114 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
115 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
116 | | 0, |
117 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
118 | | asn_validate_NGAP_NB_IoT_Paging_TimeWindow_1 |
119 | | }, |
120 | | 0, 0, /* Defined elsewhere */ |
121 | | &asn_SPC_NGAP_NB_IoT_Paging_TimeWindow_specs_1 /* Additional specs */ |
122 | | }; |
123 | | |