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

MRTKLIB Foundation — Common types, standard includes, and system constants (MAXSAT, NFREQ, MAXOBS, observation codes, etc.). More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <pthread.h>
Include dependency graph for mrtk_foundation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NFREQGLO   2 /* number of carrier frequencies of GLONASS */
#define NFREQPCV   12 /* number of carrier frequencies for pcv_t */
#define SNR_UNIT   0.001 /* SNR unit (dBHz) */
#define MINPRNGPS   1 /* min satellite PRN number of GPS */
#define MAXPRNGPS   32 /* max satellite PRN number of GPS */
#define NSATGPS   (MAXPRNGPS - MINPRNGPS + 1) /* number of GPS satellites */
#define NSYSGPS   1
#define MINPRNGLO   1 /* min satellite slot number of GLONASS */
#define MAXPRNGLO   27 /* max satellite slot number of GLONASS */
#define NSATGLO   (MAXPRNGLO - MINPRNGLO + 1) /* number of GLONASS satellites */
#define NSYSGLO   1
#define MINPRNGAL   1 /* min satellite PRN number of Galileo */
#define MAXPRNGAL   36 /* max satellite PRN number of Galileo */
#define NSATGAL   (MAXPRNGAL - MINPRNGAL + 1) /* number of Galileo satellites */
#define NSYSGAL   1
#define MINPRNQZS   193 /* min satellite PRN number of QZSS */
#define MAXPRNQZS   202 /* max satellite PRN number of QZSS */
#define MINPRNQZS_S   183 /* min satellite PRN number of QZSS L1S */
#define MAXPRNQZS_S   191 /* max satellite PRN number of QZSS L1S */
#define NSATQZS   (MAXPRNQZS - MINPRNQZS + 1) /* number of QZSS satellites */
#define NSYSQZS   1
#define MINPRNCMP   1 /* min satellite sat number of BeiDou */
#define MAXPRNCMP   63 /* max satellite sat number of BeiDou */
#define NSATCMP   (MAXPRNCMP - MINPRNCMP + 1) /* number of BeiDou satellites */
#define NSYSCMP   1
#define MINPRNBDS3   19 /* min satellite sat number of BeiDou-3 */
#define MINPRNIRN   1 /* min satellite sat number of IRNSS */
#define MAXPRNIRN   14 /* max satellite sat number of IRNSS */
#define NSATIRN   (MAXPRNIRN - MINPRNIRN + 1) /* number of IRNSS satellites */
#define NSYSIRN   1
#define MINPRNLEO   0
#define MAXPRNLEO   0
#define NSATLEO   0
#define NSYSLEO   0
#define NSYS   (NSYSGPS + NSYSGLO + NSYSGAL + NSYSQZS + NSYSCMP + NSYSIRN + NSYSLEO) /* number of systems */
#define MINPRNSBS   120 /* min satellite PRN number of SBAS */
#define MAXPRNSBS   158 /* max satellite PRN number of SBAS */
#define NSATSBS   (MAXPRNSBS - MINPRNSBS + 1) /* number of SBAS satellites */
#define MAXSAT   (NSATGPS + NSATGLO + NSATGAL + NSATQZS + NSATCMP + NSATIRN + NSATSBS + NSATLEO)
#define MAXSTA   255
#define MAXOBS   96 /* max number of obs in an epoch */
#define MAXRCV   64 /* max receiver number (1 to MAXRCV) */
#define MAXOBSTYPE   64 /* max number of obs type in RINEX */
#define DTTOL   0.025 /* tolerance of time difference (s) */
#define MAXEXFILE   1024 /* max number of expanded files */
#define SSR_CH_NUM   2 /* number of SSR input channels */
#define MAXBAND   10 /* max SBAS band of IGP */
#define MAXNIGP   201 /* max number of IGP in SBAS band */
#define MAXNGEO   4 /* max number of GEO satellites */
#define MAXCOMMENT   100 /* max number of RINEX comments */
#define MAXSTRPATH   1024 /* max length of stream path */
#define MAXSTRMSG   1024 /* max length of stream message */
#define MAXSTRRTK   8 /* max number of stream in RTK server */
#define MAXSBSMSG   32 /* max number of SBAS msg in RTK server */
#define MAXSOLMSG   8191 /* max length of solution message */
#define MAXRAWLEN   16384 /* max length of receiver raw message */
#define MAXERRMSG   4096 /* max length of error/warning message */
#define MAXANT   64 /* max length of station name/antenna type */
#define MAXSOLBUF   256 /* max number of solution buffer */
#define MAXOBSBUF   128 /* max number of observation data buffer */
#define MAXNRPOS   16 /* max number of reference positions */
#define MAXLEAPS   64 /* max number of leap seconds table */
#define MAXGISLAYER   32 /* max number of GIS data layers */
#define MAXRCVCMD   4096 /* max length of receiver commands */
#define CODE_NONE   0 /* obs code: none or unknown */
#define CODE_L1C   1 /* obs code: L1C/A,G1C/A,E1C (GPS,GLO,GAL,QZS,SBS) */
#define CODE_L1P   2 /* obs code: L1P,G1P,B1C(P) (GPS,GLO,BDS) */
#define CODE_L1W   3 /* obs code: L1 Z-track (GPS) */
#define CODE_L1Y   4 /* obs code: L1Y (GPS) */
#define CODE_L1M   5 /* obs code: L1M (GPS) */
#define CODE_L1N   6 /* obs code: L1codeless,B1codeless (GPS,BDS) */
#define CODE_L1S   7 /* obs code: L1C(D),B1A(D) (GPS,QZS,BDS) */
#define CODE_L1L   8 /* obs code: L1C(P),B1A(P) (GPS,QZS,BDS) */
#define CODE_L1E   9 /* (not used) */
#define CODE_L1A   10 /* obs code: E1A (GAL) */
#define CODE_L1B   11 /* obs code: E1B,L1Sb (GAL,QZS) */
#define CODE_L1X   12 /* obs code: E1B+C,L1C(D+P),B1C(D+P) (GAL,QZS,BDS) */
#define CODE_L1Z   13 /* obs code: E1A+B+C,L1S,B1A(D+P) (GAL,QZS,BDS) */
#define CODE_L2C   14 /* obs code: L2C/A,G1C/A (GPS,GLO) */
#define CODE_L2D   15 /* obs code: L2 L1C/A-(P2-P1) (GPS) */
#define CODE_L2S   16 /* obs code: L2C(M) (GPS,QZS) */
#define CODE_L2L   17 /* obs code: L2C(L) (GPS,QZS) */
#define CODE_L2X   18 /* obs code: L2C(M+L),B1_2I+Q (GPS,QZS,BDS) */
#define CODE_L2P   19 /* obs code: L2P,G2P (GPS,GLO) */
#define CODE_L2W   20 /* obs code: L2 Z-track (GPS) */
#define CODE_L2Y   21 /* obs code: L2Y (GPS) */
#define CODE_L2M   22 /* obs code: L2M (GPS) */
#define CODE_L2N   23 /* obs code: L2codeless (GPS) */
#define CODE_L5I   24 /* obs code: L5I,E5aI (GPS,GAL,QZS,SBS) */
#define CODE_L5Q   25 /* obs code: L5Q,E5aQ (GPS,GAL,QZS,SBS) */
#define CODE_L5X   26 /* obs code: L5I+Q,E5aI+Q,L5B+C,B2aD+P (GPS,GAL,QZS,IRN,SBS,BDS) */
#define CODE_L7I   27 /* obs code: E5bI,B2bI (GAL,BDS) */
#define CODE_L7Q   28 /* obs code: E5bQ,B2bQ (GAL,BDS) */
#define CODE_L7X   29 /* obs code: E5bI+Q,B2bI+Q (GAL,BDS) */
#define CODE_L6A   30 /* obs code: E6A,B3A (GAL,BDS) */
#define CODE_L6B   31 /* obs code: E6B (GAL) */
#define CODE_L6C   32 /* obs code: E6C (GAL) */
#define CODE_L6X   33 /* obs code: E6B+C,L6(D+P),B3I+Q (GAL,QZS,BDS) */
#define CODE_L6Z   34 /* obs code: E6A+B+C,L6(D+E),B3A(D+P) (GAL,QZS,BDS) */
#define CODE_L6S   35 /* obs code: L6D (QZS) */
#define CODE_L6L   36 /* obs code: L6P (QZS) */
#define CODE_L8I   37 /* obs code: E5abI (GAL) */
#define CODE_L8Q   38 /* obs code: E5abQ (GAL) */
#define CODE_L8X   39 /* obs code: E5abI+Q,B2abD+P (GAL,BDS) */
#define CODE_L2I   40 /* obs code: B1_2I (BDS) */
#define CODE_L2Q   41 /* obs code: B1_2Q (BDS) */
#define CODE_L6I   42 /* obs code: B3I (BDS) */
#define CODE_L6Q   43 /* obs code: B3Q (BDS) */
#define CODE_L3I   44 /* obs code: G3I (GLO) */
#define CODE_L3Q   45 /* obs code: G3Q (GLO) */
#define CODE_L3X   46 /* obs code: G3I+Q (GLO) */
#define CODE_L1I   47 /* obs code: B1I (BDS) (obsolute) */
#define CODE_L1Q   48 /* obs code: B1Q (BDS) (obsolute) */
#define CODE_L5A   49 /* obs code: L5A SPS (IRN) */
#define CODE_L5B   50 /* obs code: L5B RS(D) (IRN) */
#define CODE_L5C   51 /* obs code: L5C RS(P) (IRN) */
#define CODE_L9A   52 /* obs code: SA SPS (IRN) */
#define CODE_L9B   53 /* obs code: SB RS(D) (IRN) */
#define CODE_L9C   54 /* obs code: SC RS(P) (IRN) */
#define CODE_L9X   55 /* obs code: SB+C (IRN) */
#define CODE_L1D   56 /* obs code: B1D (BDS) */
#define CODE_L5D   57 /* obs code: L5S(I),B2aD (QZS,BDS) */
#define CODE_L5P   58 /* obs code: L5S(Q),B2aP (QZS,BDS) */
#define CODE_L5Z   59 /* obs code: L5S(I+Q) (QZS) */
#define CODE_L6E   60 /* obs code: L6E (QZS) */
#define CODE_L7D   61 /* obs code: B2bD (BDS) */
#define CODE_L7P   62 /* obs code: B2bP (BDS) */
#define CODE_L7Z   63 /* obs code: B2bD+P (BDS) */
#define CODE_L8D   64 /* obs code: B2abD (BDS) */
#define CODE_L8P   65 /* obs code: B2abP (BDS) */
#define CODE_L4A   66 /* obs code: G1aL1OCd (GLO) */
#define CODE_L4B   67 /* obs code: G1aL1OCd (GLO) */
#define CODE_L4X   68 /* obs code: G1al1OCd+p (GLO) */
#define CODE_L6D   69 /* obs code: B3A(D) (BDS) */
#define CODE_L6P   70 /* obs code: B3A(P) (BDS) */
#define MAXCODE   70 /* max number of obs code */
#define MAXBSNXSYS   7 /* BIAS-SINEX Supported GNSS(G,R,E,J,C,I,S) */
#define MAXSITES   256 /* max number of stat input streams */
#define MAXBLK   32 /* max number of block */
#define MAXTRPSTA   512 /* max number of tropospheric station blocks */
#define MAXIONSTA   256 /* max number of ionospheric station blocks */
#define MAX_REJ_SITES   5 /* max number of reject sites */
#define MIONO_MAX_RID   256 /* max region id (IS-QZSS-MDC-002 Table 6.3.2-4) */
#define MIONO_MAX_ANUM   32 /* max area number (Table 6.3.2-4) */
#define MIONO_MAX_PRN   (2 + 1) /* max MADOCA-PPP L6D signal (Table 3-1) + 1 reserved */
#define rtk_thread_t   pthread_t
#define rtk_lock_t   pthread_mutex_t
#define rtk_initlock(f)
#define rtk_lock(f)
#define rtk_unlock(f)
#define FILEPATHSEP   '/'

