2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "ULP-Components"
4 * found in "../asn1src/ULP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "Horandvervel.h"
11 memb_verdirect_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
12 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
13 const BIT_STRING_t
*st
= (const BIT_STRING_t
*)sptr
;
17 _ASN_CTFAIL(app_key
, td
, sptr
,
18 "%s: value not given (%s:%d)",
19 td
->name
, __FILE__
, __LINE__
);
25 size
= 8 * st
->size
- (st
->bits_unused
& 0x07);
31 /* Constraint check succeeded */
34 _ASN_CTFAIL(app_key
, td
, sptr
,
35 "%s: constraint failed (%s:%d)",
36 td
->name
, __FILE__
, __LINE__
);
42 memb_bearing_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
43 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
44 const BIT_STRING_t
*st
= (const BIT_STRING_t
*)sptr
;
48 _ASN_CTFAIL(app_key
, td
, sptr
,
49 "%s: value not given (%s:%d)",
50 td
->name
, __FILE__
, __LINE__
);
56 size
= 8 * st
->size
- (st
->bits_unused
& 0x07);
62 /* Constraint check succeeded */
65 _ASN_CTFAIL(app_key
, td
, sptr
,
66 "%s: constraint failed (%s:%d)",
67 td
->name
, __FILE__
, __LINE__
);
73 memb_horspeed_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
74 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
75 const BIT_STRING_t
*st
= (const BIT_STRING_t
*)sptr
;
79 _ASN_CTFAIL(app_key
, td
, sptr
,
80 "%s: value not given (%s:%d)",
81 td
->name
, __FILE__
, __LINE__
);
87 size
= 8 * st
->size
- (st
->bits_unused
& 0x07);
93 /* Constraint check succeeded */
96 _ASN_CTFAIL(app_key
, td
, sptr
,
97 "%s: constraint failed (%s:%d)",
98 td
->name
, __FILE__
, __LINE__
);
104 memb_verspeed_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
105 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
106 const BIT_STRING_t
*st
= (const BIT_STRING_t
*)sptr
;
110 _ASN_CTFAIL(app_key
, td
, sptr
,
111 "%s: value not given (%s:%d)",
112 td
->name
, __FILE__
, __LINE__
);
118 size
= 8 * st
->size
- (st
->bits_unused
& 0x07);
124 /* Constraint check succeeded */
127 _ASN_CTFAIL(app_key
, td
, sptr
,
128 "%s: constraint failed (%s:%d)",
129 td
->name
, __FILE__
, __LINE__
);
134 static asn_per_constraints_t asn_PER_memb_verdirect_constr_2
= {
135 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
136 { APC_CONSTRAINED
, 0, 0, 1, 1 } /* (SIZE(1..1)) */,
137 0, 0 /* No PER value map */
139 static asn_per_constraints_t asn_PER_memb_bearing_constr_3
= {
140 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
141 { APC_CONSTRAINED
, 0, 0, 9, 9 } /* (SIZE(9..9)) */,
142 0, 0 /* No PER value map */
144 static asn_per_constraints_t asn_PER_memb_horspeed_constr_4
= {
145 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
146 { APC_CONSTRAINED
, 0, 0, 16, 16 } /* (SIZE(16..16)) */,
147 0, 0 /* No PER value map */
149 static asn_per_constraints_t asn_PER_memb_verspeed_constr_5
= {
150 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
151 { APC_CONSTRAINED
, 0, 0, 8, 8 } /* (SIZE(8..8)) */,
152 0, 0 /* No PER value map */
154 static asn_TYPE_member_t asn_MBR_Horandvervel_1
[] = {
155 { ATF_NOFLAGS
, 0, offsetof(struct Horandvervel
, verdirect
),
156 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
157 -1, /* IMPLICIT tag at current level */
159 memb_verdirect_constraint_1
,
160 &asn_PER_memb_verdirect_constr_2
,
164 { ATF_NOFLAGS
, 0, offsetof(struct Horandvervel
, bearing
),
165 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
166 -1, /* IMPLICIT tag at current level */
168 memb_bearing_constraint_1
,
169 &asn_PER_memb_bearing_constr_3
,
173 { ATF_NOFLAGS
, 0, offsetof(struct Horandvervel
, horspeed
),
174 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
175 -1, /* IMPLICIT tag at current level */
177 memb_horspeed_constraint_1
,
178 &asn_PER_memb_horspeed_constr_4
,
182 { ATF_NOFLAGS
, 0, offsetof(struct Horandvervel
, verspeed
),
183 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
184 -1, /* IMPLICIT tag at current level */
186 memb_verspeed_constraint_1
,
187 &asn_PER_memb_verspeed_constr_5
,
192 static ber_tlv_tag_t asn_DEF_Horandvervel_tags_1
[] = {
193 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
195 static asn_TYPE_tag2member_t asn_MAP_Horandvervel_tag2el_1
[] = {
196 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* verdirect at 226 */
197 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* bearing at 227 */
198 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* horspeed at 228 */
199 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 } /* verspeed at 229 */
201 static asn_SEQUENCE_specifics_t asn_SPC_Horandvervel_specs_1
= {
202 sizeof(struct Horandvervel
),
203 offsetof(struct Horandvervel
, _asn_ctx
),
204 asn_MAP_Horandvervel_tag2el_1
,
205 4, /* Count of tags in the map */
206 0, 0, 0, /* Optional elements (not needed) */
207 3, /* Start extensions */
208 5 /* Stop extensions */
210 asn_TYPE_descriptor_t asn_DEF_Horandvervel
= {
220 SEQUENCE_decode_uper
,
221 SEQUENCE_encode_uper
,
222 0, /* Use generic outmost tag fetcher */
223 asn_DEF_Horandvervel_tags_1
,
224 sizeof(asn_DEF_Horandvervel_tags_1
)
225 /sizeof(asn_DEF_Horandvervel_tags_1
[0]), /* 1 */
226 asn_DEF_Horandvervel_tags_1
, /* Same as above */
227 sizeof(asn_DEF_Horandvervel_tags_1
)
228 /sizeof(asn_DEF_Horandvervel_tags_1
[0]), /* 1 */
229 0, /* No PER visible constraints */
230 asn_MBR_Horandvervel_1
,
231 4, /* Elements count */
232 &asn_SPC_Horandvervel_specs_1
/* Additional specs */