2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "RRLP-Components"
4 * found in "../asn1src/RRLP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "GANSSPositionMethod.h"
11 memb_ganssID_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
12 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
16 _ASN_CTFAIL(app_key
, td
, sptr
,
17 "%s: value not given (%s:%d)",
18 td
->name
, __FILE__
, __LINE__
);
22 value
= *(const long *)sptr
;
24 if((value
>= 0 && value
<= 7)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
35 static asn_per_constraints_t asn_PER_memb_ganssID_constr_2
= {
36 { APC_CONSTRAINED
, 3, 3, 0, 7 } /* (0..7) */,
37 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_TYPE_member_t asn_MBR_GANSSPositionMethod_1
[] = {
41 { ATF_POINTER
, 2, offsetof(struct GANSSPositionMethod
, ganssID
),
42 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
43 -1, /* IMPLICIT tag at current level */
44 &asn_DEF_NativeInteger
,
45 memb_ganssID_constraint_1
,
46 &asn_PER_memb_ganssID_constr_2
,
50 { ATF_POINTER
, 1, offsetof(struct GANSSPositionMethod
, gANSSPositioningMethodTypes
),
51 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
52 -1, /* IMPLICIT tag at current level */
53 &asn_DEF_GANSSPositioningMethodTypes
,
54 0, /* Defer constraints checking to the member type */
55 0, /* No PER visible constraints */
57 "gANSSPositioningMethodTypes"
59 { ATF_NOFLAGS
, 0, offsetof(struct GANSSPositionMethod
, gANSSSignals
),
60 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_GANSSSignals
,
63 0, /* Defer constraints checking to the member type */
64 0, /* No PER visible constraints */
68 { ATF_POINTER
, 1, offsetof(struct GANSSPositionMethod
, sbasID
),
69 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
70 -1, /* IMPLICIT tag at current level */
72 0, /* Defer constraints checking to the member type */
73 0, /* No PER visible constraints */
78 static int asn_MAP_GANSSPositionMethod_oms_1
[] = { 0, 1, 3 };
79 static ber_tlv_tag_t asn_DEF_GANSSPositionMethod_tags_1
[] = {
80 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
82 static asn_TYPE_tag2member_t asn_MAP_GANSSPositionMethod_tag2el_1
[] = {
83 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* ganssID at 2283 */
84 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* gANSSPositioningMethodTypes at 2286 */
85 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* gANSSSignals at 2287 */
86 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 } /* sbasID at 2290 */
88 static asn_SEQUENCE_specifics_t asn_SPC_GANSSPositionMethod_specs_1
= {
89 sizeof(struct GANSSPositionMethod
),
90 offsetof(struct GANSSPositionMethod
, _asn_ctx
),
91 asn_MAP_GANSSPositionMethod_tag2el_1
,
92 4, /* Count of tags in the map */
93 asn_MAP_GANSSPositionMethod_oms_1
, /* Optional members */
94 2, 1, /* Root/Additions */
95 2, /* Start extensions */
96 5 /* Stop extensions */
98 asn_TYPE_descriptor_t asn_DEF_GANSSPositionMethod
= {
99 "GANSSPositionMethod",
100 "GANSSPositionMethod",
108 SEQUENCE_decode_uper
,
109 SEQUENCE_encode_uper
,
110 0, /* Use generic outmost tag fetcher */
111 asn_DEF_GANSSPositionMethod_tags_1
,
112 sizeof(asn_DEF_GANSSPositionMethod_tags_1
)
113 /sizeof(asn_DEF_GANSSPositionMethod_tags_1
[0]), /* 1 */
114 asn_DEF_GANSSPositionMethod_tags_1
, /* Same as above */
115 sizeof(asn_DEF_GANSSPositionMethod_tags_1
)
116 /sizeof(asn_DEF_GANSSPositionMethod_tags_1
[0]), /* 1 */
117 0, /* No PER visible constraints */
118 asn_MBR_GANSSPositionMethod_1
,
119 4, /* Elements count */
120 &asn_SPC_GANSSPositionMethod_specs_1
/* Additional specs */