Enumerations

enum  mrtk_band_t {
  MRTK_BAND_UNKNOWN = 0 , MRTK_BAND_GPS_L1 , MRTK_BAND_GPS_L2 , MRTK_BAND_GPS_L5 ,
  MRTK_BAND_GLO_G1 , MRTK_BAND_GLO_G2 , MRTK_BAND_GLO_G3 , MRTK_BAND_GAL_E1 ,
  MRTK_BAND_GAL_E5a , MRTK_BAND_GAL_E5b , MRTK_BAND_GAL_E6 , MRTK_BAND_GAL_E5ab ,
  MRTK_BAND_QZS_L1 , MRTK_BAND_QZS_L2 , MRTK_BAND_QZS_L5 , MRTK_BAND_QZS_L6 ,
  MRTK_BAND_SBS_L1 , MRTK_BAND_SBS_L5 , MRTK_BAND_BDS_B1I , MRTK_BAND_BDS_B1C ,
  MRTK_BAND_BDS_B2a , MRTK_BAND_BDS_B2b , MRTK_BAND_BDS_B2ab , MRTK_BAND_BDS_B3 ,
  MRTK_BAND_IRN_L5 , MRTK_BAND_IRN_S , MRTK_BAND_MAX
}

Detailed Description

MRTKLIB Foundation — Common types, standard includes, and system constants (MAXSAT, NFREQ, MAXOBS, observation codes, etc.).

