MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_rcvraw.h File Reference

MRTKLIB Receiver Raw Data Module — Receiver raw data types and decoder functions for various GNSS receiver protocols. More...

#include <stdio.h>
#include "mrtklib/mrtk_eph.h"
#include "mrtklib/mrtk_foundation.h"
#include "mrtklib/mrtk_nav.h"
#include "mrtklib/mrtk_obs.h"
#include "mrtklib/mrtk_opt.h"
#include "mrtklib/mrtk_rtcm.h"
#include "mrtklib/mrtk_time.h"
Include dependency graph for mrtk_rcvraw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  raw_t
 Receiver raw data control type. More...

Macros

#define STRFMT_RTCM2   0 /* stream format: RTCM 2 */
#define STRFMT_RTCM3   1 /* stream format: RTCM 3 */
#define STRFMT_OEM4   2 /* stream format: NovAtel OEMV/4 */
#define STRFMT_OEM3   3 /* stream format: NovAtel OEM3 */
#define STRFMT_UBX   4 /* stream format: u-blox LEA-*T */
#define STRFMT_SS2   5 /* stream format: NovAtel Superstar II */
#define STRFMT_CRES   6 /* stream format: Hemisphere */
#define STRFMT_STQ   7 /* stream format: SkyTraq S1315F */
#define STRFMT_JAVAD   8 /* stream format: JAVAD GRIL/GREIS */
#define STRFMT_NVS   9 /* stream format: NVS NVC08C */
#define STRFMT_BINEX   10 /* stream format: BINEX */
#define STRFMT_RT17   11 /* stream format: Trimble RT17 */
#define STRFMT_SEPT   12 /* stream format: Septentrio */
#define STRFMT_RINEX   13 /* stream format: RINEX */
#define STRFMT_SP3   14 /* stream format: SP3 */
#define STRFMT_RNXCLK   15 /* stream format: RINEX CLK */
#define STRFMT_SBAS   16 /* stream format: SBAS messages */
#define STRFMT_NMEA   17 /* stream format: NMEA 0183 */
#define STRFMT_STAT   20 /* stream format: stat */
#define STRFMT_L6E   21 /* stream format: L6E CSSR */
#define STRFMT_CLAS   22 /* stream format: CLAS L6 CSSR */

Functions

int init_raw (raw_t *raw, int format)
 Initialize receiver raw data control struct.
void free_raw (raw_t *raw)
 Free receiver raw data control struct.
int input_raw (raw_t *raw, rtcm_t *rtcm, int format, uint8_t data)
 Input receiver raw data from stream (byte-by-byte).
int input_rawf (raw_t *raw, rtcm_t *rtcm, int format, FILE *fp)
 Input receiver raw data from file.
int decode_frame (const uint8_t *buff, eph_t *eph, alm_t *alm, double *ion, double *utc)
int test_glostr (const uint8_t *buff)
int decode_glostr (const uint8_t *buff, geph_t *geph, double *utc)
int decode_bds_d1 (const uint8_t *buff, eph_t *eph, double *ion, double *utc)
int decode_bds_d2 (const uint8_t *buff, eph_t *eph, double *utc)
int decode_gal_inav (const uint8_t *buff, eph_t *eph, double *ion, double *utc)
int decode_gal_fnav (const uint8_t *buff, eph_t *eph, double *ion, double *utc)
int decode_irn_nav (const uint8_t *buff, eph_t *eph, double *ion, double *utc)
int decode_qzss_l6frame (rtcm_t *rtcm, int is_l6d)
 Route one QZSS L6 frame received in a UBX/SBF container.
