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 "GPS-MsrSetElement.h"
11 memb_refFrame_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
<= 65535)) {
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_refFrame_constr_2
= {
36 { APC_CONSTRAINED
, 16, 16, 0, 65535 } /* (0..65535) */,
37 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_TYPE_member_t asn_MBR_GPS_MsrSetElement_1
[] = {
41 { ATF_POINTER
, 1, offsetof(struct GPS_MsrSetElement
, refFrame
),
42 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
43 -1, /* IMPLICIT tag at current level */
44 &asn_DEF_NativeInteger
,
45 memb_refFrame_constraint_1
,
46 &asn_PER_memb_refFrame_constr_2
,
50 { ATF_NOFLAGS
, 0, offsetof(struct GPS_MsrSetElement
, gpsTOW
),
51 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
52 -1, /* IMPLICIT tag at current level */
54 0, /* Defer constraints checking to the member type */
55 0, /* No PER visible constraints */
59 { ATF_NOFLAGS
, 0, offsetof(struct GPS_MsrSetElement
, gps_msrList
),
60 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_SeqOfGPS_MsrElement
,
63 0, /* Defer constraints checking to the member type */
64 0, /* No PER visible constraints */
69 static int asn_MAP_GPS_MsrSetElement_oms_1
[] = { 0 };
70 static ber_tlv_tag_t asn_DEF_GPS_MsrSetElement_tags_1
[] = {
71 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
73 static asn_TYPE_tag2member_t asn_MAP_GPS_MsrSetElement_tag2el_1
[] = {
74 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* refFrame at 463 */
75 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* gpsTOW at 464 */
76 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 } /* gps-msrList at 470 */
78 static asn_SEQUENCE_specifics_t asn_SPC_GPS_MsrSetElement_specs_1
= {
79 sizeof(struct GPS_MsrSetElement
),
80 offsetof(struct GPS_MsrSetElement
, _asn_ctx
),
81 asn_MAP_GPS_MsrSetElement_tag2el_1
,
82 3, /* Count of tags in the map */
83 asn_MAP_GPS_MsrSetElement_oms_1
, /* Optional members */
84 1, 0, /* Root/Additions */
85 -1, /* Start extensions */
86 -1 /* Stop extensions */
88 asn_TYPE_descriptor_t asn_DEF_GPS_MsrSetElement
= {
100 0, /* Use generic outmost tag fetcher */
101 asn_DEF_GPS_MsrSetElement_tags_1
,
102 sizeof(asn_DEF_GPS_MsrSetElement_tags_1
)
103 /sizeof(asn_DEF_GPS_MsrSetElement_tags_1
[0]), /* 1 */
104 asn_DEF_GPS_MsrSetElement_tags_1
, /* Same as above */
105 sizeof(asn_DEF_GPS_MsrSetElement_tags_1
)
106 /sizeof(asn_DEF_GPS_MsrSetElement_tags_1
[0]), /* 1 */
107 0, /* No PER visible constraints */
108 asn_MBR_GPS_MsrSetElement_1
,
109 3, /* Elements count */
110 &asn_SPC_GPS_MsrSetElement_specs_1
/* Additional specs */