Every public mrtk_*.h header includes this file so that downstream users get a consistent set of base types and array-size constants.

Note
Constellation satellite counts (MAXSAT) depend on compile-time flags (ENAGLO, ENAGAL, ENAQZS, ENACMP, ENAIRN). These flags are set via target_compile_definitions on the mrtklib CMake target and propagate to rtklib through PUBLIC link dependency.

Definition in file mrtk_foundation.h.

Macro Definition Documentation

◆ CODE_L1A

#define CODE_L1A   10 /* obs code: E1A (GAL) */

Definition at line 195 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L1B

#define CODE_L1B   11 /* obs code: E1B,L1Sb (GAL,QZS) */

◆ CODE_L1C

◆ CODE_L1D

#define CODE_L1D   56 /* obs code: B1D (BDS) */

Definition at line 241 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), mcssr_sel_biascode(), and outrnx_phase_shift().

◆ CODE_L1E

#define CODE_L1E   9 /* (not used) */

Definition at line 194 of file mrtk_foundation.h.

Referenced by mcssr_sel_biascode().

◆ CODE_L1I

#define CODE_L1I   47 /* obs code: B1I (BDS) (obsolute) */

Definition at line 232 of file mrtk_foundation.h.

◆ CODE_L1L

#define CODE_L1L   8 /* obs code: L1C(P),B1A(P) (GPS,QZS,BDS) */