int init_rt17 (raw_t *raw)
void free_rt17 (raw_t *raw)
int input_oem4 (raw_t *raw, uint8_t data)
int input_oem3 (raw_t *raw, uint8_t data)
int input_ubx (raw_t *raw, rtcm_t *rtcm, uint8_t data)
int input_ss2 (raw_t *raw, uint8_t data)
int input_cres (raw_t *raw, uint8_t data)
int input_stq (raw_t *raw, uint8_t data)
int input_javad (raw_t *raw, uint8_t data)
int input_nvs (raw_t *raw, uint8_t data)
int input_bnx (raw_t *raw, uint8_t data)
int input_rt17 (raw_t *raw, uint8_t data)
int input_sbf (raw_t *raw, rtcm_t *rtcm, uint8_t data)
int input_oem4f (raw_t *raw, FILE *fp)
int input_oem3f (raw_t *raw, FILE *fp)
int input_ubxf (raw_t *raw, rtcm_t *rtcm, FILE *fp)
int input_ss2f (raw_t *raw, FILE *fp)
int input_cresf (raw_t *raw, FILE *fp)
int input_stqf (raw_t *raw, FILE *fp)
int input_javadf (raw_t *raw, FILE *fp)
int input_nvsf (raw_t *raw, FILE *fp)
int input_bnxf (raw_t *raw, FILE *fp)
int input_rt17f (raw_t *raw, FILE *fp)
int input_sbff (raw_t *raw, rtcm_t *rtcm, FILE *fp)
int readbnxt (const char *file, int rcv, gtime_t ts, gtime_t te, double tint, const char *opt, obs_t *obs, nav_t *nav, sta_t *sta, const prcopt_t *popt)
 Read BINEX observation/navigation data from file(s).
int gen_ubx (const char *msg, uint8_t *buff)
int gen_stq (const char *msg, uint8_t *buff)
int gen_nvs (const char *msg, uint8_t *buff)

Detailed Description

MRTKLIB Receiver Raw Data Module — Receiver raw data types and decoder functions for various GNSS receiver protocols.

This header provides the raw_t control struct, stream format constants, and all receiver-specific decoder function declarations extracted from rtklib.h/rcvraw.c with zero algorithmic changes.

Note
Core functions are implemented in mrtk_rcvraw.c. Receiver-specific decoders are in src/rcv/mrtk_rcv_*.c.

Definition in file mrtk_rcvraw.h.

Macro Definition Documentation

◆ STRFMT_BINEX

#define STRFMT_BINEX   10 /* stream format: BINEX */

Definition at line 59 of file mrtk_rcvraw.h.

Referenced by input_raw(), input_rawf(), and readbnxfp().

◆ STRFMT_CLAS

#define STRFMT_CLAS   22 /* stream format: CLAS L6 CSSR */

Definition at line 69 of file mrtk_rcvraw.h.

Referenced by decoderaw(), and rtksvrstart().

◆ STRFMT_CRES

#define STRFMT_CRES   6 /* stream format: Hemisphere */

Definition at line 55 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_JAVAD

#define STRFMT_JAVAD   8 /* stream format: JAVAD GRIL/GREIS */

Definition at line 57 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_L6E

#define STRFMT_L6E   21 /* stream format: L6E CSSR */

Definition at line 68 of file mrtk_rcvraw.h.

Referenced by decoderaw(), rtksvr_ssr_applicable(), and rtksvrstart().

◆ STRFMT_NMEA

#define STRFMT_NMEA   17 /* stream format: NMEA 0183 */

Definition at line 66 of file mrtk_rcvraw.h.

◆ STRFMT_NVS

#define STRFMT_NVS   9 /* stream format: NVS NVC08C */

Definition at line 58 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_OEM3

#define STRFMT_OEM3   3 /* stream format: NovAtel OEM3 */

Definition at line 52 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_OEM4

#define STRFMT_OEM4   2 /* stream format: NovAtel OEMV/4 */

Definition at line 51 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_RINEX

#define STRFMT_RINEX   13 /* stream format: RINEX */

Definition at line 62 of file mrtk_rcvraw.h.

Referenced by close_strfile(), free_strfile(), gen_strfile(), input_strfile(), and open_strfile().

◆ STRFMT_RNXCLK

#define STRFMT_RNXCLK   15 /* stream format: RINEX CLK */

Definition at line 64 of file mrtk_rcvraw.h.

Referenced by decodefile(), and rtksvrthread().

◆ STRFMT_RT17

#define STRFMT_RT17   11 /* stream format: Trimble RT17 */

Definition at line 60 of file mrtk_rcvraw.h.

Referenced by convrnx_s(), free_raw(), free_rt17(), init_raw(), init_rt17(), input_raw(), and input_rawf().

