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`
11 memb_bearing_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_horspeed_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__
);
72 static asn_per_constraints_t asn_PER_memb_bearing_constr_2
= {
73 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
74 { APC_CONSTRAINED
, 0, 0, 9, 9 } /* (SIZE(9..9)) */,
75 0, 0 /* No PER value map */
77 static asn_per_constraints_t asn_PER_memb_horspeed_constr_3
= {
78 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
79 { APC_CONSTRAINED
, 0, 0, 16, 16 } /* (SIZE(16..16)) */,
80 0, 0 /* No PER value map */
82 static asn_TYPE_member_t asn_MBR_Horvel_1
[] = {
83 { ATF_NOFLAGS
, 0, offsetof(struct Horvel
, bearing
),
84 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
85 -1, /* IMPLICIT tag at current level */
87 memb_bearing_constraint_1
,
88 &asn_PER_memb_bearing_constr_2
,
92 { ATF_NOFLAGS
, 0, offsetof(struct Horvel
, horspeed
),
93 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
94 -1, /* IMPLICIT tag at current level */
96 memb_horspeed_constraint_1
,
97 &asn_PER_memb_horspeed_constr_3
,
102 static ber_tlv_tag_t asn_DEF_Horvel_tags_1
[] = {
103 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
105 static asn_TYPE_tag2member_t asn_MAP_Horvel_tag2el_1
[] = {
106 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* bearing at 222 */
107 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 } /* horspeed at 223 */
109 static asn_SEQUENCE_specifics_t asn_SPC_Horvel_specs_1
= {
110 sizeof(struct Horvel
),
111 offsetof(struct Horvel
, _asn_ctx
),
112 asn_MAP_Horvel_tag2el_1
,
113 2, /* Count of tags in the map */
114 0, 0, 0, /* Optional elements (not needed) */
115 1, /* Start extensions */
116 3 /* Stop extensions */
118 asn_TYPE_descriptor_t asn_DEF_Horvel
= {
128 SEQUENCE_decode_uper
,
129 SEQUENCE_encode_uper
,
130 0, /* Use generic outmost tag fetcher */
131 asn_DEF_Horvel_tags_1
,
132 sizeof(asn_DEF_Horvel_tags_1
)
133 /sizeof(asn_DEF_Horvel_tags_1
[0]), /* 1 */
134 asn_DEF_Horvel_tags_1
, /* Same as above */
135 sizeof(asn_DEF_Horvel_tags_1
)
136 /sizeof(asn_DEF_Horvel_tags_1
[0]), /* 1 */
137 0, /* No PER visible constraints */
139 2, /* Elements count */
140 &asn_SPC_Horvel_specs_1
/* Additional specs */