◆ CODE_L1M

#define CODE_L1M   5 /* obs code: L1M (GPS) */

Definition at line 190 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and to_sigid().

◆ CODE_L1N

#define CODE_L1N   6 /* obs code: L1codeless,B1codeless (GPS,BDS) */

◆ CODE_L1P

◆ CODE_L1Q

#define CODE_L1Q   48 /* obs code: B1Q (BDS) (obsolute) */

Definition at line 233 of file mrtk_foundation.h.

◆ CODE_L1S

#define CODE_L1S   7 /* obs code: L1C(D),B1A(D) (GPS,QZS,BDS) */

◆ CODE_L1W

#define CODE_L1W   3 /* obs code: L1 Z-track (GPS) */

◆ CODE_L1X

#define CODE_L1X   12 /* obs code: E1B+C,L1C(D+P),B1C(D+P) (GAL,QZS,BDS) */

◆ CODE_L1Y

#define CODE_L1Y   4 /* obs code: L1Y (GPS) */

Definition at line 189 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), obsindex(), to_code1_gps(), and to_sigid().

◆ CODE_L1Z

#define CODE_L1Z   13 /* obs code: E1A+B+C,L1S,B1A(D+P) (GAL,QZS,BDS) */

◆ CODE_L2C

◆ CODE_L2D

#define CODE_L2D   15 /* obs code: L2 L1C/A-(P2-P1) (GPS) */

◆ CODE_L2I

◆ CODE_L2L

#define CODE_L2L   17 /* obs code: L2C(L) (GPS,QZS) */

◆ CODE_L2M

#define CODE_L2M   22 /* obs code: L2M (GPS) */

Definition at line 207 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and to_sigid().

◆ CODE_L2N

#define CODE_L2N   23 /* obs code: L2codeless (GPS) */

Definition at line 208 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), obsindex(), to_code2_gps(), and to_sigid().

◆ CODE_L2P

◆ CODE_L2Q

#define CODE_L2Q   41 /* obs code: B1_2Q (BDS) */

Definition at line 226 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), mcssr_sel_biascode(), obsindex(), and sigmask2sig().

◆ CODE_L2S

◆ CODE_L2W

◆ CODE_L2X

◆ CODE_L2Y

#define CODE_L2Y   21 /* obs code: L2Y (GPS) */

Definition at line 206 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), obsindex(), to_code2_gps(), and to_sigid().

◆ CODE_L3I

#define CODE_L3I   44 /* obs code: G3I (GLO) */

Definition at line 229 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), outrnx_phase_shift(), and sigmask2sig().

◆ CODE_L3Q

#define CODE_L3Q   45 /* obs code: G3Q (GLO) */

Definition at line 230 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), setopt_phshift(), sig2code(), and sigmask2sig().

◆ CODE_L3X

#define CODE_L3X   46 /* obs code: G3I+Q (GLO) */

Definition at line 231 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), decode_stqrawx(), sig2idx(), and sigmask2sig().

◆ CODE_L4A

#define CODE_L4A   66 /* obs code: G1aL1OCd (GLO) */

Definition at line 251 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and outrnx_phase_shift().

◆ CODE_L4B

#define CODE_L4B   67 /* obs code: G1aL1OCd (GLO) */

Definition at line 252 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L4X

#define CODE_L4X   68 /* obs code: G1al1OCd+p (GLO) */

Definition at line 253 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L5A

#define CODE_L5A   49 /* obs code: L5A SPS (IRN) */

Definition at line 234 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), outrnx_phase_shift(), and sig2code().

◆ CODE_L5B

#define CODE_L5B   50 /* obs code: L5B RS(D) (IRN) */

Definition at line 235 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L5C

#define CODE_L5C   51 /* obs code: L5C RS(P) (IRN) */

Definition at line 236 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L5D

#define CODE_L5D   57 /* obs code: L5S(I),B2aD (QZS,BDS) */

Definition at line 242 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), mcssr_sel_biascode(), and outrnx_phase_shift().

◆ CODE_L5I

#define CODE_L5I   24 /* obs code: L5I,E5aI (GPS,GAL,QZS,SBS) */

◆ CODE_L5P

