/src/open5gs/lib/asn1c/ngap/NGAP_N6JitterInformation.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_N6JitterInformation.h" |
9 | | |
10 | | #include "NGAP_ProtocolExtensionContainer.h" |
11 | | static int |
12 | | memb_NGAP_n6JitterLowerBound_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
13 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
14 | 0 | long value; |
15 | | |
16 | 0 | if(!sptr) { |
17 | 0 | ASN__CTFAIL(app_key, td, sptr, |
18 | 0 | "%s: value not given (%s:%d)", |
19 | 0 | td->name, __FILE__, __LINE__); |
20 | 0 | return -1; |
21 | 0 | } |
22 | | |
23 | 0 | value = *(const long *)sptr; |
24 | | |
25 | 0 | if((value >= -127L && value <= 127L)) { |
26 | | /* Constraint check succeeded */ |
27 | 0 | return 0; |
28 | 0 | } else { |
29 | 0 | ASN__CTFAIL(app_key, td, sptr, |
30 | 0 | "%s: constraint failed (%s:%d)", |
31 | 0 | td->name, __FILE__, __LINE__); |
32 | 0 | return -1; |
33 | 0 | } |
34 | 0 | } |
35 | | |
36 | | static int |
37 | | memb_NGAP_n6JitterUpperBound_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
38 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
39 | 0 | long value; |
40 | | |
41 | 0 | if(!sptr) { |
42 | 0 | ASN__CTFAIL(app_key, td, sptr, |
43 | 0 | "%s: value not given (%s:%d)", |
44 | 0 | td->name, __FILE__, __LINE__); |
45 | 0 | return -1; |
46 | 0 | } |
47 | | |
48 | 0 | value = *(const long *)sptr; |
49 | | |
50 | 0 | if((value >= -127L && value <= 127L)) { |
51 | | /* Constraint check succeeded */ |
52 | 0 | return 0; |
53 | 0 | } else { |
54 | 0 | ASN__CTFAIL(app_key, td, sptr, |
55 | 0 | "%s: constraint failed (%s:%d)", |
56 | 0 | td->name, __FILE__, __LINE__); |
57 | 0 | return -1; |
58 | 0 | } |
59 | 0 | } |
60 | | |
61 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
62 | | static asn_per_constraints_t asn_PER_memb_NGAP_n6JitterLowerBound_constr_2 CC_NOTUSED = { |
63 | | { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */, |
64 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
65 | | 0, 0 /* No PER value map */ |
66 | | }; |
67 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
68 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
69 | | static asn_per_constraints_t asn_PER_memb_NGAP_n6JitterUpperBound_constr_3 CC_NOTUSED = { |
70 | | { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */, |
71 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
72 | | 0, 0 /* No PER value map */ |
73 | | }; |
74 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
75 | | asn_TYPE_member_t asn_MBR_NGAP_N6JitterInformation_1[] = { |
76 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_N6JitterInformation, n6JitterLowerBound), |
77 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
78 | | -1, /* IMPLICIT tag at current level */ |
79 | | &asn_DEF_NativeInteger, |
80 | | 0, |
81 | | { |
82 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
83 | | 0, |
84 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
85 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
86 | | &asn_PER_memb_NGAP_n6JitterLowerBound_constr_2, |
87 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
88 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
89 | | 0, |
90 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
91 | | memb_NGAP_n6JitterLowerBound_constraint_1 |
92 | | }, |
93 | | 0, 0, /* No default value */ |
94 | | "n6JitterLowerBound" |
95 | | }, |
96 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_N6JitterInformation, n6JitterUpperBound), |
97 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
98 | | -1, /* IMPLICIT tag at current level */ |
99 | | &asn_DEF_NativeInteger, |
100 | | 0, |
101 | | { |
102 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
103 | | 0, |
104 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
105 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
106 | | &asn_PER_memb_NGAP_n6JitterUpperBound_constr_3, |
107 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
108 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
109 | | 0, |
110 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
111 | | memb_NGAP_n6JitterUpperBound_constraint_1 |
112 | | }, |
113 | | 0, 0, /* No default value */ |
114 | | "n6JitterUpperBound" |
115 | | }, |
116 | | { ATF_POINTER, 1, offsetof(struct NGAP_N6JitterInformation, iE_Extensions), |
117 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
118 | | -1, /* IMPLICIT tag at current level */ |
119 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P239, |
120 | | 0, |
121 | | { |
122 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
123 | | 0, |
124 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
125 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
126 | | 0, |
127 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
128 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
129 | | 0, |
130 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
131 | | 0 |
132 | | }, |
133 | | 0, 0, /* No default value */ |
134 | | "iE-Extensions" |
135 | | }, |
136 | | }; |
137 | | static const int asn_MAP_NGAP_N6JitterInformation_oms_1[] = { 2 }; |
138 | | static const ber_tlv_tag_t asn_DEF_NGAP_N6JitterInformation_tags_1[] = { |
139 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
140 | | }; |
141 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_N6JitterInformation_tag2el_1[] = { |
142 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* n6JitterLowerBound */ |
143 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n6JitterUpperBound */ |
144 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
145 | | }; |
146 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_N6JitterInformation_specs_1 = { |
147 | | sizeof(struct NGAP_N6JitterInformation), |
148 | | offsetof(struct NGAP_N6JitterInformation, _asn_ctx), |
149 | | asn_MAP_NGAP_N6JitterInformation_tag2el_1, |
150 | | 3, /* Count of tags in the map */ |
151 | | asn_MAP_NGAP_N6JitterInformation_oms_1, /* Optional members */ |
152 | | 1, 0, /* Root/Additions */ |
153 | | 3, /* First extension addition */ |
154 | | }; |
155 | | asn_TYPE_descriptor_t asn_DEF_NGAP_N6JitterInformation = { |
156 | | "N6JitterInformation", |
157 | | "N6JitterInformation", |
158 | | &asn_OP_SEQUENCE, |
159 | | asn_DEF_NGAP_N6JitterInformation_tags_1, |
160 | | sizeof(asn_DEF_NGAP_N6JitterInformation_tags_1) |
161 | | /sizeof(asn_DEF_NGAP_N6JitterInformation_tags_1[0]), /* 1 */ |
162 | | asn_DEF_NGAP_N6JitterInformation_tags_1, /* Same as above */ |
163 | | sizeof(asn_DEF_NGAP_N6JitterInformation_tags_1) |
164 | | /sizeof(asn_DEF_NGAP_N6JitterInformation_tags_1[0]), /* 1 */ |
165 | | { |
166 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
167 | | 0, |
168 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
169 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
170 | | 0, |
171 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
172 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
173 | | 0, |
174 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
175 | | SEQUENCE_constraint |
176 | | }, |
177 | | asn_MBR_NGAP_N6JitterInformation_1, |
178 | | 3, /* Elements count */ |
179 | | &asn_SPC_NGAP_N6JitterInformation_specs_1 /* Additional specs */ |
180 | | }; |
181 | | |