/src/open5gs/lib/asn1c/ngap/NGAP_EventTrigger.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_EventTrigger.h" |
9 | | |
10 | | #include "NGAP_EventL1LoggedMDTConfig.h" |
11 | | #include "NGAP_ProtocolIE-SingleContainer.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_outOfCoverage __attribute__((weak, alias("asn_DEF_NGAP_outOfCoverage_2"))); |
15 | | #else |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_outOfCoverage_2; |
17 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_outOfCoverage; |
18 | | __attribute__((constructor)) static void asn_DEF_NGAP_outOfCoverage_2_alias_init(void) { |
19 | | asn_DEF_NGAP_outOfCoverage = asn_DEF_NGAP_outOfCoverage_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_outOfCoverage_constr_2 CC_NOTUSED = { |
29 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, |
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 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
35 | | asn_per_constraints_t asn_PER_type_NGAP_EventTrigger_constr_1 CC_NOTUSED = { |
36 | | { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, |
37 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
38 | | 0, 0 /* No PER value map */ |
39 | | }; |
40 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
41 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_outOfCoverage_value2enum_2[] = { |
42 | | { 0, 4, "true" } |
43 | | /* This list is extensible */ |
44 | | }; |
45 | | static int asn_validate_NGAP_outOfCoverage_2(const asn_TYPE_descriptor_t *td, |
46 | | const void *sptr, |
47 | | asn_app_constraint_failed_f *ctfailcb, |
48 | 0 | void* app_key) { |
49 | 0 | if(! sptr) { return -1; } |
50 | 0 | e_NGAP_EventTrigger__outOfCoverage value = *(e_NGAP_EventTrigger__outOfCoverage*)sptr; |
51 | 0 | switch(value) { |
52 | 0 | case NGAP_EventTrigger__outOfCoverage_true: |
53 | 0 | return 0; |
54 | 0 | } |
55 | 0 | return -1; |
56 | 0 | } |
57 | | static const unsigned int asn_MAP_NGAP_outOfCoverage_enum2value_2[] = { |
58 | | 0 /* true(0) */ |
59 | | /* This list is extensible */ |
60 | | }; |
61 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_outOfCoverage_specs_2 = { |
62 | | asn_MAP_NGAP_outOfCoverage_value2enum_2, /* "tag" => N; sorted by tag */ |
63 | | asn_MAP_NGAP_outOfCoverage_enum2value_2, /* N => "tag"; sorted by N */ |
64 | | 1, /* Number of elements in the maps */ |
65 | | 2, /* Extensions before this member */ |
66 | | 1, /* Strict enumeration */ |
67 | | 0, /* Native long size */ |
68 | | 0 |
69 | | }; |
70 | | static const ber_tlv_tag_t asn_DEF_NGAP_outOfCoverage_tags_2[] = { |
71 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
72 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
73 | | }; |
74 | | static /* Use -fall-defs-global to expose */ |
75 | | asn_TYPE_descriptor_t asn_DEF_NGAP_outOfCoverage_2 = { |
76 | | "outOfCoverage", |
77 | | "outOfCoverage", |
78 | | &asn_OP_NativeEnumerated, |
79 | | asn_DEF_NGAP_outOfCoverage_tags_2, |
80 | | sizeof(asn_DEF_NGAP_outOfCoverage_tags_2) |
81 | | /sizeof(asn_DEF_NGAP_outOfCoverage_tags_2[0]) - 1, /* 1 */ |
82 | | asn_DEF_NGAP_outOfCoverage_tags_2, /* Same as above */ |
83 | | sizeof(asn_DEF_NGAP_outOfCoverage_tags_2) |
84 | | /sizeof(asn_DEF_NGAP_outOfCoverage_tags_2[0]), /* 2 */ |
85 | | { |
86 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
87 | | 0, |
88 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
89 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
90 | | &asn_PER_type_NGAP_outOfCoverage_constr_2, |
91 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
92 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
93 | | 0, |
94 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
95 | | asn_validate_NGAP_outOfCoverage_2 |
96 | | }, |
97 | | 0, 0, /* Defined elsewhere */ |
98 | | &asn_SPC_NGAP_outOfCoverage_specs_2 /* Additional specs */ |
99 | | }; |
100 | | |
101 | | asn_TYPE_member_t asn_MBR_NGAP_EventTrigger_1[] = { |
102 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_EventTrigger, choice.outOfCoverage), |
103 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
104 | | -1, /* IMPLICIT tag at current level */ |
105 | | &asn_DEF_NGAP_outOfCoverage_2, |
106 | | 0, |
107 | | { |
108 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
109 | | 0, |
110 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
111 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
112 | | 0, |
113 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
114 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
115 | | 0, |
116 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
117 | | 0 |
118 | | }, |
119 | | 0, 0, /* No default value */ |
120 | | "outOfCoverage" |
121 | | }, |
122 | | { ATF_POINTER, 0, offsetof(struct NGAP_EventTrigger, choice.eventL1LoggedMDTConfig), |
123 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
124 | | -1, /* IMPLICIT tag at current level */ |
125 | | &asn_DEF_NGAP_EventL1LoggedMDTConfig, |
126 | | 0, |
127 | | { |
128 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
129 | | 0, |
130 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
131 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
132 | | 0, |
133 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
134 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
135 | | 0, |
136 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
137 | | 0 |
138 | | }, |
139 | | 0, 0, /* No default value */ |
140 | | "eventL1LoggedMDTConfig" |
141 | | }, |
142 | | { ATF_POINTER, 0, offsetof(struct NGAP_EventTrigger, choice.choice_Extensions), |
143 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
144 | | -1, /* IMPLICIT tag at current level */ |
145 | | &asn_DEF_NGAP_ProtocolIE_SingleContainer_14665P20, |
146 | | 0, |
147 | | { |
148 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
149 | | 0, |
150 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
151 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
152 | | 0, |
153 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
154 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
155 | | 0, |
156 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
157 | | 0 |
158 | | }, |
159 | | 0, 0, /* No default value */ |
160 | | "choice-Extensions" |
161 | | }, |
162 | | }; |
163 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_EventTrigger_tag2el_1[] = { |
164 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* outOfCoverage */ |
165 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventL1LoggedMDTConfig */ |
166 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* choice-Extensions */ |
167 | | }; |
168 | | asn_CHOICE_specifics_t asn_SPC_NGAP_EventTrigger_specs_1 = { |
169 | | sizeof(struct NGAP_EventTrigger), |
170 | | offsetof(struct NGAP_EventTrigger, _asn_ctx), |
171 | | offsetof(struct NGAP_EventTrigger, present), |
172 | | sizeof(((struct NGAP_EventTrigger *)0)->present), |
173 | | asn_MAP_NGAP_EventTrigger_tag2el_1, |
174 | | 3, /* Count of tags in the map */ |
175 | | 0, 0, |
176 | | -1 /* Extensions start */ |
177 | | }; |
178 | | asn_TYPE_descriptor_t asn_DEF_NGAP_EventTrigger = { |
179 | | "EventTrigger", |
180 | | "EventTrigger", |
181 | | &asn_OP_CHOICE, |
182 | | 0, /* No effective tags (pointer) */ |
183 | | 0, /* No effective tags (count) */ |
184 | | 0, /* No tags (pointer) */ |
185 | | 0, /* No tags (count) */ |
186 | | { |
187 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
188 | | 0, |
189 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
190 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
191 | | &asn_PER_type_NGAP_EventTrigger_constr_1, |
192 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
193 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
194 | | 0, |
195 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
196 | | CHOICE_constraint |
197 | | }, |
198 | | asn_MBR_NGAP_EventTrigger_1, |
199 | | 3, /* Elements count */ |
200 | | &asn_SPC_NGAP_EventTrigger_specs_1 /* Additional specs */ |
201 | | }; |
202 | | |