#define CODE_L5P   58 /* obs code: L5S(Q),B2aP (QZS,BDS) */

◆ CODE_L5Q

#define CODE_L5Q   25 /* obs code: L5Q,E5aQ (GPS,GAL,QZS,SBS) */

◆ CODE_L5X

#define CODE_L5X   26 /* obs code: L5I+Q,E5aI+Q,L5B+C,B2aD+P (GPS,GAL,QZS,IRN,SBS,BDS) */

◆ CODE_L5Z

#define CODE_L5Z   59 /* obs code: L5S(I+Q) (QZS) */

Definition at line 244 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L6A

#define CODE_L6A   30 /* obs code: E6A,B3A (GAL,BDS) */

Definition at line 215 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and outrnx_phase_shift().

◆ CODE_L6B

#define CODE_L6B   31 /* obs code: E6B (GAL) */

◆ CODE_L6C

#define CODE_L6C   32 /* obs code: E6C (GAL) */

◆ CODE_L6D

#define CODE_L6D   69 /* obs code: B3A(D) (BDS) */

Definition at line 254 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L6E

#define CODE_L6E   60 /* obs code: L6E (QZS) */

Definition at line 245 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L6I

◆ CODE_L6L

#define CODE_L6L   36 /* obs code: L6P (QZS) */

Definition at line 221 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and sig2code().

◆ CODE_L6P

#define CODE_L6P   70 /* obs code: B3A(P) (BDS) */

Definition at line 255 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L6Q

#define CODE_L6Q   43 /* obs code: B3Q (BDS) */

◆ CODE_L6S

#define CODE_L6S   35 /* obs code: L6D (QZS) */

Definition at line 220 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and outrnx_phase_shift().

◆ CODE_L6X

#define CODE_L6X   33 /* obs code: E6B+C,L6(D+P),B3I+Q (GAL,QZS,BDS) */

◆ CODE_L6Z

#define CODE_L6Z   34 /* obs code: E6A+B+C,L6(D+E),B3A(D+P) (GAL,QZS,BDS) */

Definition at line 219 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L7D

#define CODE_L7D   61 /* obs code: B2bD (BDS) */

◆ CODE_L7I

◆ CODE_L7P

#define CODE_L7P   62 /* obs code: B2bP (BDS) */

Definition at line 247 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and setopt_phshift().

◆ CODE_L7Q

#define CODE_L7Q   28 /* obs code: E5bQ,B2bQ (GAL,BDS) */

◆ CODE_L7X

#define CODE_L7X   29 /* obs code: E5bI+Q,B2bI+Q (GAL,BDS) */

◆ CODE_L7Z

#define CODE_L7Z   63 /* obs code: B2bD+P (BDS) */

Definition at line 248 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L8D

#define CODE_L8D   64 /* obs code: B2abD (BDS) */

Definition at line 249 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and outrnx_phase_shift().

◆ CODE_L8I

#define CODE_L8I   37 /* obs code: E5abI (GAL) */

◆ CODE_L8P

#define CODE_L8P   65 /* obs code: B2abP (BDS) */

Definition at line 250 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L8Q

#define CODE_L8Q   38 /* obs code: E5abQ (GAL) */

◆ CODE_L8X

#define CODE_L8X   39 /* obs code: E5abI+Q,B2abD+P (GAL,BDS) */

◆ CODE_L9A

#define CODE_L9A   52 /* obs code: SA SPS (IRN) */

Definition at line 237 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs(), and outrnx_phase_shift().

◆ CODE_L9B

#define CODE_L9B   53 /* obs code: SB RS(D) (IRN) */

Definition at line 238 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L9C

#define CODE_L9C   54 /* obs code: SC RS(P) (IRN) */

Definition at line 239 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_L9X

#define CODE_L9X   55 /* obs code: SB+C (IRN) */

Definition at line 240 of file mrtk_foundation.h.

Referenced by decode_bnx_7f_05_obs().

◆ CODE_NONE

◆ DTTOL

◆ FILEPATHSEP

#define FILEPATHSEP   '/'

Definition at line 333 of file mrtk_foundation.h.

◆ MAX_REJ_SITES

#define MAX_REJ_SITES   5 /* max number of reject sites */

Definition at line 313 of file mrtk_foundation.h.

◆ MAXANT

#define MAXANT   64 /* max length of station name/antenna type */

Definition at line 173 of file mrtk_foundation.h.

Referenced by decode_bnx_00(), and searchpcv().

◆ MAXBAND

#define MAXBAND   10 /* max SBAS band of IGP */

Definition at line 162 of file mrtk_foundation.h.

Referenced by decode_sbstype26(), and searchigp().

◆ MAXBLK

#define MAXBLK   32 /* max number of block */

Definition at line 310 of file mrtk_foundation.h.

◆ MAXBSNXSYS

