2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\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 "EnhancedRNTP.h"
\r
10 #include "EnhancedRNTPStartTime.h"
\r
11 #include "ProtocolExtensionContainer.h"
\r
13 memb_enhancedRNTPBitmap_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
15 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
19 ASN__CTFAIL(app_key, td, sptr,
\r
20 "%s: value not given (%s:%d)",
\r
21 td->name, __FILE__, __LINE__);
\r
27 size = 8 * st->size - (st->bits_unused & 0x07);
\r
32 if((size >= 12 && size <= 8800)) {
\r
33 /* Constraint check succeeded */
\r
36 ASN__CTFAIL(app_key, td, sptr,
\r
37 "%s: constraint failed (%s:%d)",
\r
38 td->name, __FILE__, __LINE__);
\r
43 static asn_per_constraints_t asn_PER_memb_enhancedRNTPBitmap_constr_2 CC_NOTUSED = {
\r
44 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
45 { APC_CONSTRAINED | APC_EXTENSIBLE, 14, 14, 12, 8800 } /* (SIZE(12..8800,...)) */,
\r
46 0, 0 /* No PER value map */
\r
48 static asn_TYPE_member_t asn_MBR_EnhancedRNTP_1[] = {
\r
49 { ATF_NOFLAGS, 0, offsetof(struct EnhancedRNTP, enhancedRNTPBitmap),
\r
50 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
51 -1, /* IMPLICIT tag at current level */
\r
52 &asn_DEF_BIT_STRING,
\r
54 { 0, &asn_PER_memb_enhancedRNTPBitmap_constr_2, memb_enhancedRNTPBitmap_constraint_1 },
\r
55 0, 0, /* No default value */
\r
56 "enhancedRNTPBitmap"
\r
58 { ATF_NOFLAGS, 0, offsetof(struct EnhancedRNTP, rNTP_High_Power_Threshold),
\r
59 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
60 -1, /* IMPLICIT tag at current level */
\r
61 &asn_DEF_RNTP_Threshold,
\r
64 0, 0, /* No default value */
\r
65 "rNTP-High-Power-Threshold"
\r
67 { ATF_POINTER, 2, offsetof(struct EnhancedRNTP, enhancedRNTPStartTime),
\r
68 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
69 -1, /* IMPLICIT tag at current level */
\r
70 &asn_DEF_EnhancedRNTPStartTime,
\r
73 0, 0, /* No default value */
\r
74 "enhancedRNTPStartTime"
\r
76 { ATF_POINTER, 1, offsetof(struct EnhancedRNTP, iE_Extensions),
\r
77 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
78 -1, /* IMPLICIT tag at current level */
\r
79 &asn_DEF_ProtocolExtensionContainer_8231P135,
\r
82 0, 0, /* No default value */
\r
86 static const int asn_MAP_EnhancedRNTP_oms_1[] = { 2, 3 };
\r
87 static const ber_tlv_tag_t asn_DEF_EnhancedRNTP_tags_1[] = {
\r
88 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
90 static const asn_TYPE_tag2member_t asn_MAP_EnhancedRNTP_tag2el_1[] = {
\r
91 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* enhancedRNTPBitmap */
\r
92 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rNTP-High-Power-Threshold */
\r
93 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* enhancedRNTPStartTime */
\r
94 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
\r
96 static asn_SEQUENCE_specifics_t asn_SPC_EnhancedRNTP_specs_1 = {
\r
97 sizeof(struct EnhancedRNTP),
\r
98 offsetof(struct EnhancedRNTP, _asn_ctx),
\r
99 asn_MAP_EnhancedRNTP_tag2el_1,
\r
100 4, /* Count of tags in the map */
\r
101 asn_MAP_EnhancedRNTP_oms_1, /* Optional members */
\r
102 2, 0, /* Root/Additions */
\r
103 4, /* First extension addition */
\r
105 asn_TYPE_descriptor_t asn_DEF_EnhancedRNTP = {
\r
109 asn_DEF_EnhancedRNTP_tags_1,
\r
110 sizeof(asn_DEF_EnhancedRNTP_tags_1)
\r
111 /sizeof(asn_DEF_EnhancedRNTP_tags_1[0]), /* 1 */
\r
112 asn_DEF_EnhancedRNTP_tags_1, /* Same as above */
\r
113 sizeof(asn_DEF_EnhancedRNTP_tags_1)
\r
114 /sizeof(asn_DEF_EnhancedRNTP_tags_1[0]), /* 1 */
\r
115 { 0, 0, SEQUENCE_constraint },
\r
116 asn_MBR_EnhancedRNTP_1,
\r
117 4, /* Elements count */
\r
118 &asn_SPC_EnhancedRNTP_specs_1 /* Additional specs */
\r