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 "ScheduledCommunicationTime.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_dayofWeek_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
14 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
18 ASN__CTFAIL(app_key, td, sptr,
\r
19 "%s: value not given (%s:%d)",
\r
20 td->name, __FILE__, __LINE__);
\r
26 size = 8 * st->size - (st->bits_unused & 0x07);
\r
32 /* Constraint check succeeded */
\r
35 ASN__CTFAIL(app_key, td, sptr,
\r
36 "%s: constraint failed (%s:%d)",
\r
37 td->name, __FILE__, __LINE__);
\r
43 memb_timeofDayStart_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
44 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
48 ASN__CTFAIL(app_key, td, sptr,
\r
49 "%s: value not given (%s:%d)",
\r
50 td->name, __FILE__, __LINE__);
\r
54 value = *(const long *)sptr;
\r
56 if((value >= 0 && value <= 86399)) {
\r
57 /* Constraint check succeeded */
\r
60 ASN__CTFAIL(app_key, td, sptr,
\r
61 "%s: constraint failed (%s:%d)",
\r
62 td->name, __FILE__, __LINE__);
\r
68 memb_timeofDayEnd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
69 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
73 ASN__CTFAIL(app_key, td, sptr,
\r
74 "%s: value not given (%s:%d)",
\r
75 td->name, __FILE__, __LINE__);
\r
79 value = *(const long *)sptr;
\r
81 if((value >= 0 && value <= 86399)) {
\r
82 /* Constraint check succeeded */
\r
85 ASN__CTFAIL(app_key, td, sptr,
\r
86 "%s: constraint failed (%s:%d)",
\r
87 td->name, __FILE__, __LINE__);
\r
92 static asn_per_constraints_t asn_PER_memb_dayofWeek_constr_2 CC_NOTUSED = {
\r
93 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
94 { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */,
\r
95 0, 0 /* No PER value map */
\r
97 static asn_per_constraints_t asn_PER_memb_timeofDayStart_constr_3 CC_NOTUSED = {
\r
98 { APC_CONSTRAINED | APC_EXTENSIBLE, 17, -1, 0, 86399 } /* (0..86399,...) */,
\r
99 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
100 0, 0 /* No PER value map */
\r
102 static asn_per_constraints_t asn_PER_memb_timeofDayEnd_constr_4 CC_NOTUSED = {
\r
103 { APC_CONSTRAINED | APC_EXTENSIBLE, 17, -1, 0, 86399 } /* (0..86399,...) */,
\r
104 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
105 0, 0 /* No PER value map */
\r
107 asn_TYPE_member_t asn_MBR_ScheduledCommunicationTime_1[] = {
\r
108 { ATF_POINTER, 4, offsetof(struct ScheduledCommunicationTime, dayofWeek),
\r
109 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
110 -1, /* IMPLICIT tag at current level */
\r
111 &asn_DEF_BIT_STRING,
\r
113 { 0, &asn_PER_memb_dayofWeek_constr_2, memb_dayofWeek_constraint_1 },
\r
114 0, 0, /* No default value */
\r
117 { ATF_POINTER, 3, offsetof(struct ScheduledCommunicationTime, timeofDayStart),
\r
118 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
119 -1, /* IMPLICIT tag at current level */
\r
120 &asn_DEF_NativeInteger,
\r
122 { 0, &asn_PER_memb_timeofDayStart_constr_3, memb_timeofDayStart_constraint_1 },
\r
123 0, 0, /* No default value */
\r
126 { ATF_POINTER, 2, offsetof(struct ScheduledCommunicationTime, timeofDayEnd),
\r
127 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
128 -1, /* IMPLICIT tag at current level */
\r
129 &asn_DEF_NativeInteger,
\r
131 { 0, &asn_PER_memb_timeofDayEnd_constr_4, memb_timeofDayEnd_constraint_1 },
\r
132 0, 0, /* No default value */
\r
135 { ATF_POINTER, 1, offsetof(struct ScheduledCommunicationTime, iE_Extensions),
\r
136 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
137 -1, /* IMPLICIT tag at current level */
\r
138 &asn_DEF_ProtocolExtensionContainer_8231P197,
\r
141 0, 0, /* No default value */
\r
145 static const int asn_MAP_ScheduledCommunicationTime_oms_1[] = { 0, 1, 2, 3 };
\r
146 static const ber_tlv_tag_t asn_DEF_ScheduledCommunicationTime_tags_1[] = {
\r
147 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
149 static const asn_TYPE_tag2member_t asn_MAP_ScheduledCommunicationTime_tag2el_1[] = {
\r
150 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dayofWeek */
\r
151 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* timeofDayStart */
\r
152 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeofDayEnd */
\r
153 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
\r
155 asn_SEQUENCE_specifics_t asn_SPC_ScheduledCommunicationTime_specs_1 = {
\r
156 sizeof(struct ScheduledCommunicationTime),
\r
157 offsetof(struct ScheduledCommunicationTime, _asn_ctx),
\r
158 asn_MAP_ScheduledCommunicationTime_tag2el_1,
\r
159 4, /* Count of tags in the map */
\r
160 asn_MAP_ScheduledCommunicationTime_oms_1, /* Optional members */
\r
161 4, 0, /* Root/Additions */
\r
162 4, /* First extension addition */
\r
164 asn_TYPE_descriptor_t asn_DEF_ScheduledCommunicationTime = {
\r
165 "ScheduledCommunicationTime",
\r
166 "ScheduledCommunicationTime",
\r
168 asn_DEF_ScheduledCommunicationTime_tags_1,
\r
169 sizeof(asn_DEF_ScheduledCommunicationTime_tags_1)
\r
170 /sizeof(asn_DEF_ScheduledCommunicationTime_tags_1[0]), /* 1 */
\r
171 asn_DEF_ScheduledCommunicationTime_tags_1, /* Same as above */
\r
172 sizeof(asn_DEF_ScheduledCommunicationTime_tags_1)
\r
173 /sizeof(asn_DEF_ScheduledCommunicationTime_tags_1[0]), /* 1 */
\r
174 { 0, 0, SEQUENCE_constraint },
\r
175 asn_MBR_ScheduledCommunicationTime_1,
\r
176 4, /* Elements count */
\r
177 &asn_SPC_ScheduledCommunicationTime_specs_1 /* Additional specs */
\r