#define MAXBSNXSYS   7 /* BIAS-SINEX Supported GNSS(G,R,E,J,C,I,S) */

Definition at line 307 of file mrtk_foundation.h.

Referenced by freebiass(), getsysno(), outbsnxsol(), readbsnx(), udosb_station(), and udstacb().

◆ MAXCODE

◆ MAXCOMMENT

#define MAXCOMMENT   100 /* max number of RINEX comments */

◆ MAXERRMSG

#define MAXERRMSG   4096 /* max length of error/warning message */

Definition at line 172 of file mrtk_foundation.h.

Referenced by errmsg(), errmsg(), and rtkinit().

◆ MAXEXFILE

#define MAXEXFILE   1024 /* max number of expanded files */

◆ MAXGISLAYER

#define MAXGISLAYER   32 /* max number of GIS data layers */

Definition at line 178 of file mrtk_foundation.h.

◆ MAXIONSTA

#define MAXIONSTA   256 /* max number of ionospheric station blocks */

Definition at line 312 of file mrtk_foundation.h.

Referenced by encode_lcliono().

◆ MAXLEAPS

#define MAXLEAPS   64 /* max number of leap seconds table */

Definition at line 177 of file mrtk_foundation.h.

◆ MAXNGEO

#define MAXNGEO   4 /* max number of GEO satellites */

Definition at line 164 of file mrtk_foundation.h.

◆ MAXNIGP

#define MAXNIGP   201 /* max number of IGP in SBAS band */

Definition at line 163 of file mrtk_foundation.h.

◆ MAXNRPOS

#define MAXNRPOS   16 /* max number of reference positions */

Definition at line 176 of file mrtk_foundation.h.

◆ MAXOBS

#define MAXOBS   96 /* max number of obs in an epoch */

◆ MAXOBSBUF

#define MAXOBSBUF   128 /* max number of observation data buffer */

Definition at line 175 of file mrtk_foundation.h.

Referenced by decoderaw(), rtksvrfree(), rtksvrinit(), rtksvrstart(), and update_obs().

◆ MAXOBSTYPE

#define MAXOBSTYPE   64 /* max number of obs type in RINEX */

◆ MAXPRNCMP

#define MAXPRNCMP   63 /* max satellite sat number of BeiDou */

◆ MAXPRNGAL

#define MAXPRNGAL   36 /* max satellite PRN number of Galileo */

Definition at line 78 of file mrtk_foundation.h.

Referenced by nextsat(), and satno().

◆ MAXPRNGLO

#define MAXPRNGLO   27 /* max satellite slot number of GLONASS */

◆ MAXPRNGPS

#define MAXPRNGPS   32 /* max satellite PRN number of GPS */

Definition at line 61 of file mrtk_foundation.h.

◆ MAXPRNIRN

#define MAXPRNIRN   14 /* max satellite sat number of IRNSS */

Definition at line 116 of file mrtk_foundation.h.

Referenced by nextsat(), and satno().

◆ MAXPRNLEO

#define MAXPRNLEO   0

Definition at line 132 of file mrtk_foundation.h.

Referenced by satno().

◆ MAXPRNQZS

#define MAXPRNQZS   202 /* max satellite PRN number of QZSS */

Definition at line 89 of file mrtk_foundation.h.

Referenced by decode_stqgps(), decode_stqraw(), decode_WD(), nextsat(), satid2no(), and satno().

◆ MAXPRNQZS_S

#define MAXPRNQZS_S   191 /* max satellite PRN number of QZSS L1S */

Definition at line 91 of file mrtk_foundation.h.

Referenced by convsbs(), decode_rangeb(), decode_rangecmpb(), and decode_rawwaasframeb().

◆ MAXPRNSBS

#define MAXPRNSBS   158 /* max satellite PRN number of SBAS */

Definition at line 139 of file mrtk_foundation.h.

◆ MAXRAWLEN

◆ MAXRCV

#define MAXRCV   64 /* max receiver number (1 to MAXRCV) */

Definition at line 153 of file mrtk_foundation.h.

Referenced by execses(), readdcbf(), and readrnxobs().

◆ MAXRCVCMD

#define MAXRCVCMD   4096 /* max length of receiver commands */

Definition at line 179 of file mrtk_foundation.h.

◆ MAXSAT

#define MAXSAT   (NSATGPS + NSATGLO + NSATGAL + NSATQZS + NSATCMP + NSATIRN + NSATSBS + NSATLEO)

Definition at line 142 of file mrtk_foundation.h.

◆ MAXSBSMSG

#define MAXSBSMSG   32 /* max number of SBAS msg in RTK server */

Definition at line 169 of file mrtk_foundation.h.

Referenced by update_sbs().

◆ MAXSITES

#define MAXSITES   256 /* max number of stat input streams */