◆ STRFMT_RTCM2

#define STRFMT_RTCM2   0 /* stream format: RTCM 2 */

◆ STRFMT_RTCM3

#define STRFMT_RTCM3   1 /* stream format: RTCM 3 */

◆ STRFMT_SBAS

#define STRFMT_SBAS   16 /* stream format: SBAS messages */

Definition at line 65 of file mrtk_rcvraw.h.

◆ STRFMT_SEPT

#define STRFMT_SEPT   12 /* stream format: Septentrio */

Definition at line 61 of file mrtk_rcvraw.h.

Referenced by decoderaw(), input_raw(), input_rawf(), and rtksvrstart().

◆ STRFMT_SP3

#define STRFMT_SP3   14 /* stream format: SP3 */

Definition at line 63 of file mrtk_rcvraw.h.

Referenced by decodefile(), and rtksvrthread().

◆ STRFMT_SS2

#define STRFMT_SS2   5 /* stream format: NovAtel Superstar II */

Definition at line 54 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_STAT

#define STRFMT_STAT   20 /* stream format: stat */

Definition at line 67 of file mrtk_rcvraw.h.

Referenced by decoderaw().

◆ STRFMT_STQ

#define STRFMT_STQ   7 /* stream format: SkyTraq S1315F */

Definition at line 56 of file mrtk_rcvraw.h.

Referenced by input_raw(), and input_rawf().

◆ STRFMT_UBX

#define STRFMT_UBX   4 /* stream format: u-blox LEA-*T */

Definition at line 53 of file mrtk_rcvraw.h.

Referenced by decoderaw(), input_raw(), input_rawf(), and rtksvrstart().

Function Documentation

◆ decode_bds_d1()

int decode_bds_d1 ( const uint8_t * buff,
eph_t * eph,
double * ion,
double * utc )

Definition at line 851 of file mrtk_rcvraw.c.

References decode_bds_d1_eph(), decode_bds_d1_ion(), decode_bds_d1_utc(), and trace().

Referenced by decode_bdsraw(), decode_cnav(), and decode_stqbds().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_bds_d2()

int decode_bds_d2 ( const uint8_t * buff,
eph_t * eph,
double * utc )

Definition at line 1026 of file mrtk_rcvraw.c.

References decode_bds_d2_eph(), decode_bds_d2_utc(), and trace().

Referenced by decode_bdsraw(), decode_cnav(), and decode_stqbds().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_frame()

int decode_frame ( const uint8_t * buff,
eph_t * eph,
alm_t * alm,
double * ion,
double * utc )

Definition at line 1643 of file mrtk_rcvraw.c.

References decode_frame_alm(), decode_frame_eph(), decode_frame_ion(), decode_frame_utc(), and trace().

Referenced by decode_alm1(), decode_alm2(), decode_creseph(), decode_eph(), decode_eph(), decode_ephem(), decode_ionutc(), decode_ionutc(), decode_L1eph(), decode_L1ionutc(), decode_qzssrawephemb(), decode_qzssrawsubframeb(), decode_rawephemb(), decode_repb(), and decode_ss2eph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_gal_fnav()

int decode_gal_fnav ( const uint8_t * buff,
eph_t * eph,
double * ion,
double * utc )

Definition at line 698 of file mrtk_rcvraw.c.

References decode_gal_fnav_eph(), decode_gal_fnav_ion(), decode_gal_fnav_utc(), and trace().

Referenced by decode_galrawfnav().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_gal_inav()

int decode_gal_inav ( const uint8_t * buff,
eph_t * eph,
double * ion,
double * utc )

Definition at line 497 of file mrtk_rcvraw.c.

References decode_gal_inav_eph(), decode_gal_inav_ion(), decode_gal_inav_utc(), and trace().

Referenced by decode_enav(), and decode_galrawinav().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_glostr()

int decode_glostr ( const uint8_t * buff,
geph_t * geph,
double * utc )

Definition at line 1278 of file mrtk_rcvraw.c.

References decode_glostr_eph(), decode_glostr_utc(), and trace().

