|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
#include "mrtklib/mrtk_rtcm.h"#include <stdlib.h>#include <string.h>#include "mrtklib/mrtk_bits.h"#include "mrtklib/mrtk_trace.h"Go to the source code of this file.
Macros | |
| #define | RTCM2PREAMB 0x66 /* rtcm ver.2 frame preamble */ |
| #define | RTCM3PREAMB 0xD3 /* rtcm ver.3 frame preamble */ |
Functions | |
| int | init_rtcm (rtcm_t *rtcm) |
| Initialize RTCM control struct. | |
| void | free_rtcm (rtcm_t *rtcm) |
| Free RTCM control struct. | |
| lclblock_t * | rtcm_lclblk (rtcm_t *rtcm) |
| Get the local correction block, lazily allocating it on first use. | |
| int | input_rtcm2 (rtcm_t *rtcm, uint8_t data) |
| Input RTCM 2 message from stream (byte-by-byte). | |
| int | input_rtcm3 (rtcm_t *rtcm, uint8_t data) |
| Input RTCM 3 message from stream (byte-by-byte). | |
| int | input_rtcm2f (rtcm_t *rtcm, FILE *fp) |
| Input RTCM 2 message from file. | |
| int | input_rtcm3f (rtcm_t *rtcm, FILE *fp) |
| Input RTCM 3 message from file. | |
| int | gen_rtcm2 (rtcm_t *rtcm, int type, int sync) |
| Generate RTCM 2 message. | |
| int | gen_rtcm3 (rtcm_t *rtcm, int type, int subtype, int sync) |
| Generate RTCM 3 message. | |
| #define RTCM2PREAMB 0x66 /* rtcm ver.2 frame preamble */ |
Definition at line 28 of file mrtk_rtcm.c.
Referenced by input_rtcm2().
| #define RTCM3PREAMB 0xD3 /* rtcm ver.3 frame preamble */ |
Definition at line 29 of file mrtk_rtcm.c.
Referenced by gen_rtcm3(), and input_rtcm3().
| void free_rtcm | ( | rtcm_t * | rtcm | ) |
Free RTCM control struct.
| [in,out] | rtcm | RTCM control struct |
Definition at line 118 of file mrtk_rtcm.c.
References free, rtcm, and trace().
Referenced by free_strfile(), freepreceph(), init_rtcm(), rtksvrthread(), strconvfree(), and strconvnew().
| int gen_rtcm2 | ( | rtcm_t * | rtcm, |
| int | type, | ||
| int | sync ) |
Generate RTCM 2 message.
| [in,out] | rtcm | RTCM control struct |
| [in] | type | Message type |
| [in] | sync | Sync flag (1:another message follows) |
Definition at line 369 of file mrtk_rtcm.c.
Referenced by write_nav(), write_nav_cycle(), write_obs(), and write_sta_cycle().
| int gen_rtcm3 | ( | rtcm_t * | rtcm, |
| int | type, | ||
| int | subtype, | ||
| int | sync ) |
Generate RTCM 3 message.
| [in,out] | rtcm | RTCM control struct |
| [in] | type | Message type |
| [in] | subtype | Message subtype (0:no subtype) |
| [in] | sync | Sync flag (1:another message follows) |
Definition at line 392 of file mrtk_rtcm.c.
References encode_rtcm3(), rtcm, RTCM3PREAMB, rtk_crc24q(), setbitu(), and trace().
Referenced by output_lclcmb(), write_nav(), write_nav_cycle(), write_obs(), write_rtcm3_msm(), and write_sta_cycle().
| int init_rtcm | ( | rtcm_t * | rtcm | ) |
Initialize RTCM control struct.
| [out] | rtcm | RTCM control struct |
Definition at line 37 of file mrtk_rtcm.c.
References free_rtcm(), malloc, MAXOBS, MAXPRNGLO, MAXSAT, rtcm, and trace().
Referenced by gen_strfile(), readpreceph(), rtksvrstart(), and strconvnew().
| int input_rtcm2 | ( | rtcm_t * | rtcm, |
| uint8_t | data ) |
Input RTCM 2 message from stream (byte-by-byte).
| [in,out] | rtcm | RTCM control struct |
| [in] | data | Stream data (1 byte) |
Definition at line 159 of file mrtk_rtcm.c.
References decode_rtcm2(), decode_word(), rtcm, RTCM2PREAMB, and trace().
Referenced by decoderaw(), input_rtcm2f(), and strconv().
| int input_rtcm2f | ( | rtcm_t * | rtcm, |
| FILE * | fp ) |
Input RTCM 2 message from file.
| [in,out] | rtcm | RTCM control struct |
| [in] | fp | File pointer |
Definition at line 325 of file mrtk_rtcm.c.
References input_rtcm2(), rtcm, and trace().
Referenced by input_strfile().
| int input_rtcm3 | ( | rtcm_t * | rtcm, |
| uint8_t | data ) |
Input RTCM 3 message from stream (byte-by-byte).
| [in,out] | rtcm | RTCM control struct |
| [in] | data | Stream data (1 byte) |
Definition at line 289 of file mrtk_rtcm.c.
References decode_rtcm3(), getbitu(), rtcm, RTCM3PREAMB, rtk_crc24q(), and trace().
Referenced by decoderaw(), input_rtcm3f(), and strconv().
| int input_rtcm3f | ( | rtcm_t * | rtcm, |
| FILE * | fp ) |
Input RTCM 3 message from file.
| [in,out] | rtcm | RTCM control struct |
| [in] | fp | File pointer |
Definition at line 347 of file mrtk_rtcm.c.
References input_rtcm3(), rtcm, and trace().
Referenced by input_strfile(), and update_rtcm().
| lclblock_t * rtcm_lclblk | ( | rtcm_t * | rtcm | ) |
Get the local correction block, lazily allocating it on first use.
| [in,out] | rtcm | RTCM control struct |
Definition at line 139 of file mrtk_rtcm.c.
Referenced by decode_lcliono(), and decode_lcltrop().