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 "GANSSIonosphereModel.h"
11 memb_ai0_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
<= 4095)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
36 memb_ai1_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
37 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
41 _ASN_CTFAIL(app_key
, td
, sptr
,
42 "%s: value not given (%s:%d)",
43 td
->name
, __FILE__
, __LINE__
);
47 value
= *(const long *)sptr
;
49 if((value
>= 0 && value
<= 4095)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_ai2_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
62 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
66 _ASN_CTFAIL(app_key
, td
, sptr
,
67 "%s: value not given (%s:%d)",
68 td
->name
, __FILE__
, __LINE__
);
72 value
= *(const long *)sptr
;
74 if((value
>= 0 && value
<= 4095)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
85 static asn_per_constraints_t asn_PER_memb_ai0_constr_2
= {
86 { APC_CONSTRAINED
, 12, 12, 0, 4095 } /* (0..4095) */,
87 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
88 0, 0 /* No PER value map */
90 static asn_per_constraints_t asn_PER_memb_ai1_constr_3
= {
91 { APC_CONSTRAINED
, 12, 12, 0, 4095 } /* (0..4095) */,
92 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
93 0, 0 /* No PER value map */
95 static asn_per_constraints_t asn_PER_memb_ai2_constr_4
= {
96 { APC_CONSTRAINED
, 12, 12, 0, 4095 } /* (0..4095) */,
97 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
98 0, 0 /* No PER value map */
100 static asn_TYPE_member_t asn_MBR_GANSSIonosphereModel_1
[] = {
101 { ATF_NOFLAGS
, 0, offsetof(struct GANSSIonosphereModel
, ai0
),
102 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
103 -1, /* IMPLICIT tag at current level */
104 &asn_DEF_NativeInteger
,
105 memb_ai0_constraint_1
,
106 &asn_PER_memb_ai0_constr_2
,
110 { ATF_NOFLAGS
, 0, offsetof(struct GANSSIonosphereModel
, ai1
),
111 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
112 -1, /* IMPLICIT tag at current level */
113 &asn_DEF_NativeInteger
,
114 memb_ai1_constraint_1
,
115 &asn_PER_memb_ai1_constr_3
,
119 { ATF_NOFLAGS
, 0, offsetof(struct GANSSIonosphereModel
, ai2
),
120 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
121 -1, /* IMPLICIT tag at current level */
122 &asn_DEF_NativeInteger
,
123 memb_ai2_constraint_1
,
124 &asn_PER_memb_ai2_constr_4
,
129 static ber_tlv_tag_t asn_DEF_GANSSIonosphereModel_tags_1
[] = {
130 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
132 static asn_TYPE_tag2member_t asn_MAP_GANSSIonosphereModel_tag2el_1
[] = {
133 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* ai0 at 1179 */
134 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* ai1 at 1180 */
135 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 } /* ai2 at 1181 */
137 static asn_SEQUENCE_specifics_t asn_SPC_GANSSIonosphereModel_specs_1
= {
138 sizeof(struct GANSSIonosphereModel
),
139 offsetof(struct GANSSIonosphereModel
, _asn_ctx
),
140 asn_MAP_GANSSIonosphereModel_tag2el_1
,
141 3, /* Count of tags in the map */
142 0, 0, 0, /* Optional elements (not needed) */
143 -1, /* Start extensions */
144 -1 /* Stop extensions */
146 asn_TYPE_descriptor_t asn_DEF_GANSSIonosphereModel
= {
147 "GANSSIonosphereModel",
148 "GANSSIonosphereModel",
156 SEQUENCE_decode_uper
,
157 SEQUENCE_encode_uper
,
158 0, /* Use generic outmost tag fetcher */
159 asn_DEF_GANSSIonosphereModel_tags_1
,
160 sizeof(asn_DEF_GANSSIonosphereModel_tags_1
)
161 /sizeof(asn_DEF_GANSSIonosphereModel_tags_1
[0]), /* 1 */
162 asn_DEF_GANSSIonosphereModel_tags_1
, /* Same as above */
163 sizeof(asn_DEF_GANSSIonosphereModel_tags_1
)
164 /sizeof(asn_DEF_GANSSIonosphereModel_tags_1
[0]), /* 1 */
165 0, /* No PER visible constraints */
166 asn_MBR_GANSSIonosphereModel_1
,
167 3, /* Elements count */
168 &asn_SPC_GANSSIonosphereModel_specs_1
/* Additional specs */