1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-28 16:03:15 +00:00
gnss-sdr/src/core/libs/supl/asn-rrlp/GPSTime.c

62 lines
2.5 KiB
C
Raw Normal View History

/*
* SPDX-FileCopyrightText: (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* SPDX-License-Identifier: BSD-1-Clause
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
2019-10-05 01:16:31 +00:00
* found in "../rrlp-components.asn"
*/
#include "GPSTime.h"
static asn_TYPE_member_t asn_MBR_GPSTime_1[] = {
2019-10-05 08:29:46 +00:00
{ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsTOW23b),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
&asn_DEF_GPSTOW23b, 0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0, "gpsTOW23b"},
2019-10-05 08:29:46 +00:00
{ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsWeek),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
&asn_DEF_GPSWeek, 0, /* Defer constraints checking to the member type */
0, /* No PER visible constraints */
0, "gpsWeek"},
};
static ber_tlv_tag_t asn_DEF_GPSTime_tags_1[] = {
2019-10-05 08:29:46 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPSTime_tag2el_1[] = {
2019-10-05 08:29:46 +00:00
{(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* gpsTOW23b at 594 */
{(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* gpsWeek at 596 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPSTime_specs_1 = {
2019-10-05 01:16:31 +00:00
sizeof(struct GPSTime),
offsetof(struct GPSTime, _asn_ctx),
asn_MAP_GPSTime_tag2el_1,
2019-10-05 08:29:46 +00:00
2, /* Count of tags in the map */
0,
0,
0, /* Optional elements (not needed) */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPSTime = {
2019-10-05 01:16:31 +00:00
"GPSTime",
"GPSTime",
SEQUENCE_free,
SEQUENCE_print,
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
SEQUENCE_decode_uper,
SEQUENCE_encode_uper,
2019-10-05 08:29:46 +00:00
0, /* Use generic outmost tag fetcher */
2019-10-05 01:16:31 +00:00
asn_DEF_GPSTime_tags_1,
2019-10-05 08:29:46 +00:00
sizeof(asn_DEF_GPSTime_tags_1) / sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
asn_DEF_GPSTime_tags_1, /* Same as above */
2019-10-05 08:29:46 +00:00
sizeof(asn_DEF_GPSTime_tags_1) / sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
2019-10-05 01:16:31 +00:00
asn_MBR_GPSTime_1,
2019-10-05 08:29:46 +00:00
2, /* Elements count */
&asn_SPC_GPSTime_specs_1 /* Additional specs */
};