◆ MAXSOLBUF

#define MAXSOLBUF   256 /* max number of solution buffer */

Definition at line 174 of file mrtk_foundation.h.

Referenced by rtksvrinit(), and writesol().

◆ MAXSOLMSG

#define MAXSOLMSG   8191 /* max length of solution message */

◆ MAXSTA

#define MAXSTA   255

Definition at line 144 of file mrtk_foundation.h.

Referenced by freebiass(), and readbsnx().

◆ MAXSTRMSG

#define MAXSTRMSG   1024 /* max length of stream message */

Definition at line 167 of file mrtk_foundation.h.

Referenced by closentrip(), rtksvrsstat(), strstat(), and strsvrstat().

◆ MAXSTRPATH

#define MAXSTRPATH   1024 /* max length of stream path */

◆ MAXSTRRTK

#define MAXSTRRTK   8 /* max number of stream in RTK server */

Definition at line 168 of file mrtk_foundation.h.

Referenced by rtksvrinit(), rtksvrsstat(), rtksvrstart(), and rtksvrthread().

◆ MAXTRPSTA

#define MAXTRPSTA   512 /* max number of tropospheric station blocks */

Definition at line 311 of file mrtk_foundation.h.

Referenced by encode_lcltrop().

◆ MINPRNBDS3

#define MINPRNBDS3   19 /* min satellite sat number of BeiDou-3 */

Definition at line 107 of file mrtk_foundation.h.

Referenced by bds_gen(), satno(), and set_bds2prn().

◆ MINPRNCMP

#define MINPRNCMP   1 /* min satellite sat number of BeiDou */

◆ MINPRNGAL

#define MINPRNGAL   1 /* min satellite PRN number of Galileo */

◆ MINPRNGLO

#define MINPRNGLO   1 /* min satellite slot number of GLONASS */

◆ MINPRNGPS

#define MINPRNGPS   1 /* min satellite PRN number of GPS */

Definition at line 60 of file mrtk_foundation.h.

◆ MINPRNIRN

#define MINPRNIRN   1 /* min satellite sat number of IRNSS */

Definition at line 115 of file mrtk_foundation.h.

Referenced by nextsat(), sat2code(), satid2no(), satno(), satno2id(), and satsys().

◆ MINPRNLEO

#define MINPRNLEO   0

Definition at line 131 of file mrtk_foundation.h.

Referenced by satid2no(), satno(), satno2id(), and satsys().

◆ MINPRNQZS

#define MINPRNQZS   193 /* min satellite PRN number of QZSS */

◆ MINPRNQZS_S

#define MINPRNQZS_S   183 /* min satellite PRN number of QZSS L1S */

Definition at line 90 of file mrtk_foundation.h.

Referenced by convsbs(), decode_rangeb(), and decode_rangecmpb().

◆ MINPRNSBS

#define MINPRNSBS   120 /* min satellite PRN number of SBAS */

Definition at line 138 of file mrtk_foundation.h.

◆ MIONO_MAX_ANUM

#define MIONO_MAX_ANUM   32 /* max area number (Table 6.3.2-4) */

Definition at line 320 of file mrtk_foundation.h.

Referenced by decoderaw(), init_mdcl6d(), miono_sel_area(), and update_qzssl6d().

◆ MIONO_MAX_PRN

#define MIONO_MAX_PRN   (2 + 1) /* max MADOCA-PPP L6D signal (Table 3-1) + 1 reserved */

◆ MIONO_MAX_RID

#define MIONO_MAX_RID   256 /* max region id (IS-QZSS-MDC-002 Table 6.3.2-4) */

Definition at line 319 of file mrtk_foundation.h.

Referenced by miono_sel_area().

◆ NFREQGLO

#define NFREQGLO   2 /* number of carrier frequencies of GLONASS */

Definition at line 47 of file mrtk_foundation.h.

Referenced by ddres(), gloicbcorr(), udrcvbias(), and udrcvbias().

◆ NFREQPCV

#define NFREQPCV   12 /* number of carrier frequencies for pcv_t */

◆ NSATCMP

#define NSATCMP   (MAXPRNCMP - MINPRNCMP + 1) /* number of BeiDou satellites */

Definition at line 105 of file mrtk_foundation.h.

Referenced by decode_lcliono(), encode_lcliono(), satno(), and satsys().

◆ NSATGAL

#define NSATGAL   (MAXPRNGAL - MINPRNGAL + 1) /* number of Galileo satellites */

Definition at line 79 of file mrtk_foundation.h.

Referenced by decode_lcliono(), encode_lcliono(), satno(), and satsys().

◆ NSATGLO

#define NSATGLO   (MAXPRNGLO - MINPRNGLO + 1) /* number of GLONASS satellites */

◆ NSATGPS

#define NSATGPS   (MAXPRNGPS - MINPRNGPS + 1) /* number of GPS satellites */

