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