Referenced by decode_cresgloeph(), decode_glorawca(), decode_gnav(), decode_lD(), and decode_stqglo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_irn_nav()

int decode_irn_nav ( const uint8_t * buff,
eph_t * eph,
double * ion,
double * utc )

Definition at line 296 of file mrtk_rcvraw.c.

References decode_irn_eph(), decode_irn_ion(), decode_irn_utc(), and trace().

Referenced by decode_navicraw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_qzss_l6frame()

int decode_qzss_l6frame ( rtcm_t * rtcm,
int is_l6d )

Route one QZSS L6 frame received in a UBX/SBF container.

The service is taken from the L6 header (vendor ID + MADOCA CSID), not from the PRN or the receiver's L6D/L6E channel. MADOCA-PPP frames are decoded into rtcm->ssr; other services are left in rtcm->buff for the caller.

Parameters
[in,out]rtcmRTCM control struct; rtcm->buff holds the 250-byte frame.
[in]is_l6d1 if the receiver reports the L6D signal (only used for null messages).
Returns
10: CLAS frame, 15: MADOCA SSR decoded, 16: MADOCA iono frame, 17: QZNMA frame, 0: no message / reserved vendor, -1: error.

Definition at line 1661 of file mrtk_rcvraw.c.

References decode_qzss_l6emsg(), l6_parse_header(), l6_service_expected(), l6_service_name(), L6_SVC_CLAS, L6_SVC_MADOCA, L6_SVC_MADOCA_IONO, L6_SVC_NULL, L6_SVC_QZNMA, l6_header_t::prn, rtcm, l6_header_t::svc, and trace().

Referenced by decode_qzsrawl6(), and decode_rxmqzssl6().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_raw()

void free_raw ( raw_t * raw)

Free receiver raw data control struct.

Parameters
[in,out]rawReceiver raw data control struct

Definition at line 1812 of file mrtk_rcvraw.c.

References nav_s::alm, obs_t::data, nav_s::eph, raw_t::format, free, free_rt17(), nav_s::geph, nav_s::n, obs_t::n, nav_s::na, raw_t::nav, nav_s::ng, nav_s::ns, raw_t::obs, raw_t::obuf, raw_t::rcv_data, nav_s::seph, STRFMT_RT17, and trace().

Referenced by free_strfile(), init_raw(), readbnxfp(), rtksvrthread(), and strconvfree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_rt17()

void free_rt17 ( raw_t * raw)

Definition at line 515 of file mrtk_rcv_rt17.c.

References raw_t::format, free, MBUFF_LENGTH, rt17_t::MessageBuffer, rt17_t::PacketBuffer, PBUFF_LENGTH, raw_t::rcv_data, and STRFMT_RT17.

Referenced by free_raw(), and init_rt17().

Here is the caller graph for this function:

◆ gen_nvs()

int gen_nvs ( const char * msg,
uint8_t * buff )

Definition at line 686 of file mrtk_rcv_nvs.c.

References ID_X02RATEPVT, ID_XD7ADVANCED, ID_XD7SMOOTH, ID_XF4RATERAW, NVSSYNC, and trace().

Referenced by strsendcmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gen_stq()

int gen_stq ( const char * msg,
uint8_t * buff )

Definition at line 886 of file mrtk_rcv_skytraq.c.

References checksum(), ID_CFGBIN, ID_CFGFMT, ID_CFGRATE, ID_CFGSERI, ID_GETGLOEPH, ID_RESTART, STQSYNC1, STQSYNC2, trace(), and traceb().

Referenced by strsendcmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gen_ubx()

int gen_ubx ( const char * msg,
uint8_t * buff )

Definition at line 1590 of file mrtk_rcv_ublox.c.

References FI1, FI2, FI4, FR4, FR8, FS32, FU1, FU2, FU4, setcs(), setI1(), setI2(), setI4(), setR4(), setR8(), setU1(), setU2(), setU4(), stoi(), trace(), traceb(), UBXCFG, UBXSYNC1, and UBXSYNC2.

Referenced by strsendcmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_raw()

int init_raw ( raw_t * raw,
int format )

Initialize receiver raw data control struct.

