remark release date
[Net-Radio-Location-SUPL-Test.git] / asn1 / GANSS-MsrSetElement.c
blob256cb48890eb258a5c3f75b27921c7d8e39c6ede
1 /*
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`
6 */
8 #include "GANSS-MsrSetElement.h"
10 static int
11 memb_deltaGANSSTOD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 long value;
15 if(!sptr) {
16 _ASN_CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
22 value = *(const long *)sptr;
24 if((value >= 0 && value <= 127)) {
25 /* Constraint check succeeded */
26 return 0;
27 } else {
28 _ASN_CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
31 return -1;
35 static asn_per_constraints_t asn_PER_memb_deltaGANSSTOD_constr_4 = {
36 { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_TYPE_member_t asn_MBR_GANSS_MsrSetElement_1[] = {
41 { ATF_POINTER, 4, offsetof(struct GANSS_MsrSetElement, referenceFrame),
42 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
43 -1, /* IMPLICIT tag at current level */
44 &asn_DEF_ReferenceFrame,
45 0, /* Defer constraints checking to the member type */
46 0, /* No PER visible constraints */
48 "referenceFrame"
50 { ATF_POINTER, 3, offsetof(struct GANSS_MsrSetElement, ganssTODm),
51 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
52 -1, /* IMPLICIT tag at current level */
53 &asn_DEF_GANSSTODm,
54 0, /* Defer constraints checking to the member type */
55 0, /* No PER visible constraints */
57 "ganssTODm"
59 { ATF_POINTER, 2, offsetof(struct GANSS_MsrSetElement, deltaGANSSTOD),
60 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_NativeInteger,
63 memb_deltaGANSSTOD_constraint_1,
64 &asn_PER_memb_deltaGANSSTOD_constr_4,
66 "deltaGANSSTOD"
68 { ATF_POINTER, 1, offsetof(struct GANSS_MsrSetElement, ganssTODUncertainty),
69 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
70 -1, /* IMPLICIT tag at current level */
71 &asn_DEF_GANSSTODUncertainty,
72 0, /* Defer constraints checking to the member type */
73 0, /* No PER visible constraints */
75 "ganssTODUncertainty"
77 { ATF_NOFLAGS, 0, offsetof(struct GANSS_MsrSetElement, ganss_MsrElementList),
78 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
79 -1, /* IMPLICIT tag at current level */
80 &asn_DEF_SeqOfGANSS_MsrElement,
81 0, /* Defer constraints checking to the member type */
82 0, /* No PER visible constraints */
84 "ganss-MsrElementList"
87 static int asn_MAP_GANSS_MsrSetElement_oms_1[] = { 0, 1, 2, 3 };
88 static ber_tlv_tag_t asn_DEF_GANSS_MsrSetElement_tags_1[] = {
89 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
91 static asn_TYPE_tag2member_t asn_MAP_GANSS_MsrSetElement_tag2el_1[] = {
92 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFrame at 2197 */
93 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTODm at 2201 */
94 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* deltaGANSSTOD at 2202 */
95 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssTODUncertainty at 2203 */
96 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganss-MsrElementList at 2206 */
98 static asn_SEQUENCE_specifics_t asn_SPC_GANSS_MsrSetElement_specs_1 = {
99 sizeof(struct GANSS_MsrSetElement),
100 offsetof(struct GANSS_MsrSetElement, _asn_ctx),
101 asn_MAP_GANSS_MsrSetElement_tag2el_1,
102 5, /* Count of tags in the map */
103 asn_MAP_GANSS_MsrSetElement_oms_1, /* Optional members */
104 4, 0, /* Root/Additions */
105 -1, /* Start extensions */
106 -1 /* Stop extensions */
108 asn_TYPE_descriptor_t asn_DEF_GANSS_MsrSetElement = {
109 "GANSS-MsrSetElement",
110 "GANSS-MsrSetElement",
111 SEQUENCE_free,
112 SEQUENCE_print,
113 SEQUENCE_constraint,
114 SEQUENCE_decode_ber,
115 SEQUENCE_encode_der,
116 SEQUENCE_decode_xer,
117 SEQUENCE_encode_xer,
118 SEQUENCE_decode_uper,
119 SEQUENCE_encode_uper,
120 0, /* Use generic outmost tag fetcher */
121 asn_DEF_GANSS_MsrSetElement_tags_1,
122 sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
123 /sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
124 asn_DEF_GANSS_MsrSetElement_tags_1, /* Same as above */
125 sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
126 /sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
127 0, /* No PER visible constraints */
128 asn_MBR_GANSS_MsrSetElement_1,
129 5, /* Elements count */
130 &asn_SPC_GANSS_MsrSetElement_specs_1 /* Additional specs */