/src/open5gs/lib/asn1c/ngap/NGAP_PDUSessionUsageReport.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_PDUSessionUsageReport.h" |
9 | | |
10 | | #include "NGAP_VolumeTimedReportList.h" |
11 | | #include "NGAP_ProtocolExtensionContainer.h" |
12 | | #ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS |
13 | | #if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) |
14 | | extern asn_TYPE_descriptor_t asn_DEF_NGAP_rATType __attribute__((weak, alias("asn_DEF_NGAP_rATType_2"))); |
15 | | #else |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_rATType_2; |
17 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_rATType; |
18 | | __attribute__((constructor)) static void asn_DEF_NGAP_rATType_2_alias_init(void) { |
19 | | asn_DEF_NGAP_rATType = asn_DEF_NGAP_rATType_2; |
20 | | } |
21 | | #endif |
22 | | #endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ |
23 | | /* |
24 | | * This type is implemented using NativeEnumerated, |
25 | | * so here we adjust the DEF accordingly. |
26 | | */ |
27 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
28 | | static asn_per_constraints_t asn_PER_type_NGAP_rATType_constr_2 CC_NOTUSED = { |
29 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
30 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
31 | | 0, 0 /* No PER value map */ |
32 | | }; |
33 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
34 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_rATType_value2enum_2[] = { |
35 | | { 0, 2, "nr" }, |
36 | | { 1, 5, "eutra" }, |
37 | | { 2, 13, "nr-unlicensed" }, |
38 | | { 3, 17, "e-utra-unlicensed" } |
39 | | /* This list is extensible */ |
40 | | }; |
41 | | static int asn_validate_NGAP_rATType_2(const asn_TYPE_descriptor_t *td, |
42 | | const void *sptr, |
43 | | asn_app_constraint_failed_f *ctfailcb, |
44 | 0 | void* app_key) { |
45 | 0 | if(! sptr) { return -1; } |
46 | 0 | e_NGAP_PDUSessionUsageReport__rATType value = *(e_NGAP_PDUSessionUsageReport__rATType*)sptr; |
47 | 0 | switch(value) { |
48 | 0 | case NGAP_PDUSessionUsageReport__rATType_nr: |
49 | 0 | case NGAP_PDUSessionUsageReport__rATType_eutra: |
50 | 0 | case NGAP_PDUSessionUsageReport__rATType_nr_unlicensed: |
51 | 0 | case NGAP_PDUSessionUsageReport__rATType_e_utra_unlicensed: |
52 | 0 | return 0; |
53 | 0 | } |
54 | 0 | return -1; |
55 | 0 | } |
56 | | static const unsigned int asn_MAP_NGAP_rATType_enum2value_2[] = { |
57 | | 3, /* e-utra-unlicensed(3) */ |
58 | | 1, /* eutra(1) */ |
59 | | 0, /* nr(0) */ |
60 | | 2 /* nr-unlicensed(2) */ |
61 | | /* This list is extensible */ |
62 | | }; |
63 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_rATType_specs_2 = { |
64 | | asn_MAP_NGAP_rATType_value2enum_2, /* "tag" => N; sorted by tag */ |
65 | | asn_MAP_NGAP_rATType_enum2value_2, /* N => "tag"; sorted by N */ |
66 | | 4, /* Number of elements in the maps */ |
67 | | 3, /* Extensions before this member */ |
68 | | 1, /* Strict enumeration */ |
69 | | 0, /* Native long size */ |
70 | | 0 |
71 | | }; |
72 | | static const ber_tlv_tag_t asn_DEF_NGAP_rATType_tags_2[] = { |
73 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
74 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
75 | | }; |
76 | | static /* Use -fall-defs-global to expose */ |
77 | | asn_TYPE_descriptor_t asn_DEF_NGAP_rATType_2 = { |
78 | | "rATType", |
79 | | "rATType", |
80 | | &asn_OP_NativeEnumerated, |
81 | | asn_DEF_NGAP_rATType_tags_2, |
82 | | sizeof(asn_DEF_NGAP_rATType_tags_2) |
83 | | /sizeof(asn_DEF_NGAP_rATType_tags_2[0]) - 1, /* 1 */ |
84 | | asn_DEF_NGAP_rATType_tags_2, /* Same as above */ |
85 | | sizeof(asn_DEF_NGAP_rATType_tags_2) |
86 | | /sizeof(asn_DEF_NGAP_rATType_tags_2[0]), /* 2 */ |
87 | | { |
88 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
89 | | 0, |
90 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
91 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
92 | | &asn_PER_type_NGAP_rATType_constr_2, |
93 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
94 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
95 | | 0, |
96 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
97 | | asn_validate_NGAP_rATType_2 |
98 | | }, |
99 | | 0, 0, /* Defined elsewhere */ |
100 | | &asn_SPC_NGAP_rATType_specs_2 /* Additional specs */ |
101 | | }; |
102 | | |
103 | | asn_TYPE_member_t asn_MBR_NGAP_PDUSessionUsageReport_1[] = { |
104 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_PDUSessionUsageReport, rATType), |
105 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
106 | | -1, /* IMPLICIT tag at current level */ |
107 | | &asn_DEF_NGAP_rATType_2, |
108 | | 0, |
109 | | { |
110 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
111 | | 0, |
112 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
113 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
114 | | 0, |
115 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
116 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
117 | | 0, |
118 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
119 | | 0 |
120 | | }, |
121 | | 0, 0, /* No default value */ |
122 | | "rATType" |
123 | | }, |
124 | | { ATF_POINTER, 0, offsetof(struct NGAP_PDUSessionUsageReport, pDUSessionTimedReportList), |
125 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
126 | | -1, /* IMPLICIT tag at current level */ |
127 | | &asn_DEF_NGAP_VolumeTimedReportList, |
128 | | 0, |
129 | | { |
130 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
131 | | 0, |
132 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
133 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
134 | | 0, |
135 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
136 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
137 | | 0, |
138 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
139 | | 0 |
140 | | }, |
141 | | 0, 0, /* No default value */ |
142 | | "pDUSessionTimedReportList" |
143 | | }, |
144 | | { ATF_POINTER, 1, offsetof(struct NGAP_PDUSessionUsageReport, iE_Extensions), |
145 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
146 | | -1, /* IMPLICIT tag at current level */ |
147 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P322, |
148 | | 0, |
149 | | { |
150 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
151 | | 0, |
152 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
153 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
154 | | 0, |
155 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
156 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
157 | | 0, |
158 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
159 | | 0 |
160 | | }, |
161 | | 0, 0, /* No default value */ |
162 | | "iE-Extensions" |
163 | | }, |
164 | | }; |
165 | | static const int asn_MAP_NGAP_PDUSessionUsageReport_oms_1[] = { 2 }; |
166 | | static const ber_tlv_tag_t asn_DEF_NGAP_PDUSessionUsageReport_tags_1[] = { |
167 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
168 | | }; |
169 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_PDUSessionUsageReport_tag2el_1[] = { |
170 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rATType */ |
171 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pDUSessionTimedReportList */ |
172 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
173 | | }; |
174 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_PDUSessionUsageReport_specs_1 = { |
175 | | sizeof(struct NGAP_PDUSessionUsageReport), |
176 | | offsetof(struct NGAP_PDUSessionUsageReport, _asn_ctx), |
177 | | asn_MAP_NGAP_PDUSessionUsageReport_tag2el_1, |
178 | | 3, /* Count of tags in the map */ |
179 | | asn_MAP_NGAP_PDUSessionUsageReport_oms_1, /* Optional members */ |
180 | | 1, 0, /* Root/Additions */ |
181 | | 3, /* First extension addition */ |
182 | | }; |
183 | | asn_TYPE_descriptor_t asn_DEF_NGAP_PDUSessionUsageReport = { |
184 | | "PDUSessionUsageReport", |
185 | | "PDUSessionUsageReport", |
186 | | &asn_OP_SEQUENCE, |
187 | | asn_DEF_NGAP_PDUSessionUsageReport_tags_1, |
188 | | sizeof(asn_DEF_NGAP_PDUSessionUsageReport_tags_1) |
189 | | /sizeof(asn_DEF_NGAP_PDUSessionUsageReport_tags_1[0]), /* 1 */ |
190 | | asn_DEF_NGAP_PDUSessionUsageReport_tags_1, /* Same as above */ |
191 | | sizeof(asn_DEF_NGAP_PDUSessionUsageReport_tags_1) |
192 | | /sizeof(asn_DEF_NGAP_PDUSessionUsageReport_tags_1[0]), /* 1 */ |
193 | | { |
194 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
195 | | 0, |
196 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
197 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
198 | | 0, |
199 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
200 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
201 | | 0, |
202 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
203 | | SEQUENCE_constraint |
204 | | }, |
205 | | asn_MBR_NGAP_PDUSessionUsageReport_1, |
206 | | 3, /* Elements count */ |
207 | | &asn_SPC_NGAP_PDUSessionUsageReport_specs_1 /* Additional specs */ |
208 | | }; |
209 | | |