Parameters
[out]rawReceiver raw data control struct
[in]formatStream format (STRFMT_???)
Returns
Status (1:ok, 0:memory allocation error)

Definition at line 1702 of file mrtk_rcvraw.c.

References nav_s::alm, sta_t::antdes, sta_t::antsetup, sta_t::antsno, raw_t::buff, obs_t::data, sta_t::del, sta_t::deltype, raw_t::dpCA, nav_s::eph, raw_t::ephsat, raw_t::ephset, raw_t::flag, raw_t::format, free_raw(), raw_t::freqn, nav_s::geph, raw_t::halfc, sta_t::hgt, raw_t::icpc, raw_t::icpp, init_rt17(), raw_t::iod, sta_t::itrf, raw_t::len, raw_t::lockt, malloc, sta_t::marker, MAXOBS, MAXRAWLEN, MAXSAT, raw_t::msgtype, nav_s::n, obs_t::n, nav_s::na, sta_t::name, raw_t::nav, raw_t::nbyte, nav_s::ng, nav_s::ns, NSATGLO, NSATSBS, raw_t::obs, raw_t::obuf, raw_t::off, raw_t::opt, raw_t::outtype, sta_t::pos, raw_t::prCA, raw_t::rcv_data, sta_t::recsno, sta_t::rectype, sta_t::recver, raw_t::sbsmsg, nav_s::seph, raw_t::sigcfg, raw_t::sigcfg_set, raw_t::sta, STRFMT_RT17, raw_t::subfrm, raw_t::tbase, raw_t::time, raw_t::tobs, raw_t::tod, and trace().

Referenced by gen_strfile(), readbnxfp(), rtksvrstart(), and strconvnew().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_rt17()

int init_rt17 ( raw_t * raw)

Definition at line 542 of file mrtk_rcv_rt17.c.

References calloc, raw_t::format, free_rt17(), MBUFF_LENGTH, rt17_t::MessageBuffer, rt17_t::PacketBuffer, PBUFF_LENGTH, raw_t::rcv_data, STRFMT_RT17, and tracet().

Referenced by init_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_bnx()

int input_bnx ( raw_t * raw,
uint8_t data )

Definition at line 1555 of file mrtk_rcv_binex.c.

References raw_t::buff, decode_bnx(), getbnxi(), raw_t::len, raw_t::nbyte, sync_bnx(), and trace().

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_bnxf()

int input_bnxf ( raw_t * raw,
FILE * fp )

Definition at line 1599 of file mrtk_rcv_binex.c.

References raw_t::buff, decode_bnx(), getbnxi(), raw_t::len, raw_t::nbyte, sync_bnx(), and trace().

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_cres()

int input_cres ( raw_t * raw,
uint8_t data )

Definition at line 737 of file mrtk_rcv_crescent.c.