Definition at line 62 of file mrtk_foundation.h.

Referenced by decode_lcliono(), encode_lcliono(), satno(), and satsys().

◆ NSATIRN

#define NSATIRN   (MAXPRNIRN - MINPRNIRN + 1) /* number of IRNSS satellites */

Definition at line 117 of file mrtk_foundation.h.

Referenced by satno(), and satsys().

◆ NSATLEO

#define NSATLEO   0

Definition at line 133 of file mrtk_foundation.h.

Referenced by satno(), and satsys().

◆ NSATQZS

#define NSATQZS   (MAXPRNQZS - MINPRNQZS + 1) /* number of QZSS satellites */

Definition at line 92 of file mrtk_foundation.h.

Referenced by decode_lcliono(), encode_lcliono(), satno(), and satsys().

◆ NSATSBS

#define NSATSBS   (MAXPRNSBS - MINPRNSBS + 1) /* number of SBAS satellites */

◆ NSYS

#define NSYS   (NSYSGPS + NSYSGLO + NSYSGAL + NSYSQZS + NSYSCMP + NSYSIRN + NSYSLEO) /* number of systems */

Definition at line 136 of file mrtk_foundation.h.

Referenced by const_iono_corr(), and setisb().

◆ NSYSCMP

#define NSYSCMP   1

Definition at line 106 of file mrtk_foundation.h.

Referenced by sys2isbidx().

◆ NSYSGAL

#define NSYSGAL   1

Definition at line 80 of file mrtk_foundation.h.

Referenced by sys2isbidx().

◆ NSYSGLO

#define NSYSGLO   1

Definition at line 69 of file mrtk_foundation.h.

Referenced by sys2isbidx().

◆ NSYSGPS

#define NSYSGPS   1

Definition at line 63 of file mrtk_foundation.h.

Referenced by sys2isbidx().

◆ NSYSIRN

#define NSYSIRN   1

Definition at line 118 of file mrtk_foundation.h.

◆ NSYSLEO

#define NSYSLEO   0

Definition at line 134 of file mrtk_foundation.h.

◆ NSYSQZS

#define NSYSQZS   1

Definition at line 93 of file mrtk_foundation.h.

Referenced by sys2isbidx().

◆ rtk_initlock

#define rtk_initlock ( f)
Value:
pthread_mutex_init(f, NULL)

Definition at line 330 of file mrtk_foundation.h.

Referenced by openfile(), openmembuf(), rtksvrinit(), strinit(), and strsvrinit().

◆ rtk_lock

#define rtk_lock ( f)
Value:
pthread_mutex_lock(f)

Definition at line 331 of file mrtk_foundation.h.

Referenced by readmembuf(), rtksvrlock(), strlock(), strsvrpeek(), strsvrthread(), and writemembuf().

◆ rtk_lock_t

#define rtk_lock_t   pthread_mutex_t

Definition at line 329 of file mrtk_foundation.h.

◆ rtk_thread_t

#define rtk_thread_t   pthread_t

Definition at line 328 of file mrtk_foundation.h.

◆ rtk_unlock

#define rtk_unlock ( f)
Value:
pthread_mutex_unlock(f)

Definition at line 332 of file mrtk_foundation.h.

Referenced by readmembuf(), rtksvrunlock(), strsvrpeek(), strsvrthread(), strunlock(), and writemembuf().

◆ SNR_UNIT

◆ SSR_CH_NUM

#define SSR_CH_NUM   2 /* number of SSR input channels */

Enumeration Type Documentation

◆ mrtk_band_t

Enumerator
MRTK_BAND_UNKNOWN 
MRTK_BAND_GPS_L1 
MRTK_BAND_GPS_L2 
MRTK_BAND_GPS_L5 
MRTK_BAND_GLO_G1 
MRTK_BAND_GLO_G2 
MRTK_BAND_GLO_G3 
MRTK_BAND_GAL_E1 
MRTK_BAND_GAL_E5a 
MRTK_BAND_GAL_E5b 
MRTK_BAND_GAL_E6 
MRTK_BAND_GAL_E5ab 
MRTK_BAND_QZS_L1 
MRTK_BAND_QZS_L2 
MRTK_BAND_QZS_L5 
MRTK_BAND_QZS_L6 
MRTK_BAND_SBS_L1 
MRTK_BAND_SBS_L5 
MRTK_BAND_BDS_B1I 
MRTK_BAND_BDS_B1C 
MRTK_BAND_BDS_B2a 
MRTK_BAND_BDS_B2b 
MRTK_BAND_BDS_B2ab 
MRTK_BAND_BDS_B3 
MRTK_BAND_IRN_L5 
MRTK_BAND_IRN_S 
MRTK_BAND_MAX 

Definition at line 266 of file mrtk_foundation.h.