2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-CommonDataTypes"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "PrivateIE-ID.h"
\r
11 memb_local_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
16 ASN__CTFAIL(app_key, td, sptr,
\r
17 "%s: value not given (%s:%d)",
\r
18 td->name, __FILE__, __LINE__);
\r
22 value = *(const long *)sptr;
\r
24 if((value >= 0 && value <= 65535)) {
\r
25 /* Constraint check succeeded */
\r
28 ASN__CTFAIL(app_key, td, sptr,
\r
29 "%s: constraint failed (%s:%d)",
\r
30 td->name, __FILE__, __LINE__);
\r
35 static asn_per_constraints_t asn_PER_memb_local_constr_2 CC_NOTUSED = {
\r
36 { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
\r
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
38 0, 0 /* No PER value map */
\r
40 asn_per_constraints_t asn_PER_type_PrivateIE_ID_constr_1 CC_NOTUSED = {
\r
41 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
\r
42 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
43 0, 0 /* No PER value map */
\r
45 asn_TYPE_member_t asn_MBR_PrivateIE_ID_1[] = {
\r
46 { ATF_NOFLAGS, 0, offsetof(struct PrivateIE_ID, choice.local),
\r
47 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
48 -1, /* IMPLICIT tag at current level */
\r
49 &asn_DEF_NativeInteger,
\r
51 { 0, &asn_PER_memb_local_constr_2, memb_local_constraint_1 },
\r
52 0, 0, /* No default value */
\r
55 { ATF_NOFLAGS, 0, offsetof(struct PrivateIE_ID, choice.global),
\r
56 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
57 -1, /* IMPLICIT tag at current level */
\r
58 &asn_DEF_OBJECT_IDENTIFIER,
\r
61 0, 0, /* No default value */
\r
65 static const asn_TYPE_tag2member_t asn_MAP_PrivateIE_ID_tag2el_1[] = {
\r
66 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* local */
\r
67 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* global */
\r
69 asn_CHOICE_specifics_t asn_SPC_PrivateIE_ID_specs_1 = {
\r
70 sizeof(struct PrivateIE_ID),
\r
71 offsetof(struct PrivateIE_ID, _asn_ctx),
\r
72 offsetof(struct PrivateIE_ID, present),
\r
73 sizeof(((struct PrivateIE_ID *)0)->present),
\r
74 asn_MAP_PrivateIE_ID_tag2el_1,
\r
75 2, /* Count of tags in the map */
\r
77 -1 /* Extensions start */
\r
79 asn_TYPE_descriptor_t asn_DEF_PrivateIE_ID = {
\r
83 0, /* No effective tags (pointer) */
\r
84 0, /* No effective tags (count) */
\r
85 0, /* No tags (pointer) */
\r
86 0, /* No tags (count) */
\r
87 { 0, &asn_PER_type_PrivateIE_ID_constr_1, CHOICE_constraint },
\r
88 asn_MBR_PrivateIE_ID_1,
\r
89 2, /* Elements count */
\r
90 &asn_SPC_PrivateIE_ID_specs_1 /* Additional specs */
\r