References raw_t::buff, decode_cres(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_cres(), trace(), and U2.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_cresf()

int input_cresf ( raw_t * raw,
FILE * fp )

Definition at line 771 of file mrtk_rcv_crescent.c.

References raw_t::buff, decode_cres(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_cres(), trace(), and U2.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_javad()

int input_javad ( raw_t * raw,
uint8_t data )

Definition at line 2323 of file mrtk_rcv_javad.c.

References raw_t::buff, clearbuff(), decode_javad(), decodelen(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_javad(), and trace().

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_javadf()

int input_javadf ( raw_t * raw,
FILE * fp )

Definition at line 2375 of file mrtk_rcv_javad.c.

References raw_t::buff, clearbuff(), decode_javad(), decodelen(), endfile(), raw_t::flag, raw_t::len, MAXRAWLEN, raw_t::nbyte, startfile(), sync_javad(), and trace().

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_nvs()

int input_nvs ( raw_t * raw,
uint8_t data )

Definition at line 572 of file mrtk_rcv_nvs.c.

References raw_t::buff, decode_nvs(), raw_t::flag, raw_t::len, MAXRAWLEN, raw_t::nbyte, NVSENDMSG, NVSSYNC, and trace().

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_nvsf()

int input_nvsf ( raw_t * raw,
FILE * fp )

Definition at line 618 of file mrtk_rcv_nvs.c.

References raw_t::buff, decode_nvs(), raw_t::len, MAXRAWLEN, raw_t::nbyte, NVSENDMSG, NVSSYNC, and trace().

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_oem3()

int input_oem3 ( raw_t * raw,
uint8_t data )

Definition at line 2067 of file mrtk_rcv_novatel.c.

References raw_t::buff, decode_oem3(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_oem3(), trace(), and U4.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_oem3f()

int input_oem3f ( raw_t * raw,
FILE * fp )

Definition at line 2141 of file mrtk_rcv_novatel.c.

References raw_t::buff, decode_oem3(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_oem3(), trace(), and U4.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_oem4()

int input_oem4 ( raw_t * raw,
uint8_t data )

Definition at line 2036 of file mrtk_rcv_novatel.c.

References raw_t::buff, decode_oem4(), raw_t::len, MAXRAWLEN, raw_t::nbyte, OEM4HLEN, sync_oem4(), trace(), and U2.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_oem4f()

int input_oem4f ( raw_t * raw,
FILE * fp )

Definition at line 2098 of file mrtk_rcv_novatel.c.

References raw_t::buff, decode_oem4(), raw_t::len, MAXRAWLEN, raw_t::nbyte, OEM4HLEN, sync_oem4(), trace(), and U2.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_raw()

int input_raw ( raw_t * raw,
rtcm_t * rtcm,
int format,
uint8_t data )

Input receiver raw data from stream (byte-by-byte).

Parameters
[in,out]rawReceiver raw data control struct
[in,out]rtcmRTCM control struct
[in]formatReceiver raw data format (STRFMT_???)
[in]dataStream data (1 byte)
Returns
Status (-1:error, 0:no message, 1:obs data, 2:ephemeris, 3:sbas message, 9:ion/utc parameter, 10:ssr message, or (UBX/SBF) CLAS L6 frame in rtcm->buff, 13:Galileo HAS page staged in raw->has_page/has_prn/has_time, 15:MADOCA-PPP L6E SSR decoded (UBX/SBF), 16:MADOCA-PPP iono L6 frame in rtcm->buff (UBX/SBF), 17:QZNMA L6 frame in rtcm->buff (UBX/SBF))

Definition at line 1852 of file mrtk_rcvraw.c.

References input_bnx(), input_cres(), input_javad(), input_nvs(), input_oem3(), input_oem4(), input_rt17(), input_sbf(), input_ss2(), input_stq(), input_ubx(), rtcm, STRFMT_BINEX, STRFMT_CRES, STRFMT_JAVAD, STRFMT_NVS, STRFMT_OEM3, STRFMT_OEM4, STRFMT_RT17, STRFMT_SEPT, STRFMT_SS2, STRFMT_STQ, STRFMT_UBX, and trace().

Referenced by decoderaw(), and strconv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_rawf()

int input_rawf ( raw_t * raw,
rtcm_t * rtcm,
int format,
FILE * fp )

Input receiver raw data from file.

Parameters
[in,out]rawReceiver raw data control struct
[in,out]rtcmRTCM control struct
[in]formatReceiver raw data format (STRFMT_???)
[in]fpFile pointer
Returns
Status (-2:end of file, -1...31:same as input_raw)

Definition at line 1889 of file mrtk_rcvraw.c.

References input_bnxf(), input_cresf(), input_javadf(), input_nvsf(), input_oem3f(), input_oem4f(), input_rt17f(), input_sbff(), input_ss2f(), input_stqf(), input_ubxf(), rtcm, STRFMT_BINEX, STRFMT_CRES, STRFMT_JAVAD, STRFMT_NVS, STRFMT_OEM3, STRFMT_OEM4, STRFMT_RT17, STRFMT_SEPT, STRFMT_SS2, STRFMT_STQ, STRFMT_UBX, and trace().

Referenced by input_strfile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_rt17()

int input_rt17 ( raw_t * raw,
uint8_t data )

Definition at line 588 of file mrtk_rcv_rt17.c.

References CheckPacketChecksum(), ClearMessageBuffer(), ClearPacketBuffer(), DecodeGSOF(), DecodeRawdata(), DecodeRetsvdata(), ETX, GENOUT, MBUFF_LENGTH, rt17_t::MessageBuffer, rt17_t::MessageBytes, rt17_t::MessageLength, raw_t::msgtype, raw_t::outtype, rt17_t::PacketBuffer, rt17_t::PacketBytes, rt17_t::PacketLength, rt17_t::Page, RAWDATA, raw_t::rcv_data, rt17_t::Reply, RETSVDATA, SyncPacket(), and tracet().

Referenced by input_raw(), and input_rt17f().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_rt17f()

int input_rt17f ( raw_t * raw,
FILE * fp )

Definition at line 783 of file mrtk_rcv_rt17.c.

References input_rt17().

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_sbf()

int input_sbf ( raw_t * raw,
rtcm_t * rtcm,
uint8_t data )

Definition at line 1678 of file mrtk_rcv_septentrio.c.

References raw_t::buff, decode_sbf(), raw_t::len, MAXRAWLEN, raw_t::nbyte, rtcm, sync_sbf(), trace(), and U2.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_sbff()

int input_sbff ( raw_t * raw,
rtcm_t * rtcm,
FILE * fp )

Definition at line 1713 of file mrtk_rcv_septentrio.c.

References raw_t::buff, decode_sbf(), raw_t::len, MAXRAWLEN, raw_t::nbyte, rtcm, sync_sbf(), trace(), and U2.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_ss2()

int input_ss2 ( raw_t * raw,
uint8_t data )

Definition at line 373 of file mrtk_rcv_ss2.c.

References raw_t::buff, decode_ss2(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_ss2(), trace(), and U1.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_ss2f()

int input_ss2f ( raw_t * raw,
FILE * fp )

Definition at line 407 of file mrtk_rcv_ss2.c.

References raw_t::buff, decode_ss2(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_ss2(), trace(), and U1.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_stq()

int input_stq ( raw_t * raw,
uint8_t data )

Definition at line 802 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_stq(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_stq(), trace(), and U2.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_stqf()

int input_stqf ( raw_t * raw,
FILE * fp )

Definition at line 836 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_stq(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_stq(), trace(), and U2.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_ubx()

int input_ubx ( raw_t * raw,
rtcm_t * rtcm,
uint8_t data )

Definition at line 1464 of file mrtk_rcv_ublox.c.

References raw_t::buff, decode_ubx(), raw_t::len, MAXRAWLEN, raw_t::nbyte, rtcm, sync_ubx(), trace(), and U2.

Referenced by input_raw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_ubxf()

int input_ubxf ( raw_t * raw,
rtcm_t * rtcm,
FILE * fp )

Definition at line 1499 of file mrtk_rcv_ublox.c.

References raw_t::buff, decode_ubx(), raw_t::len, MAXRAWLEN, raw_t::nbyte, rtcm, sync_ubx(), trace(), and U2.

Referenced by input_rawf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readbnxt()

int readbnxt ( const char * file,
int rcv,
gtime_t ts,
gtime_t te,
double tint,
const char * opt,
obs_t * obs,
nav_t * nav,
sta_t * sta,
const prcopt_t * popt )

Read BINEX observation/navigation data from file(s).

Parameters
[in]fileFile path (supports wildcards)
[in]rcvReceiver number (1:rover, 2:base)
[in]tsStart time (ts.time==0: no limit)
[in]teEnd time (te.time==0: no limit)
[in]tintTime interval (0: all)
[in]optRINEX options string
[in,out]obsObservation data
[in,out]navNavigation data
[in,out]staStation information (NULL: not output)
[in]poptProcessing options (for navsys filtering)
Returns
Status (-1:error, 0:no data, 1:ok)

Definition at line 1908 of file mrtk_rcv_binex.c.

References expath(), FILEPATHSEP, free, malloc, MAXEXFILE, sta_t::name, readbnxfile(), readbnxfp(), setstr_bnx(), and trace().

Referenced by readobsnav().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_glostr()

int test_glostr ( const uint8_t * buff)

Definition at line 1046 of file mrtk_rcvraw.c.

Referenced by decode_gnav().

Here is the caller graph for this function: