/src/open5gs/lib/asn1c/s1ap/S1AP_SensorNameConfig.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_SensorNameConfig.h" |
9 | | |
10 | | #include "S1AP_ProtocolIE-SingleContainer.h" |
11 | | #ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS |
12 | | #if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) |
13 | | extern asn_TYPE_descriptor_t asn_DEF_S1AP_uncompensatedBarometricConfig __attribute__((weak, alias("asn_DEF_S1AP_uncompensatedBarometricConfig_2"))); |
14 | | #else |
15 | | static asn_TYPE_descriptor_t asn_DEF_S1AP_uncompensatedBarometricConfig_2; |
16 | | static asn_TYPE_descriptor_t asn_DEF_S1AP_uncompensatedBarometricConfig; |
17 | | __attribute__((constructor)) static void asn_DEF_S1AP_uncompensatedBarometricConfig_2_alias_init(void) { |
18 | | asn_DEF_S1AP_uncompensatedBarometricConfig = asn_DEF_S1AP_uncompensatedBarometricConfig_2; |
19 | | } |
20 | | #endif |
21 | | #endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ |
22 | | /* |
23 | | * This type is implemented using NativeEnumerated, |
24 | | * so here we adjust the DEF accordingly. |
25 | | */ |
26 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
27 | | static asn_per_constraints_t asn_PER_type_S1AP_uncompensatedBarometricConfig_constr_2 CC_NOTUSED = { |
28 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, |
29 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
30 | | 0, 0 /* No PER value map */ |
31 | | }; |
32 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
33 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
34 | | asn_per_constraints_t asn_PER_type_S1AP_SensorNameConfig_constr_1 CC_NOTUSED = { |
35 | | { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, |
36 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
37 | | 0, 0 /* No PER value map */ |
38 | | }; |
39 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
40 | | static const asn_INTEGER_enum_map_t asn_MAP_S1AP_uncompensatedBarometricConfig_value2enum_2[] = { |
41 | | { 0, 4, "true" } |
42 | | /* This list is extensible */ |
43 | | }; |
44 | | static int asn_validate_S1AP_uncompensatedBarometricConfig_2(const asn_TYPE_descriptor_t *td, |
45 | | const void *sptr, |
46 | | asn_app_constraint_failed_f *ctfailcb, |
47 | 0 | void* app_key) { |
48 | 0 | if(! sptr) { return -1; } |
49 | 0 | e_S1AP_SensorNameConfig__uncompensatedBarometricConfig value = *(e_S1AP_SensorNameConfig__uncompensatedBarometricConfig*)sptr; |
50 | 0 | switch(value) { |
51 | 0 | case S1AP_SensorNameConfig__uncompensatedBarometricConfig_true: |
52 | 0 | return 0; |
53 | 0 | } |
54 | 0 | return -1; |
55 | 0 | } |
56 | | static const unsigned int asn_MAP_S1AP_uncompensatedBarometricConfig_enum2value_2[] = { |
57 | | 0 /* true(0) */ |
58 | | /* This list is extensible */ |
59 | | }; |
60 | | static const asn_INTEGER_specifics_t asn_SPC_S1AP_uncompensatedBarometricConfig_specs_2 = { |
61 | | asn_MAP_S1AP_uncompensatedBarometricConfig_value2enum_2, /* "tag" => N; sorted by tag */ |
62 | | asn_MAP_S1AP_uncompensatedBarometricConfig_enum2value_2, /* N => "tag"; sorted by N */ |
63 | | 1, /* Number of elements in the maps */ |
64 | | 2, /* Extensions before this member */ |
65 | | 1, /* Strict enumeration */ |
66 | | 0, /* Native long size */ |
67 | | 0 |
68 | | }; |
69 | | static const ber_tlv_tag_t asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2[] = { |
70 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
71 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
72 | | }; |
73 | | static /* Use -fall-defs-global to expose */ |
74 | | asn_TYPE_descriptor_t asn_DEF_S1AP_uncompensatedBarometricConfig_2 = { |
75 | | "uncompensatedBarometricConfig", |
76 | | "uncompensatedBarometricConfig", |
77 | | &asn_OP_NativeEnumerated, |
78 | | asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2, |
79 | | sizeof(asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2) |
80 | | /sizeof(asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2[0]) - 1, /* 1 */ |
81 | | asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2, /* Same as above */ |
82 | | sizeof(asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2) |
83 | | /sizeof(asn_DEF_S1AP_uncompensatedBarometricConfig_tags_2[0]), /* 2 */ |
84 | | { |
85 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
86 | | 0, |
87 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
88 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
89 | | &asn_PER_type_S1AP_uncompensatedBarometricConfig_constr_2, |
90 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
91 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
92 | | 0, |
93 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
94 | | asn_validate_S1AP_uncompensatedBarometricConfig_2 |
95 | | }, |
96 | | 0, 0, /* Defined elsewhere */ |
97 | | &asn_SPC_S1AP_uncompensatedBarometricConfig_specs_2 /* Additional specs */ |
98 | | }; |
99 | | |
100 | | asn_TYPE_member_t asn_MBR_S1AP_SensorNameConfig_1[] = { |
101 | | { ATF_NOFLAGS, 0, offsetof(struct S1AP_SensorNameConfig, choice.uncompensatedBarometricConfig), |
102 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
103 | | -1, /* IMPLICIT tag at current level */ |
104 | | &asn_DEF_S1AP_uncompensatedBarometricConfig_2, |
105 | | 0, |
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 | | 0, |
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 | | 0 |
117 | | }, |
118 | | 0, 0, /* No default value */ |
119 | | "uncompensatedBarometricConfig" |
120 | | }, |
121 | | { ATF_POINTER, 0, offsetof(struct S1AP_SensorNameConfig, choice.choice_Extensions), |
122 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
123 | | -1, /* IMPLICIT tag at current level */ |
124 | | &asn_DEF_S1AP_ProtocolIE_SingleContainer_8338P25, |
125 | | 0, |
126 | | { |
127 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
128 | | 0, |
129 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
130 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
131 | | 0, |
132 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
133 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
134 | | 0, |
135 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
136 | | 0 |
137 | | }, |
138 | | 0, 0, /* No default value */ |
139 | | "choice-Extensions" |
140 | | }, |
141 | | }; |
142 | | static const asn_TYPE_tag2member_t asn_MAP_S1AP_SensorNameConfig_tag2el_1[] = { |
143 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uncompensatedBarometricConfig */ |
144 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* choice-Extensions */ |
145 | | }; |
146 | | asn_CHOICE_specifics_t asn_SPC_S1AP_SensorNameConfig_specs_1 = { |
147 | | sizeof(struct S1AP_SensorNameConfig), |
148 | | offsetof(struct S1AP_SensorNameConfig, _asn_ctx), |
149 | | offsetof(struct S1AP_SensorNameConfig, present), |
150 | | sizeof(((struct S1AP_SensorNameConfig *)0)->present), |
151 | | asn_MAP_S1AP_SensorNameConfig_tag2el_1, |
152 | | 2, /* Count of tags in the map */ |
153 | | 0, 0, |
154 | | -1 /* Extensions start */ |
155 | | }; |
156 | | asn_TYPE_descriptor_t asn_DEF_S1AP_SensorNameConfig = { |
157 | | "SensorNameConfig", |
158 | | "SensorNameConfig", |
159 | | &asn_OP_CHOICE, |
160 | | 0, /* No effective tags (pointer) */ |
161 | | 0, /* No effective tags (count) */ |
162 | | 0, /* No tags (pointer) */ |
163 | | 0, /* No tags (count) */ |
164 | | { |
165 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
166 | | 0, |
167 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
168 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
169 | | &asn_PER_type_S1AP_SensorNameConfig_constr_1, |
170 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
171 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
172 | | 0, |
173 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
174 | | CHOICE_constraint |
175 | | }, |
176 | | asn_MBR_S1AP_SensorNameConfig_1, |
177 | | 2, /* Elements count */ |
178 | | &asn_SPC_S1AP_SensorNameConfig_specs_1 /* Additional specs */ |
179 | | }; |
180 | | |